![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.sqlserver.v20180328.models.AccountPrivilegeModifyInfo 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.sqlserver.v20180328.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 AccountPrivilegeModifyInfo extends AbstractModel {
/**
* Database username
*/
@SerializedName("UserName")
@Expose
private String UserName;
/**
* Account permission change information
*/
@SerializedName("DBPrivileges")
@Expose
private DBPrivilegeModifyInfo [] DBPrivileges;
/**
* Whether it is an instance admin account. Valid values: `true` (Yes. When the instance is single-node and `AccountType` is `L0`, it's an admin account; when the instance is two-node and `AccountType` is `L1`, it's a privileged account), `false` (No. It's a standard account and `AccountType` is `L3`).
*/
@SerializedName("IsAdmin")
@Expose
private Boolean IsAdmin;
/**
* Account type, which is an extension field of `IsAdmin`. Valid values: `L0` (admin account, only for basic edition), `L1` (privileged account), `L2` (designated account), `L3` (standard account, default)
*/
@SerializedName("AccountType")
@Expose
private String AccountType;
/**
* Get Database username
* @return UserName Database username
*/
public String getUserName() {
return this.UserName;
}
/**
* Set Database username
* @param UserName Database username
*/
public void setUserName(String UserName) {
this.UserName = UserName;
}
/**
* Get Account permission change information
* @return DBPrivileges Account permission change information
*/
public DBPrivilegeModifyInfo [] getDBPrivileges() {
return this.DBPrivileges;
}
/**
* Set Account permission change information
* @param DBPrivileges Account permission change information
*/
public void setDBPrivileges(DBPrivilegeModifyInfo [] DBPrivileges) {
this.DBPrivileges = DBPrivileges;
}
/**
* Get Whether it is an instance admin account. Valid values: `true` (Yes. When the instance is single-node and `AccountType` is `L0`, it's an admin account; when the instance is two-node and `AccountType` is `L1`, it's a privileged account), `false` (No. It's a standard account and `AccountType` is `L3`).
* @return IsAdmin Whether it is an instance admin account. Valid values: `true` (Yes. When the instance is single-node and `AccountType` is `L0`, it's an admin account; when the instance is two-node and `AccountType` is `L1`, it's a privileged account), `false` (No. It's a standard account and `AccountType` is `L3`).
*/
public Boolean getIsAdmin() {
return this.IsAdmin;
}
/**
* Set Whether it is an instance admin account. Valid values: `true` (Yes. When the instance is single-node and `AccountType` is `L0`, it's an admin account; when the instance is two-node and `AccountType` is `L1`, it's a privileged account), `false` (No. It's a standard account and `AccountType` is `L3`).
* @param IsAdmin Whether it is an instance admin account. Valid values: `true` (Yes. When the instance is single-node and `AccountType` is `L0`, it's an admin account; when the instance is two-node and `AccountType` is `L1`, it's a privileged account), `false` (No. It's a standard account and `AccountType` is `L3`).
*/
public void setIsAdmin(Boolean IsAdmin) {
this.IsAdmin = IsAdmin;
}
/**
* Get Account type, which is an extension field of `IsAdmin`. Valid values: `L0` (admin account, only for basic edition), `L1` (privileged account), `L2` (designated account), `L3` (standard account, default)
* @return AccountType Account type, which is an extension field of `IsAdmin`. Valid values: `L0` (admin account, only for basic edition), `L1` (privileged account), `L2` (designated account), `L3` (standard account, default)
*/
public String getAccountType() {
return this.AccountType;
}
/**
* Set Account type, which is an extension field of `IsAdmin`. Valid values: `L0` (admin account, only for basic edition), `L1` (privileged account), `L2` (designated account), `L3` (standard account, default)
* @param AccountType Account type, which is an extension field of `IsAdmin`. Valid values: `L0` (admin account, only for basic edition), `L1` (privileged account), `L2` (designated account), `L3` (standard account, default)
*/
public void setAccountType(String AccountType) {
this.AccountType = AccountType;
}
public AccountPrivilegeModifyInfo() {
}
/**
* 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 AccountPrivilegeModifyInfo(AccountPrivilegeModifyInfo source) {
if (source.UserName != null) {
this.UserName = new String(source.UserName);
}
if (source.DBPrivileges != null) {
this.DBPrivileges = new DBPrivilegeModifyInfo[source.DBPrivileges.length];
for (int i = 0; i < source.DBPrivileges.length; i++) {
this.DBPrivileges[i] = new DBPrivilegeModifyInfo(source.DBPrivileges[i]);
}
}
if (source.IsAdmin != null) {
this.IsAdmin = new Boolean(source.IsAdmin);
}
if (source.AccountType != null) {
this.AccountType = new String(source.AccountType);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "UserName", this.UserName);
this.setParamArrayObj(map, prefix + "DBPrivileges.", this.DBPrivileges);
this.setParamSimple(map, prefix + "IsAdmin", this.IsAdmin);
this.setParamSimple(map, prefix + "AccountType", this.AccountType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy