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

com.jdcloud.sdk.service.iam.model.DescribeGroupsResult Maven / Gradle / Ivy

/*
 * 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.
 *
 * User Group Management
 * User Group Management API
 *
 * OpenAPI spec version: v1
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */

package com.jdcloud.sdk.service.iam.model;

import java.util.List;
import java.util.ArrayList;
import com.jdcloud.sdk.service.iam.model.Group;
import com.jdcloud.sdk.service.JdcloudResult;

/**
 * 查询用户组列表
 */
public class DescribeGroupsResult extends JdcloudResult implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 总数
     */
    private Integer total;

    /**
     * groups
     */
    private List groups;


    /**
     * get 总数
     *
     * @return
     */
    public Integer getTotal() {
        return total;
    }

    /**
     * set 总数
     *
     * @param total
     */
    public void setTotal(Integer total) {
        this.total = total;
    }

    /**
     * get groups
     *
     * @return
     */
    public List getGroups() {
        return groups;
    }

    /**
     * set groups
     *
     * @param groups
     */
    public void setGroups(List groups) {
        this.groups = groups;
    }


    /**
     * set 总数
     *
     * @param total
     */
    public DescribeGroupsResult total(Integer total) {
        this.total = total;
        return this;
    }

    /**
     * set groups
     *
     * @param groups
     */
    public DescribeGroupsResult groups(List groups) {
        this.groups = groups;
        return this;
    }


    /**
     * add item to groups
     *
     * @param group
     */
    public void addGroup(Group group) {
        if (this.groups == null) {
            this.groups = new ArrayList<>();
        }
        this.groups.add(group);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy