InstanceProps
Properties for defining a Instance
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-memcache-instance
Initializer
import com.aliyun.ros.cdk.memcache.InstanceProps;
InstanceProps.builder()
// .autoRenew(java.lang.String)
// .autoRenew(IResolvable)
// .autoRenewPeriod(java.lang.String)
// .autoRenewPeriod(IResolvable)
// .autoUseCoupon(java.lang.String)
// .autoUseCoupon(IResolvable)
// .backupPolicy(IResolvable)
// .backupPolicy(BackupPolicyProperty)
// .capacity(java.lang.Number)
// .capacity(IResolvable)
// .chargeType(java.lang.String)
// .chargeType(IResolvable)
// .config(java.lang.String)
// .config(IResolvable)
// .couponNo(java.lang.String)
// .couponNo(IResolvable)
// .instanceClass(java.lang.String)
// .instanceClass(IResolvable)
// .instanceName(java.lang.String)
// .instanceName(IResolvable)
// .networkType(java.lang.String)
// .networkType(IResolvable)
// .password(java.lang.String)
// .password(IResolvable)
// .period(java.lang.String)
// .period(IResolvable)
// .privateIpAddress(java.lang.String)
// .privateIpAddress(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .vpcId(java.lang.String)
// .vpcId(IResolvable)
// .vpcPasswordFree(java.lang.Boolean)
// .vpcPasswordFree(IResolvable)
// .vSwitchId(java.lang.String)
// .vSwitchId(IResolvable)
// .zoneId(java.lang.String)
// .zoneId(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
autoRenew |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property autoRenew: Specifies whether to enable auto renewal. |
autoRenewPeriod |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property autoRenewPeriod: The period of the auto renewal. |
autoUseCoupon |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property autoUseCoupon: Specifies whether to use a coupon. |
backupPolicy |
com.aliyun.ros.cdk.core.IResolvable OR BackupPolicyProperty |
Property backupPolicy: Backup policy. |
capacity |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property capacity: The storage capacity of the instance. |
chargeType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property chargeType: The billing method of the instance. |
config |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property config: The parameter configuration of the instance, in a JSON string. |
couponNo |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property couponNo: The coupon number. |
instanceClass |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceClass: The instance type. |
instanceName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceName: The name of the instance. |
networkType |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property networkType: The network type of the instance. |
password |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property password: The password of the instance. |
period |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property period: The subscription period. |
privateIpAddress |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property privateIpAddress: The internal IP address of the instance. |
resourceGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property resourceGroupId: Resource group ID. |
vpcId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property vpcId: The ID of the VPC. |
vpcPasswordFree |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property vpcPasswordFree: Specifies whether to enable password free for access within the VPC. |
vSwitchId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property vSwitchId: The ID of the VSwitch. |
zoneId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property zoneId: The ID of the zone in which the instance is created. |
autoRenew
Optional
public java.lang.Object getAutoRenew();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenew: Specifies whether to enable auto renewal.
Valid values: true false Note Default value: false.
autoRenewPeriod
Optional
public java.lang.Object getAutoRenewPeriod();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenewPeriod: The period of the auto renewal.
Unit: months. Valid values: 1 2 3 6 12 Note You must specify this parameter if the value of the AutoRenew parameter is true.
autoUseCoupon
Optional
public java.lang.Object getAutoUseCoupon();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property autoUseCoupon: Specifies whether to use a coupon.
Valid values: true false Note Default value: false.
backupPolicy
Optional
public java.lang.Object getBackupPolicy();
- Type: com.aliyun.ros.cdk.core.IResolvable OR BackupPolicyProperty
Property backupPolicy: Backup policy.
capacity
Optional
public java.lang.Object getCapacity();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property capacity: The storage capacity of the instance.
Unit: MB. Note You need to pass at least one of the Capacity and InstanceClass parameters when calling the CreateInstance operation.
chargeType
Optional
public java.lang.Object getChargeType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property chargeType: The billing method of the instance.
Valid values: PrePaid: subscription. PostPaid: pay-as-you-go. Note Default value: PostPaid.
config
Optional
public java.lang.Object getConfig();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property config: The parameter configuration of the instance, in a JSON string.
For more information, see Set parameters.
couponNo
Optional
public java.lang.Object getCouponNo();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property couponNo: The coupon number.
Default value: youhuiquan_promotion_option_id_for_blank.
instanceClass
Optional
public java.lang.Object getInstanceClass();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceClass: The instance type.
For more information, see Instance types. Note You need to pass at least one of the Capacity and InstanceClass parameters when calling the CreateInstance operation.
instanceName
Optional
public java.lang.Object getInstanceName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceName: The name of the instance.
The name can be 2 to 128 characters in length and must start with a letter. The following characters are not supported: at signs (@), forward slashes (/), colons (:), equal signs (=), double quotation marks ("), angle brackets (<>), braces ([]), curly brackets ({}) and spaces.
networkType
Optional
public java.lang.Object getNetworkType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property networkType: The network type of the instance.
Valid values: CLASSIC VPC Note Default value: CLASSIC.
password
Optional
public java.lang.Object getPassword();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property password: The password of the instance.
The password can be 8 to 32 characters in length and must contain at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters. Special characters include ! at signs (@), number signs (#), dollar signs ($), percent signs (%), carets (^), ampersands (&), asterisks (*), parentheses (()), underscores (_), plus signs (+), hyphens (-), and equal signs (=).
period
Optional
public java.lang.Object getPeriod();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property period: The subscription period.
You must specify this parameter if the value of the ChargeType parameter is PrePaid. Unit: months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 12, 24, and 36. Note This parameter is invalid if the value of the ChargeType parameter is PostPaid.
privateIpAddress
Optional
public java.lang.Object getPrivateIpAddress();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property privateIpAddress: The internal IP address of the instance.
Note The internal IP address must be located in the Classless Inter-Domain Routing (CIDR) block of the VSwitch to which the instance belongs.
resourceGroupId
Optional
public java.lang.Object getResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: Resource group ID.
vpcId
Optional
public java.lang.Object getVpcId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vpcId: The ID of the VPC.
vpcPasswordFree
Optional
public java.lang.Object getVpcPasswordFree();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property vpcPasswordFree: Specifies whether to enable password free for access within the VPC.
If set to:
- true: enables password free.
- false: disables password free.
vSwitchId
Optional
public java.lang.Object getVSwitchId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vSwitchId: The ID of the VSwitch.
zoneId
Optional
public java.lang.Object getZoneId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property zoneId: The ID of the zone in which the instance is created.
You can call the DescribeRegions operation to query the latest region list.