Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class UpdateAssumeRolePolicyRequest

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

public class UpdateAssumeRolePolicyRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the UpdateAssumeRolePolicy operation.

Updates the policy that grants an entity permission to assume a role. Currently, only an Amazon EC2 instance can assume a role. For more information about roles, go to Working with Roles .

See Also:
AmazonIdentityManagement.updateAssumeRolePolicy(UpdateAssumeRolePolicyRequest), Serialized Form

Constructor Summary
UpdateAssumeRolePolicyRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getPolicyDocument()
          The policy that grants an entity permission to assume the role.
 String getRoleName()
          Name of the role to update.
 int hashCode()
           
 void setPolicyDocument(String policyDocument)
          The policy that grants an entity permission to assume the role.
 void setRoleName(String roleName)
          Name of the role to update.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 UpdateAssumeRolePolicyRequest withPolicyDocument(String policyDocument)
          The policy that grants an entity permission to assume the role.
 UpdateAssumeRolePolicyRequest withRoleName(String roleName)
          Name of the role to update.
 
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

UpdateAssumeRolePolicyRequest

public UpdateAssumeRolePolicyRequest()
Method Detail

getRoleName

public String getRoleName()
Name of the role to update.

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

Returns:
Name of the role to update.

setRoleName

public void setRoleName(String roleName)
Name of the role to update.

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

Parameters:
roleName - Name of the role to update.

withRoleName

public UpdateAssumeRolePolicyRequest withRoleName(String roleName)
Name of the role to update.

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 update.
Returns:
A reference to this updated object so that method calls can be chained together.

getPolicyDocument

public String getPolicyDocument()
The policy that grants an entity permission to assume the role.

Constraints:
Length: 1 - 131072
Pattern: [ -?]+

Returns:
The policy that grants an entity permission to assume the role.

setPolicyDocument

public void setPolicyDocument(String policyDocument)
The policy that grants an entity permission to assume the role.

Constraints:
Length: 1 - 131072
Pattern: [ -?]+

Parameters:
policyDocument - The policy that grants an entity permission to assume the role.

withPolicyDocument

public UpdateAssumeRolePolicyRequest withPolicyDocument(String policyDocument)
The policy that grants an entity permission to assume the role.

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

Constraints:
Length: 1 - 131072
Pattern: [ -?]+

Parameters:
policyDocument - The policy that grants an entity permission to assume the role.
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.