public class LoginSettings extends AbstractModel
Constructor and Description |
---|
LoginSettings() |
LoginSettings(LoginSettings 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 |
---|---|
Boolean |
getKeepImageLogin()
Get Whether to keep the original settings of an image.
|
String[] |
getKeyIds()
Get List of key IDs.
|
String |
getPassword()
Get Instance login password.
|
void |
setKeepImageLogin(Boolean KeepImageLogin)
Set Whether to keep the original settings of an image.
|
void |
setKeyIds(String[] KeyIds)
Set List of key IDs.
|
void |
setPassword(String Password)
Set Instance login password.
|
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 LoginSettings()
public LoginSettings(LoginSettings source)
public String getPassword()
public void setPassword(String Password)
Password
- Instance login password. public String[] getKeyIds()
public void setKeyIds(String[] KeyIds)
KeyIds
- List of key IDs. After an instance is associated with a key, you can access the instance with the private key in the key pair. You can call `DescribeKeyPairs` to obtain `KeyId`. Key and password cannot be specified at the same time. Windows instances do not support keys. Currently, you can only specify one key when purchasing an instance.public Boolean getKeepImageLogin()
public void setKeepImageLogin(Boolean KeepImageLogin)
KeepImageLogin
- Whether to keep the original settings of an image. It cannot be specified together with `Password` or `KeyIds.N`. You can specify this parameter as `TRUE` only when you create an instance using a custom image, a shared image, or an imported image. Valid values: Copyright © 2023. All rights reserved.