public class GetRoleRequest extends AmazonWebServiceRequest implements Serializable
GetRole operation
.
Retrieves information about the specified role, including the role's path, GUID, ARN, and the policy granting permission to EC2 to assume the role. For more information about ARNs, go to ARNs. For more information about roles, go to Working with Roles .
The returned policy is URL-encoded according to RFC 3986. For more information about RFC 3986, go to http://www.faqs.org/rfcs/rfc3986.html .
Constructor and Description |
---|
GetRoleRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getRoleName()
Name of the role to get information about.
|
int |
hashCode() |
void |
setRoleName(String roleName)
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)
Name of the role to get information about.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public String getRoleName()
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
public void setRoleName(String roleName)
Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*
roleName
- 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
- Name of the role to get information about.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.