com.jdcloud.sdk.service.iam.model.CreateRoleInfo 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 com.jdcloud.sdk.annotation.Required;
/**
* createRoleInfo
*/
public class CreateRoleInfo implements java.io.Serializable {
private static final long serialVersionUID = 1L;
/**
* 角色名,支持4~64位的字母,数字以及-和_, 以字母开头
* Required:true
*/
@Required
private String roleName;
/**
* 角色类型,3-服务角色,4-用户角色
* Required:true
*/
@Required
private Integer type;
/**
* 角色信任关系策略
* Required:true
*/
@Required
private String assumeRolePolicyDocument;
/**
* 描述,0~256个字符
*/
private String description;
/**
* 最大会话时长3600~43200秒,默认3600秒
*/
private Integer maxSessionDuration;
/**
* get 角色名,支持4~64位的字母,数字以及-和_, 以字母开头
*
* @return
*/
public String getRoleName() {
return roleName;
}
/**
* set 角色名,支持4~64位的字母,数字以及-和_, 以字母开头
*
* @param roleName
*/
public void setRoleName(String roleName) {
this.roleName = roleName;
}
/**
* get 角色类型,3-服务角色,4-用户角色
*
* @return
*/
public Integer getType() {
return type;
}
/**
* set 角色类型,3-服务角色,4-用户角色
*
* @param type
*/
public void setType(Integer type) {
this.type = type;
}
/**
* get 角色信任关系策略
*
* @return
*/
public String getAssumeRolePolicyDocument() {
return assumeRolePolicyDocument;
}
/**
* set 角色信任关系策略
*
* @param assumeRolePolicyDocument
*/
public void setAssumeRolePolicyDocument(String assumeRolePolicyDocument) {
this.assumeRolePolicyDocument = assumeRolePolicyDocument;
}
/**
* get 描述,0~256个字符
*
* @return
*/
public String getDescription() {
return description;
}
/**
* set 描述,0~256个字符
*
* @param description
*/
public void setDescription(String description) {
this.description = description;
}
/**
* get 最大会话时长3600~43200秒,默认3600秒
*
* @return
*/
public Integer getMaxSessionDuration() {
return maxSessionDuration;
}
/**
* set 最大会话时长3600~43200秒,默认3600秒
*
* @param maxSessionDuration
*/
public void setMaxSessionDuration(Integer maxSessionDuration) {
this.maxSessionDuration = maxSessionDuration;
}
/**
* set 角色名,支持4~64位的字母,数字以及-和_, 以字母开头
*
* @param roleName
*/
public CreateRoleInfo roleName(String roleName) {
this.roleName = roleName;
return this;
}
/**
* set 角色类型,3-服务角色,4-用户角色
*
* @param type
*/
public CreateRoleInfo type(Integer type) {
this.type = type;
return this;
}
/**
* set 角色信任关系策略
*
* @param assumeRolePolicyDocument
*/
public CreateRoleInfo assumeRolePolicyDocument(String assumeRolePolicyDocument) {
this.assumeRolePolicyDocument = assumeRolePolicyDocument;
return this;
}
/**
* set 描述,0~256个字符
*
* @param description
*/
public CreateRoleInfo description(String description) {
this.description = description;
return this;
}
/**
* set 最大会话时长3600~43200秒,默认3600秒
*
* @param maxSessionDuration
*/
public CreateRoleInfo maxSessionDuration(Integer maxSessionDuration) {
this.maxSessionDuration = maxSessionDuration;
return this;
}
}