com.tencentcloudapi.lighthouse.v20200324.models.ResetInstancesPasswordRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.lighthouse.v20200324.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class ResetInstancesPasswordRequest extends AbstractModel {
/**
* Instance ID list. Each request can contain up to 100 instances at a time.
*/
@SerializedName("InstanceIds")
@Expose
private String [] InstanceIds;
/**
* Login password of the instance(s). The password requirements vary among different operating systems:
The password of a `LINUX_UNIX` instance must contain 8–30 characters (above 12 characters preferably) in at least three of the following types and cannot begin with "/":
Lowercase letters: [a–z]
Uppercase letters: [A–Z]
Digits: 0–9
Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;'<>,.?/
The password of a `WINDOWS` instance must contain 12–30 characters in at least three of the following types and cannot begin with "/" or include the username:
Lowercase letters: [a–z]
Uppercase letters: [A–Z]
Digits: 0–9
Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;' <>,.?/
If both `LINUX_UNIX` and `WINDOWS` instances exist, the requirements for password complexity of `WINDOWS` instances shall prevail.
*/
@SerializedName("Password")
@Expose
private String Password;
/**
* OS username of the instance for which you want to reset the password, which can contain up to 64 characters.
*/
@SerializedName("UserName")
@Expose
private String UserName;
/**
* Get Instance ID list. Each request can contain up to 100 instances at a time.
* @return InstanceIds Instance ID list. Each request can contain up to 100 instances at a time.
*/
public String [] getInstanceIds() {
return this.InstanceIds;
}
/**
* Set Instance ID list. Each request can contain up to 100 instances at a time.
* @param InstanceIds Instance ID list. Each request can contain up to 100 instances at a time.
*/
public void setInstanceIds(String [] InstanceIds) {
this.InstanceIds = InstanceIds;
}
/**
* Get Login password of the instance(s). The password requirements vary among different operating systems:
The password of a `LINUX_UNIX` instance must contain 8–30 characters (above 12 characters preferably) in at least three of the following types and cannot begin with "/":
Lowercase letters: [a–z]
Uppercase letters: [A–Z]
Digits: 0–9
Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;'<>,.?/
The password of a `WINDOWS` instance must contain 12–30 characters in at least three of the following types and cannot begin with "/" or include the username:
Lowercase letters: [a–z]
Uppercase letters: [A–Z]
Digits: 0–9
Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;' <>,.?/
If both `LINUX_UNIX` and `WINDOWS` instances exist, the requirements for password complexity of `WINDOWS` instances shall prevail.
* @return Password Login password of the instance(s). The password requirements vary among different operating systems:
The password of a `LINUX_UNIX` instance must contain 8–30 characters (above 12 characters preferably) in at least three of the following types and cannot begin with "/":
Lowercase letters: [a–z]
Uppercase letters: [A–Z]
Digits: 0–9
Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;'<>,.?/
The password of a `WINDOWS` instance must contain 12–30 characters in at least three of the following types and cannot begin with "/" or include the username:
Lowercase letters: [a–z]
Uppercase letters: [A–Z]
Digits: 0–9
Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;' <>,.?/
If both `LINUX_UNIX` and `WINDOWS` instances exist, the requirements for password complexity of `WINDOWS` instances shall prevail.
*/
public String getPassword() {
return this.Password;
}
/**
* Set Login password of the instance(s). The password requirements vary among different operating systems:
The password of a `LINUX_UNIX` instance must contain 8–30 characters (above 12 characters preferably) in at least three of the following types and cannot begin with "/":
Lowercase letters: [a–z]
Uppercase letters: [A–Z]
Digits: 0–9
Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;'<>,.?/
The password of a `WINDOWS` instance must contain 12–30 characters in at least three of the following types and cannot begin with "/" or include the username:
Lowercase letters: [a–z]
Uppercase letters: [A–Z]
Digits: 0–9
Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;' <>,.?/
If both `LINUX_UNIX` and `WINDOWS` instances exist, the requirements for password complexity of `WINDOWS` instances shall prevail.
* @param Password Login password of the instance(s). The password requirements vary among different operating systems:
The password of a `LINUX_UNIX` instance must contain 8–30 characters (above 12 characters preferably) in at least three of the following types and cannot begin with "/":
Lowercase letters: [a–z]
Uppercase letters: [A–Z]
Digits: 0–9
Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;'<>,.?/
The password of a `WINDOWS` instance must contain 12–30 characters in at least three of the following types and cannot begin with "/" or include the username:
Lowercase letters: [a–z]
Uppercase letters: [A–Z]
Digits: 0–9
Special symbols: ()\`~!@#$%^&\*-+=\_|{}[]:;' <>,.?/
If both `LINUX_UNIX` and `WINDOWS` instances exist, the requirements for password complexity of `WINDOWS` instances shall prevail.
*/
public void setPassword(String Password) {
this.Password = Password;
}
/**
* Get OS username of the instance for which you want to reset the password, which can contain up to 64 characters.
* @return UserName OS username of the instance for which you want to reset the password, which can contain up to 64 characters.
*/
public String getUserName() {
return this.UserName;
}
/**
* Set OS username of the instance for which you want to reset the password, which can contain up to 64 characters.
* @param UserName OS username of the instance for which you want to reset the password, which can contain up to 64 characters.
*/
public void setUserName(String UserName) {
this.UserName = UserName;
}
public ResetInstancesPasswordRequest() {
}
/**
* 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.
*/
public ResetInstancesPasswordRequest(ResetInstancesPasswordRequest source) {
if (source.InstanceIds != null) {
this.InstanceIds = new String[source.InstanceIds.length];
for (int i = 0; i < source.InstanceIds.length; i++) {
this.InstanceIds[i] = new String(source.InstanceIds[i]);
}
}
if (source.Password != null) {
this.Password = new String(source.Password);
}
if (source.UserName != null) {
this.UserName = new String(source.UserName);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamArraySimple(map, prefix + "InstanceIds.", this.InstanceIds);
this.setParamSimple(map, prefix + "Password", this.Password);
this.setParamSimple(map, prefix + "UserName", this.UserName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy