All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jdcloud.sdk.service.rds.model.Account Maven / Gradle / Ivy

There is a newer version: 1.3.4
Show newest version
/*
 * 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;

    /**
     * 账号名称
     */
    private String accountName;

    /**
     * 账号状态,building:创建中,running:运行中
     */
    private String accountStatus;

    /**
     * 账户权限列表
     */
    private List accountPrivileges;


    /**
     * get 账号名称
     *
     * @return
     */
    public String getAccountName() {
        return accountName;
    }

    /**
     * set 账号名称
     *
     * @param accountName
     */
    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    /**
     * get 账号状态,building:创建中,running:运行中
     *
     * @return
     */
    public String getAccountStatus() {
        return accountStatus;
    }

    /**
     * set 账号状态,building:创建中,running:运行中
     *
     * @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 账号名称
     *
     * @param accountName
     */
    public Account accountName(String accountName) {
        this.accountName = accountName;
        return this;
    }

    /**
     * set 账号状态,building:创建中,running:运行中
     *
     * @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);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy