public class CreateRoleRequest extends AbstractModel
Constructor and Description |
---|
CreateRoleRequest() |
CreateRoleRequest(CreateRoleRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getConsoleLogin()
Get Whether login is allowed.
|
String |
getDescription()
Get Role description
|
String |
getPolicyDocument()
Get Policy document
|
String |
getRoleName()
Get Role name
|
Long |
getSessionDuration()
Get The maximum validity period of the temporary key for creating a role (range: 0-43200)
|
RoleTags[] |
getTags()
Get Tags bound to the role.
|
void |
setConsoleLogin(Long ConsoleLogin)
Set Whether login is allowed.
|
void |
setDescription(String Description)
Set Role description
|
void |
setPolicyDocument(String PolicyDocument)
Set Policy document
|
void |
setRoleName(String RoleName)
Set Role name
|
void |
setSessionDuration(Long SessionDuration)
Set The maximum validity period of the temporary key for creating a role (range: 0-43200)
|
void |
setTags(RoleTags[] Tags)
Set Tags bound to the role.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateRoleRequest()
public CreateRoleRequest(CreateRoleRequest source)
public String getRoleName()
public void setRoleName(String RoleName)
RoleName
- Role namepublic String getPolicyDocument()
public void setPolicyDocument(String PolicyDocument)
PolicyDocument
- Policy documentpublic String getDescription()
public void setDescription(String Description)
Description
- Role descriptionpublic Long getConsoleLogin()
public void setConsoleLogin(Long ConsoleLogin)
ConsoleLogin
- Whether login is allowed. 1: yes, 0: nopublic Long getSessionDuration()
public void setSessionDuration(Long SessionDuration)
SessionDuration
- The maximum validity period of the temporary key for creating a role (range: 0-43200)public RoleTags[] getTags()
public void setTags(RoleTags[] Tags)
Tags
- Tags bound to the role.Copyright © 2023. All rights reserved.