public class InstanceNameSettings extends AbstractModel
Constructor and Description |
---|
InstanceNameSettings() |
Modifier and Type | Method and Description |
---|---|
String |
getInstanceName()
Get CVM instance name.
|
String |
getInstanceNameStyle()
Get Type of CVM instance name.
|
void |
setInstanceName(String InstanceName)
Set CVM instance name.
|
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, toJsonString
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 (such as Linux) of instances: The name should be a combination of 2 to 40 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-).
Note: this field may return null, indicating that no valid values can be 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 © 2020. All rights reserved.