MyBaseProps
Properties for defining a MyBase.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cddc-mybase
Initializer
import com.aliyun.ros.cdk.cddc.MyBaseProps;
MyBaseProps.builder()
.ecsClassList(IResolvable)
.ecsClassList(java.util.List<java.util.Map<java.lang.String, java.lang.Object>>)
.engine(java.lang.String)
.engine(IResolvable)
.payType(java.lang.String)
.payType(IResolvable)
.period(java.lang.Number)
.period(IResolvable)
.securityGroupId(java.lang.String)
.securityGroupId(IResolvable)
.vpcId(java.lang.String)
.vpcId(IResolvable)
.vSwitchId(java.lang.String)
.vSwitchId(IResolvable)
.zoneId(java.lang.String)
.zoneId(IResolvable)
// .autoRenew(java.lang.Boolean)
// .autoRenew(IResolvable)
// .dedicatedHostGroupDescription(java.lang.String)
// .dedicatedHostGroupDescription(IResolvable)
// .dedicatedHostGroupId(java.lang.String)
// .dedicatedHostGroupId(IResolvable)
// .ecsDeploymentSetId(java.lang.String)
// .ecsDeploymentSetId(IResolvable)
// .ecsHostName(java.lang.String)
// .ecsHostName(IResolvable)
// .ecsInstanceName(java.lang.String)
// .ecsInstanceName(IResolvable)
// .ecsUniqueSuffix(java.lang.Boolean)
// .ecsUniqueSuffix(IResolvable)
// .imageId(java.lang.String)
// .imageId(IResolvable)
// .internetChargeType(java.lang.String)
// .internetChargeType(IResolvable)
// .internetMaxBandwidthOut(java.lang.Number)
// .internetMaxBandwidthOut(IResolvable)
// .keyPairName(java.lang.String)
// .keyPairName(IResolvable)
// .osPassword(java.lang.String)
// .osPassword(IResolvable)
// .passwordInherit(java.lang.Boolean)
// .passwordInherit(IResolvable)
// .periodType(java.lang.String)
// .periodType(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .userData(java.lang.String)
// .userData(IResolvable)
// .userDataInBase64(java.lang.Boolean)
// .userDataInBase64(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
ecsClassList | com.aliyun.ros.cdk.core.IResolvable OR java.util.List | Property ecsClassList: ECS Class List. |
engine | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property engine: The database type. |
payType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property payType: Payment type, currently only supports PrePaid. |
period | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property period: The period of the subscription in months. |
securityGroupId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property securityGroupId: The security group ID. |
vpcId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property vpcId: The ID of the VPC. |
vSwitchId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property vSwitchId: Virtual switch ID. |
zoneId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property zoneId: Availability Zone ID. |
autoRenew | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property autoRenew: Whether to enable auto renew. |
dedicatedHostGroupDescription | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property dedicatedHostGroupDescription: The name of the dedicated cluster. |
dedicatedHostGroupId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property dedicatedHostGroupId: The ID of the dedicated cluster. |
ecsDeploymentSetId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property ecsDeploymentSetId: The ID of the deployment set. |
ecsHostName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property ecsHostName: For Windows operating systems: The host name must be 2 to 15 characters in length and can contain uppercase letters, lowercase letters, and digits. |
ecsInstanceName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property ecsInstanceName: The instance name. |
ecsUniqueSuffix | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property ecsUniqueSuffix: Automatically add a sequential suffix to the HostName and InstanceName when you create multiple instances. |
imageId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property imageId: The custom image ID. |
internetChargeType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property internetChargeType: The network billing method. |
internetMaxBandwidthOut | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property internetMaxBandwidthOut: The maximum outbound public bandwidth, in Mbit\/s. |
keyPairName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property keyPairName: The name of the key pair. |
osPassword | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property osPassword: The logon password for the host. |
passwordInherit | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property passwordInherit: Use the default password of the image. |
periodType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property periodType: Prepaid type, currently only supports Monthly (monthly subscription). |
resourceGroupId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property resourceGroupId: Resource group id. |
userData | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property userData: User-defined script data, the original data is up to 16KB. |
userDataInBase64 | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property userDataInBase64: Indicates whether the custom data is Base64-encoded. |
ecsClassListRequired
public java.lang.Object getEcsClassList();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
>
Property ecsClassList: ECS Class List.
engineRequired
public java.lang.Object getEngine();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property engine: The database type.
Valid values:
- mysql
- tair
payTypeRequired
public java.lang.Object getPayType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property payType: Payment type, currently only supports PrePaid.
periodRequired
public java.lang.Object getPeriod();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property period: The period of the subscription in months.
securityGroupIdRequired
public java.lang.Object getSecurityGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property securityGroupId: The security group ID.
Specify multiple security groups, separated by commas (,). Format: sg-t4neld965n89ocvt,sg-t4neld965n89ocvu
vpcIdRequired
public java.lang.Object getVpcId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vpcId: The ID of the VPC.
vSwitchIdRequired
public java.lang.Object getVSwitchId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vSwitchId: Virtual switch ID.
zoneIdRequired
public java.lang.Object getZoneId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property zoneId: Availability Zone ID.
autoRenewOptional
public java.lang.Object getAutoRenew();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property autoRenew: Whether to enable auto renew.
dedicatedHostGroupDescriptionOptional
public java.lang.Object getDedicatedHostGroupDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dedicatedHostGroupDescription: The name of the dedicated cluster.
dedicatedHostGroupIdOptional
public java.lang.Object getDedicatedHostGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dedicatedHostGroupId: The ID of the dedicated cluster.
ecsDeploymentSetIdOptional
public java.lang.Object getEcsDeploymentSetId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ecsDeploymentSetId: The ID of the deployment set.
ecsHostNameOptional
public java.lang.Object getEcsHostName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ecsHostName: For Windows operating systems: The host name must be 2 to 15 characters in length and can contain uppercase letters, lowercase letters, and digits.
It cannot consist of only digits. For other operating systems (such as Linux): The host name must be 2 to 64 characters in length and can contain periods (.) to separate multiple segments. Each segment can contain uppercase letters, lowercase letters, and digits. Consecutive periods (.) are not allowed. The host name cannot start or end with a period (.).
ecsInstanceNameOptional
public java.lang.Object getEcsInstanceName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ecsInstanceName: The instance name.
It must be 2 to 128 characters in length. It must start with an uppercase letter, a lowercase letter, or a Chinese character. It cannot start with http:// or https://. It can contain Chinese characters, English letters, digits, colons (:), underscores (_), periods (.), or hyphens (-). The default value is the instance ID.
ecsUniqueSuffixOptional
public java.lang.Object getEcsUniqueSuffix();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property ecsUniqueSuffix: Automatically add a sequential suffix to the HostName and InstanceName when you create multiple instances.
The sequential suffix starts from 001 and increments up to 999. Valid values:
- true: Add.
- false (default): Do not add. If HostName or InstanceName is set in a specific sorting format, and the name_suffix is not set (i.e., the naming format is name_prefix[begin_number,bits]), UniqueSuffix does not take effect. The names are sorted only in the specified order.
imageIdOptional
public java.lang.Object getImageId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property imageId: The custom image ID.
If you want to use the default image, do not specify this parameter.
internetChargeTypeOptional
public java.lang.Object getInternetChargeType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property internetChargeType: The network billing method.
Valid values include the following:
internetMaxBandwidthOutOptional
public java.lang.Object getInternetMaxBandwidthOut();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property internetMaxBandwidthOut: The maximum outbound public bandwidth, in Mbit\/s.
Valid values: 0 to 100. Default value: 0. If you set this parameter to a value greater than 0, a public IP address is automatically created.
keyPairNameOptional
public java.lang.Object getKeyPairName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property keyPairName: The name of the key pair.
osPasswordOptional
public java.lang.Object getOsPassword();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property osPassword: The logon password for the host.
You can set it later. The password must meet the following requirements:
- It must be 8 to 30 characters in length.
- It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.
- Special characters:
()\~!@#$%^&*-_+=|{}[]:;'<>,.?/`
- If you want to set the logon password later, leave this parameter empty.
- If you want to set the logon password, use HTTPS to send requests to prevent password leakage.
passwordInheritOptional
public java.lang.Object getPasswordInherit();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property passwordInherit: Use the default password of the image.
- false (default): Do not use.
- true: Use.
If you use the default password of the image, do not specify the OSPassword parameter.
periodTypeOptional
public java.lang.Object getPeriodType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property periodType: Prepaid type, currently only supports Monthly (monthly subscription).
resourceGroupIdOptional
public java.lang.Object getResourceGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property resourceGroupId: Resource group id.
userDataOptional
public java.lang.Object getUserData();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property userData: User-defined script data, the original data is up to 16KB.
userDataInBase64Optional
public java.lang.Object getUserDataInBase64();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property userDataInBase64: Indicates whether the custom data is Base64-encoded.