public class ResetInstancesPasswordRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ResetInstancesPasswordRequest() |
ResetInstancesPasswordRequest(ResetInstancesPasswordRequest 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 |
getForceStop()
Get Whether to force shut down.
|
String[] |
getInstanceIdSet()
Get List of IDs of the instances for which to set the password.
|
String |
getPassword()
Get New password.
|
String |
getUserName()
Get Username of the instance for which to reset the password, which can contain up to 64 characters.
|
void |
setForceStop(Boolean ForceStop)
Set Whether to force shut down.
|
void |
setInstanceIdSet(String[] InstanceIdSet)
Set List of IDs of the instances for which to set the password.
|
void |
setPassword(String Password)
Set New password.
|
void |
setUserName(String UserName)
Set Username of the instance for which to reset the password, which can contain up to 64 characters.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ResetInstancesPasswordRequest()
public ResetInstancesPasswordRequest(ResetInstancesPasswordRequest source)
public String[] getInstanceIdSet()
public void setInstanceIdSet(String[] InstanceIdSet)
InstanceIdSet
- List of IDs of the instances for which to set the password. You can request up to 100 instances in a region at a time.public String getPassword()
public void setPassword(String Password)
Password
- New password. The password of a Linux instance must contain 8–16 characters in at least two of the following character types: letters, digits, and special symbols [( ) ~ ~ ! @ # $ % ^ & * - + = _ | { } [ ] : ; ' < > , . ? /] and cannot start with `/`.
The password of a Windows instance must contain 12–16 characters in at least three of the following character types: letters, digits, and special symbols [( ) ~ ~ ! @ # $ % ^ & * - + = _ | { } [ ] : ; ' < > , . ? /] and cannot start with `/`.
If the instances include both Linux instances and Windows instances, the password complexity limit for Windows instances will apply.public Boolean getForceStop()
public void setForceStop(Boolean ForceStop)
ForceStop
- Whether to force shut down. Default value: false.public String getUserName()
public void setUserName(String UserName)
UserName
- Username of the instance for which to reset the password, which can contain up to 64 characters. If this parameter is not specified, the password of the root user will be reset by default for Linux, and the password of the admin will be reset by default for Windows.Copyright © 2024. All rights reserved.