public class ModifyInstancePasswordRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ModifyInstancePasswordRequest() |
ModifyInstancePasswordRequest(ModifyInstancePasswordRequest 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 |
getInstanceId()
Get Specifies the instance ID.
|
String |
getOldPassword()
Get Old password of the instance.
|
String |
getPassword()
Get New password of the instance.
|
void |
setInstanceId(String InstanceId)
Set Specifies the instance ID.
|
void |
setOldPassword(String OldPassword)
Set Old password of the instance.
|
void |
setPassword(String Password)
Set New password of the instance.
|
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 ModifyInstancePasswordRequest()
public ModifyInstancePasswordRequest(ModifyInstancePasswordRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Specifies the instance ID. Example: crs-xjhsdj****. Log in to the [TencentDB for Redis console](https://console.cloud.tencent.com/redis) and copy the instance ID in the instance list.public String getOldPassword()
public void setOldPassword(String OldPassword)
OldPassword
- Old password of the instance.public String getPassword()
public void setPassword(String Password)
Password
- New password of the instance. The password complexity requirements are as follows:
- It can contain 8 to 30 characters. It is recommended to use a password of more than 12 characters.
- It cannot start with a forward slash (/).
- It should contain at least two of the following types: lowercase letters, uppercase letters, digits, and special characters (such as ()~!@#$%^&*-+=_|{}[]:;<>,.?/).Copyright © 2025. All rights reserved.