public class InstanceNameSettings extends AbstractModel
| Constructor and Description | 
|---|
| InstanceNameSettings() | 
| InstanceNameSettings(InstanceNameSettings source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getInstanceName()Get CVM instance name
The `InstanceName` cannot start or end with a period (.) or hyphen (-), and cannot contain consecutive periods and hyphens. | 
| String | getInstanceNameStyle()Get Type of CVM instance name. | 
| void | setInstanceName(String InstanceName)Set CVM instance name
The `InstanceName` cannot start or end with a period (.) or hyphen (-), and cannot contain consecutive periods and hyphens. | 
| void | setInstanceNameStyle(String InstanceNameStyle)Set Type of CVM instance name. | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic InstanceNameSettings()
public InstanceNameSettings(InstanceNameSettings source)
public String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName - CVM instance name
The `InstanceName` cannot start or end with a period (.) or hyphen (-), and cannot contain consecutive periods and hyphens.
Other types of instances (such as Linux): the name contains 2 to 40 characters, and supports multiple periods (.). The string between two periods can consist of letters (case insensitive), numbers, and hyphens (-), and cannot be all numbers.
Note: this field may return `null`, indicating that no valid value is obtained.public String getInstanceNameStyle()
public void setInstanceNameStyle(String InstanceNameStyle)
InstanceNameStyle - Type of CVM instance name. Valid values: "ORIGINAL" and "UNIQUE". Default value: "ORIGINAL".
ORIGINAL: Auto Scaling transfers the input parameter `InstanceName` to the CVM directly. The CVM may append a serial number to the `InstanceName`. The `InstanceName` of the instances within the auto scaling group may conflict.
UNIQUE: the input parameter `InstanceName` is the prefix of an instance name. Auto Scaling and CVM expand it. The `InstanceName` of an instance in the auto scaling group is unique.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2021. All rights reserved.