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 dot (.) or hyphen (-), and cannot contain consecutive dots 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 dot (.) or hyphen (-), and cannot contain consecutive dots 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, toJsonString
public 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 dot (.) or hyphen (-), and cannot contain consecutive dots and hyphens.
The name contains 2 to 40 characters, and supports multiple dots (.). The string between two dots can consist of letters (case-insensitive), numbers, and hyphens (-), and cannot be all numbers.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 sends 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 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 scaling group is unique.Copyright © 2023. All rights reserved.