public class GetRoleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
GetRole operation
.
Retrieves information about the specified role, including the role's path, GUID, ARN, and the policy granting permission to assume the role. For more information about ARNs, go to ARNs . For more information about roles, go to Working with Roles .
NOOP
Constructor and Description |
---|
GetRoleRequest() |
Modifier and Type | Method and Description |
---|---|
GetRoleRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getRoleName()
The name of the role to get information about.
|
int |
hashCode() |
void |
setRoleName(String roleName)
The name of the role to get information about.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetRoleRequest |
withRoleName(String roleName)
The name of the role to get information about.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getRoleName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
public void setRoleName(String roleName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
roleName
- The name of the role to get information about.public GetRoleRequest withRoleName(String roleName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]+
roleName
- The name of the role to get information about.public String toString()
toString
in class Object
Object.toString()
public GetRoleRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.