public static final class CreateInstanceRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateInstanceRequest |
build() |
CreateInstanceRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateInstanceRequest.Builder |
logistics(String logistics)
The logistics address of this order.
|
CreateInstanceRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateInstanceRequest.Builder |
parameter(List<CreateInstanceRequest.Parameter> parameter)
The details of the modules.
|
CreateInstanceRequest.Builder |
period(Integer period)
The subscription duration.
|
CreateInstanceRequest.Builder |
pricingCycle(Long pricingCycle)
The cycle type of the prepaid period
PricingCycle=1 indicates that the unit of the prepaid period is in years;
PricingCycle=2 indicates that the unit of the prepaid period is in months;
PricingCycle=3 indicates that the unit of the prepaid period is in days;
Default value: PricingCycle=2
Applicable only to certain product types (ProductType being ddos_originpre_public_cn, ddosDip, ddoscoo, ddos_originpre_public_intl, ddosDip_intl, ddoscoo_intl)
example:
2
|
CreateInstanceRequest.Builder |
productCode(String productCode)
The code of the service to which the instance belongs.
|
CreateInstanceRequest.Builder |
productType(String productType)
The type of the service.
|
CreateInstanceRequest.Builder |
renewalStatus(String renewalStatus)
The renewal method.
|
CreateInstanceRequest.Builder |
renewPeriod(Integer renewPeriod)
The auto-renewal period.
|
CreateInstanceRequest.Builder |
subscriptionType(String subscriptionType)
The billing method.
|
public CreateInstanceRequest.Builder clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request. The server checks whether a request that uses the same client token has been received. If a request that uses the same client token has been received, the server returns the same request result as the previous request.
example:JASIOFKVNVIXXXXXX
public CreateInstanceRequest.Builder logistics(String logistics)
The logistics address of this order. This parameter is generally valid for physical orders.
example:{"cityCode":"330100","cityName":"Hangzhou","contactName":"Test","countryCode":"","districtName":"Puyan Street","email":"**@example.com","mobilePhone":"153564848844","phone":"1234567","provCode":"330000","provName":"Zhejiang","streetCode":"33010610","streetName":"Zhuantang","zipCode":"0000"}
public CreateInstanceRequest.Builder ownerId(Long ownerId)
public CreateInstanceRequest.Builder parameter(List<CreateInstanceRequest.Parameter> parameter)
The details of the modules.
public CreateInstanceRequest.Builder period(Integer period)
The subscription duration. Unit: month. The value must be an integral multiple of 12.
example:This parameter is required if you create a subscription instance.
12
public CreateInstanceRequest.Builder pricingCycle(Long pricingCycle)
The cycle type of the prepaid period
Applicable only to certain product types (ProductType being ddos_originpre_public_cn, ddosDip, ddoscoo, ddos_originpre_public_intl, ddosDip_intl, ddoscoo_intl)
example:2
public CreateInstanceRequest.Builder productCode(String productCode)
The code of the service to which the instance belongs. You can query the service code by calling the QueryProductList operation or viewing Codes of Alibaba Cloud Services.
This parameter is required.
example:rds
public CreateInstanceRequest.Builder productType(String productType)
The type of the service.
example:rds
public CreateInstanceRequest.Builder renewPeriod(Integer renewPeriod)
The auto-renewal period. Unit: month.
example:This parameter is required if the RenewalStatus parameter is set to AutoRenewal.
12
public CreateInstanceRequest.Builder renewalStatus(String renewalStatus)
The renewal method. Valid values:
Default value: ManualRenewal.
example:ManualRenewal
public CreateInstanceRequest.Builder subscriptionType(String subscriptionType)
The billing method. Valid values:
This parameter is required.
example:Subscription
public CreateInstanceRequest build()
Copyright © 2026. All rights reserved.