public class DeleteRolePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DeleteRolePolicy operation
.
Deletes the specified inline policy that is embedded in the specified role.
A role can also have managed policies attached to it. To detach a managed policy from a role, use DetachRolePolicy. For more information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.
NOOP
Constructor and Description |
---|
DeleteRolePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
DeleteRolePolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getPolicyName()
The name identifying the policy document to delete.
|
String |
getRoleName()
The name (friendly name, not ARN) identifying the role that the policy
is embedded in.
|
int |
hashCode() |
void |
setPolicyName(String policyName)
The name identifying the policy document to delete.
|
void |
setRoleName(String roleName)
The name (friendly name, not ARN) identifying the role that the policy
is embedded in.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteRolePolicyRequest |
withPolicyName(String policyName)
The name identifying the policy document to delete.
|
DeleteRolePolicyRequest |
withRoleName(String roleName)
The name (friendly name, not ARN) identifying the role that the policy
is embedded in.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, 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 (friendly name, not ARN) identifying the role that the policy
is embedded in.public DeleteRolePolicyRequest 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 (friendly name, not ARN) identifying the role that the policy
is embedded in.public String getPolicyName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
public void setPolicyName(String policyName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName
- The name identifying the policy document to delete.public DeleteRolePolicyRequest withPolicyName(String policyName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName
- The name identifying the policy document to delete.public String toString()
toString
in class Object
Object.toString()
public DeleteRolePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.