public class CreateRoleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateRoleRequest() |
Modifier and Type | Method and Description |
---|---|
CreateRoleRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getAssumeRolePolicyDocument()
The trust relationship policy document that grants an entity permission
to assume the role.
|
String |
getPath()
The path to the role.
|
String |
getRoleName()
The name of the role to create.
|
int |
hashCode() |
void |
setAssumeRolePolicyDocument(String assumeRolePolicyDocument)
The trust relationship policy document that grants an entity permission
to assume the role.
|
void |
setPath(String path)
The path to the role.
|
void |
setRoleName(String roleName)
The name of the role to create.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateRoleRequest |
withAssumeRolePolicyDocument(String assumeRolePolicyDocument)
The trust relationship policy document that grants an entity permission
to assume the role.
|
CreateRoleRequest |
withPath(String path)
The path to the role.
|
CreateRoleRequest |
withRoleName(String roleName)
The name of the role to create.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setPath(String path)
The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
This parameter is optional. If it is not included, it defaults to a slash (/).
path
- The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
This parameter is optional. If it is not included, it defaults to a slash (/).
public String getPath()
The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
This parameter is optional. If it is not included, it defaults to a slash (/).
This parameter is optional. If it is not included, it defaults to a slash (/).
public CreateRoleRequest withPath(String path)
The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
This parameter is optional. If it is not included, it defaults to a slash (/).
path
- The path to the role. For more information about paths, see IAM Identifiers in the Using IAM guide.
This parameter is optional. If it is not included, it defaults to a slash (/).
public void setRoleName(String roleName)
The name of the role to create.
roleName
- The name of the role to create.public String getRoleName()
The name of the role to create.
public CreateRoleRequest withRoleName(String roleName)
The name of the role to create.
roleName
- The name of the role to create.public void setAssumeRolePolicyDocument(String assumeRolePolicyDocument)
The trust relationship policy document that grants an entity permission to assume the role.
assumeRolePolicyDocument
- The trust relationship policy document that grants an entity
permission to assume the role.public String getAssumeRolePolicyDocument()
The trust relationship policy document that grants an entity permission to assume the role.
public CreateRoleRequest withAssumeRolePolicyDocument(String assumeRolePolicyDocument)
The trust relationship policy document that grants an entity permission to assume the role.
assumeRolePolicyDocument
- The trust relationship policy document that grants an entity
permission to assume the role.public String toString()
toString
in class Object
Object.toString()
public CreateRoleRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.