com.jdcloud.sdk.service.rds.model.Account Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rds Show documentation
Show all versions of rds Show documentation
JDCLOUD Open API SDK for Java
/*
* Copyright 2018 JDCLOUD.COM
*
* 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.
*
*
*
*
*
* Contact:
*
* NOTE: This class is auto generated by the jdcloud code generator program.
*/
package com.jdcloud.sdk.service.rds.model;
import java.util.List;
import java.util.ArrayList;
/**
* account
*/
public class Account implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 账号名,账号名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Cloud-Database-and-Cache/RDS/Introduction/Restrictions/SQLServer-Restrictions.md)
*/
private String accountName;
/**
* 账号状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)<br>- **MySQL:不支持,不返回该字段**<br>- **SQL Server:返回该字段**
*/
private String accountStatus;
/**
* 具有的权限
*/
private List accountPrivileges;
/**
* get 账号名,账号名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Cloud-Database-and-Cache/RDS/Introduction/Restrictions/SQLServer-Restrictions.md)
*
* @return
*/
public String getAccountName() {
return accountName;
}
/**
* set 账号名,账号名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Cloud-Database-and-Cache/RDS/Introduction/Restrictions/SQLServer-Restrictions.md)
*
* @param accountName
*/
public void setAccountName(String accountName) {
this.accountName = accountName;
}
/**
* get 账号状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)<br>- **MySQL:不支持,不返回该字段**<br>- **SQL Server:返回该字段**
*
* @return
*/
public String getAccountStatus() {
return accountStatus;
}
/**
* set 账号状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)<br>- **MySQL:不支持,不返回该字段**<br>- **SQL Server:返回该字段**
*
* @param accountStatus
*/
public void setAccountStatus(String accountStatus) {
this.accountStatus = accountStatus;
}
/**
* get 具有的权限
*
* @return
*/
public List getAccountPrivileges() {
return accountPrivileges;
}
/**
* set 具有的权限
*
* @param accountPrivileges
*/
public void setAccountPrivileges(List accountPrivileges) {
this.accountPrivileges = accountPrivileges;
}
/**
* set 账号名,账号名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Cloud-Database-and-Cache/RDS/Introduction/Restrictions/SQLServer-Restrictions.md)
*
* @param accountName
*/
public Account accountName(String accountName) {
this.accountName = accountName;
return this;
}
/**
* set 账号状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)<br>- **MySQL:不支持,不返回该字段**<br>- **SQL Server:返回该字段**
*
* @param accountStatus
*/
public Account accountStatus(String accountStatus) {
this.accountStatus = accountStatus;
return this;
}
/**
* set 具有的权限
*
* @param accountPrivileges
*/
public Account accountPrivileges(List accountPrivileges) {
this.accountPrivileges = accountPrivileges;
return this;
}
/**
* add item to 具有的权限
*
* @param accountPrivilege
*/
public void addAccountPrivilege(AccountPrivilege accountPrivilege) {
if (this.accountPrivileges == null) {
this.accountPrivileges = new ArrayList<>();
}
this.accountPrivileges.add(accountPrivilege);
}
}