public class UpdateAssumeRolePolicyRequest extends AmazonWebServiceRequest implements Serializable
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 .
Constructor and Description |
---|
UpdateAssumeRolePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
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.
|
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 update.public UpdateAssumeRolePolicyRequest 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 update.public String getPolicyDocument()
Constraints:
Length: 1 - 131072
Pattern: [
-ÿ]+
public void setPolicyDocument(String policyDocument)
Constraints:
Length: 1 - 131072
Pattern: [
-ÿ]+
policyDocument
- The policy that grants an entity permission to assume the role.public UpdateAssumeRolePolicyRequest withPolicyDocument(String policyDocument)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 131072
Pattern: [
-ÿ]+
policyDocument
- The policy that grants an entity permission to assume the role.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.