InstancesProps
Properties for defining a Instances
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-swas-instances
Initializer
import com.aliyun.ros.cdk.swas.InstancesProps;
InstancesProps.builder()
.imageId(java.lang.String)
.imageId(IResolvable)
.period(java.lang.Number)
.period(IResolvable)
.planId(java.lang.String)
.planId(IResolvable)
// .amount(java.lang.Number)
// .amount(IResolvable)
// .autoRenew(java.lang.Boolean)
// .autoRenew(IResolvable)
// .autoRenewPeriod(java.lang.Number)
// .autoRenewPeriod(IResolvable)
// .dataDiskSize(java.lang.Number)
// .dataDiskSize(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
imageId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property imageId: The image ID. |
period |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property period: The subscription period of the servers. |
planId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property planId: The plan ID. |
amount |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property amount: The number of simple application servers that you want to create. |
autoRenew |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property autoRenew: Specifies whether to enable auto-renewal. |
autoRenewPeriod |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property autoRenewPeriod: The auto-renewal period. |
dataDiskSize |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property dataDiskSize: The size of the data disk that is attached to the server. |
imageId
Required
public java.lang.Object getImageId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property imageId: The image ID.
You can call the ListImages operation to query the available images in the specified region.
period
Required
public java.lang.Object getPeriod();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property period: The subscription period of the servers.
Unit: months. Valid values: 1, 3, 6, 12, 24, and 36.
planId
Required
public java.lang.Object getPlanId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property planId: The plan ID.
You can call the ListPlans operation to query all plans provided by Simple Application Server in the specified region.
amount
Optional
public java.lang.Object getAmount();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property amount: The number of simple application servers that you want to create.
Valid values: 1 to 20. Default value: 1.
autoRenew
Optional
public java.lang.Object getAutoRenew();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenew: Specifies whether to enable auto-renewal.
Valid values: true false Default value: false.
autoRenewPeriod
Optional
public java.lang.Object getAutoRenewPeriod();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenewPeriod: The auto-renewal period.
This parameter is required only when you set AutoRenew to true. Unit: months. Valid values: 1, 3, 6, 12, 24, and 36.
dataDiskSize
Optional
public java.lang.Object getDataDiskSize();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property dataDiskSize: The size of the data disk that is attached to the server.
Unit: GB. Valid values: 0 to 16380. The value must be an integral multiple of 20. A value of 0 indicates that no data disk is attached. If the disk included in the specified plan is a standard SSD, the data disk must be 20 GB or larger in size. Default value: 0.