com.jdcloud.sdk.service.iam.model.CreatePermissionInfo 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.
*
*
*
*
*
* 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.annotation.Required;
/**
* createPermissionInfo
*/
public class CreatePermissionInfo implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 权限名称,1~32位数字、字母、中文、下划线、下划线、中划线
* Required:true
*/
@Required
private String name;
/**
* 描述,0~256个字符
*/
private String description;
/**
* 权限详细信息
* Required:true
*/
@Required
private List content;
/**
* get 权限名称,1~32位数字、字母、中文、下划线、下划线、中划线
*
* @return
*/
public String getName() {
return name;
}
/**
* set 权限名称,1~32位数字、字母、中文、下划线、下划线、中划线
*
* @param name
*/
public void setName(String name) {
this.name = name;
}
/**
* get 描述,0~256个字符
*
* @return
*/
public String getDescription() {
return description;
}
/**
* set 描述,0~256个字符
*
* @param description
*/
public void setDescription(String description) {
this.description = description;
}
/**
* get 权限详细信息
*
* @return
*/
public List getContent() {
return content;
}
/**
* set 权限详细信息
*
* @param content
*/
public void setContent(List content) {
this.content = content;
}
/**
* set 权限名称,1~32位数字、字母、中文、下划线、下划线、中划线
*
* @param name
*/
public CreatePermissionInfo name(String name) {
this.name = name;
return this;
}
/**
* set 描述,0~256个字符
*
* @param description
*/
public CreatePermissionInfo description(String description) {
this.description = description;
return this;
}
/**
* set 权限详细信息
*
* @param content
*/
public CreatePermissionInfo content(List content) {
this.content = content;
return this;
}
/**
* add item to 权限详细信息
*
* @param content
*/
public void addContent(PermissionDetail content) {
if (this.content == null) {
this.content = new ArrayList<>();
}
this.content.add(content);
}
}