Class GetRolePolicyResult
- java.lang.Object
-
- com.amazonaws.services.identitymanagement.model.GetRolePolicyResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class GetRolePolicyResult extends Object implements Serializable, Cloneable
Contains the response to a successful GetRolePolicy request.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GetRolePolicyResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetRolePolicyResult
clone()
boolean
equals(Object obj)
String
getPolicyDocument()
The policy document.String
getPolicyName()
The name of the policy.String
getRoleName()
The role the policy is associated with.int
hashCode()
void
setPolicyDocument(String policyDocument)
The policy document.void
setPolicyName(String policyName)
The name of the policy.void
setRoleName(String roleName)
The role the policy is associated with.String
toString()
Returns a string representation of this object; useful for testing and debugging.GetRolePolicyResult
withPolicyDocument(String policyDocument)
The policy document.GetRolePolicyResult
withPolicyName(String policyName)
The name of the policy.GetRolePolicyResult
withRoleName(String roleName)
The role the policy is associated with.
-
-
-
Method Detail
-
setRoleName
public void setRoleName(String roleName)
The role the policy is associated with.
- Parameters:
roleName
- The role the policy is associated with.
-
getRoleName
public String getRoleName()
The role the policy is associated with.
- Returns:
- The role the policy is associated with.
-
withRoleName
public GetRolePolicyResult withRoleName(String roleName)
The role the policy is associated with.
- Parameters:
roleName
- The role the policy is associated with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPolicyName
public void setPolicyName(String policyName)
The name of the policy.
- Parameters:
policyName
- The name of the policy.
-
getPolicyName
public String getPolicyName()
The name of the policy.
- Returns:
- The name of the policy.
-
withPolicyName
public GetRolePolicyResult withPolicyName(String policyName)
The name of the policy.
- Parameters:
policyName
- The name of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPolicyDocument
public void setPolicyDocument(String policyDocument)
The policy document.
- Parameters:
policyDocument
- The policy document.
-
getPolicyDocument
public String getPolicyDocument()
The policy document.
- Returns:
- The policy document.
-
withPolicyDocument
public GetRolePolicyResult withPolicyDocument(String policyDocument)
The policy document.
- Parameters:
policyDocument
- The policy document.- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public GetRolePolicyResult clone()
-
-