public static final class InstanceProps.Builder extends Object implements software.amazon.jsii.Builder<InstanceProps>
InstanceProps| Constructor and Description |
|---|
Builder() |
public InstanceProps.Builder bucket(String bucket)
InstanceProps.getBucket()bucket - Property bucket: OSS bucket name. This parameter is required.thispublic InstanceProps.Builder bucket(com.aliyun.ros.cdk.core.IResolvable bucket)
InstanceProps.getBucket()bucket - Property bucket: OSS bucket name. This parameter is required.thispublic InstanceProps.Builder chargeType(String chargeType)
InstanceProps.getChargeType()chargeType - Property chargeType: The payment type, the value of the value is as follows: POST: pay as you go. This parameter is required.
PRE: subscription.thispublic InstanceProps.Builder chargeType(com.aliyun.ros.cdk.core.IResolvable chargeType)
InstanceProps.getChargeType()chargeType - Property chargeType: The payment type, the value of the value is as follows: POST: pay as you go. This parameter is required.
PRE: subscription.thispublic InstanceProps.Builder instanceName(String instanceName)
InstanceProps.getInstanceName()instanceName - Property instanceName: The name of instance. This parameter is required.thispublic InstanceProps.Builder instanceName(com.aliyun.ros.cdk.core.IResolvable instanceName)
InstanceProps.getInstanceName()instanceName - Property instanceName: The name of instance. This parameter is required.thispublic InstanceProps.Builder vpcId(String vpcId)
InstanceProps.getVpcId()vpcId - Property vpcId: VPC ID. This parameter is required.thispublic InstanceProps.Builder vpcId(com.aliyun.ros.cdk.core.IResolvable vpcId)
InstanceProps.getVpcId()vpcId - Property vpcId: VPC ID. This parameter is required.thispublic InstanceProps.Builder vSwitchIds(List<? extends Object> vSwitchIds)
InstanceProps.getVSwitchIds()vSwitchIds - Property vSwitchIds: Virtual switch ID. This parameter is required.thispublic InstanceProps.Builder vSwitchIds(com.aliyun.ros.cdk.core.IResolvable vSwitchIds)
InstanceProps.getVSwitchIds()vSwitchIds - Property vSwitchIds: Virtual switch ID. This parameter is required.thispublic InstanceProps.Builder zoneId(String zoneId)
InstanceProps.getZoneId()zoneId - Property zoneId: The available area ID of the instance. This parameter is required.thispublic InstanceProps.Builder zoneId(com.aliyun.ros.cdk.core.IResolvable zoneId)
InstanceProps.getZoneId()zoneId - Property zoneId: The available area ID of the instance. This parameter is required.thispublic InstanceProps.Builder autoRenew(Boolean autoRenew)
InstanceProps.getAutoRenew()autoRenew - Property autoRenew: When the payment type is the monthly package, the value of the value is as follows: true: Automatic renewal.
false: Manual renewal.thispublic InstanceProps.Builder autoRenew(com.aliyun.ros.cdk.core.IResolvable autoRenew)
InstanceProps.getAutoRenew()autoRenew - Property autoRenew: When the payment type is the monthly package, the value of the value is as follows: true: Automatic renewal.
false: Manual renewal.thispublic InstanceProps.Builder duration(Number duration)
InstanceProps.getDuration()duration - Property duration: Number of order cycle.
When ChargeType is configured as PRE, the duration parameter must be filled.
If PricingCycle is Month, the valid range is 1, 2, 3, 6, 7, 8, 9, 12, 24, 36
If PricingCycle is year, the valid range is 1 to 3thispublic InstanceProps.Builder duration(com.aliyun.ros.cdk.core.IResolvable duration)
InstanceProps.getDuration()duration - Property duration: Number of order cycle.
When ChargeType is configured as PRE, the duration parameter must be filled.
If PricingCycle is Month, the valid range is 1, 2, 3, 6, 7, 8, 9, 12, 24, 36
If PricingCycle is year, the valid range is 1 to 3thispublic InstanceProps.Builder pricingCycle(String pricingCycle)
InstanceProps.getPricingCycle()pricingCycle - Property pricingCycle: The ordering cycle only supports ordering in the year and month.thispublic InstanceProps.Builder pricingCycle(com.aliyun.ros.cdk.core.IResolvable pricingCycle)
InstanceProps.getPricingCycle()pricingCycle - Property pricingCycle: The ordering cycle only supports ordering in the year and month.thispublic InstanceProps.Builder promotionCode(String promotionCode)
InstanceProps.getPromotionCode()promotionCode - Property promotionCode: Promo Code.thispublic InstanceProps.Builder promotionCode(com.aliyun.ros.cdk.core.IResolvable promotionCode)
InstanceProps.getPromotionCode()promotionCode - Property promotionCode: Promo Code.thispublic InstanceProps.Builder resourceSpec(com.aliyun.ros.cdk.core.IResolvable resourceSpec)
InstanceProps.getResourceSpec()resourceSpec - Property resourceSpec: Resource specifications.
When ChargeType is configured as PRE, the resource specification parameters must be filled.thispublic InstanceProps.Builder resourceSpec(RosInstance.ResourceSpecProperty resourceSpec)
InstanceProps.getResourceSpec()resourceSpec - Property resourceSpec: Resource specifications.
When ChargeType is configured as PRE, the resource specification parameters must be filled.thispublic InstanceProps.Builder usePromotionCode(Boolean usePromotionCode)
InstanceProps.getUsePromotionCode()usePromotionCode - Property usePromotionCode: Whether to use coupons.The value is as follows: true: Use. false: Not in use.thispublic InstanceProps.Builder usePromotionCode(com.aliyun.ros.cdk.core.IResolvable usePromotionCode)
InstanceProps.getUsePromotionCode()usePromotionCode - Property usePromotionCode: Whether to use coupons.The value is as follows: true: Use. false: Not in use.thispublic InstanceProps build()
build in interface software.amazon.jsii.Builder<InstanceProps>InstancePropsNullPointerException - if any required attribute was not providedCopyright © 2023. All rights reserved.