Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class GetRoleRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.identitymanagement.model.GetRoleRequest
All Implemented Interfaces:
Serializable

public class GetRoleRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the 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 .

See Also:
AmazonIdentityManagement.getRole(GetRoleRequest), Serialized Form

Constructor Summary
GetRoleRequest()
           
 
Method Summary
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GetRoleRequest

public GetRoleRequest()
Method Detail

getRoleName

public String getRoleName()
Name of the role to get information about.

Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*

Returns:
Name of the role to get information about.

setRoleName

public void setRoleName(String roleName)
Name of the role to get information about.

Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*

Parameters:
roleName - Name of the role to get information about.

withRoleName

public GetRoleRequest withRoleName(String roleName)
Name of the role to get information about.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 64
Pattern: [\w+=,.@-]*

Parameters:
roleName - Name of the role to get information about.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.