@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetPolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description | 
|---|
| GetPolicyResult() | 
| Modifier and Type | Method and Description | 
|---|---|
| GetPolicyResult | clone() | 
| boolean | equals(Object obj) | 
| String | getPolicy()
 The resource-based policy. | 
| String | getRevisionId()
 A unique identifier for the current revision of the policy. | 
| int | hashCode() | 
| void | setPolicy(String policy)
 The resource-based policy. | 
| void | setRevisionId(String revisionId)
 A unique identifier for the current revision of the policy. | 
| String | toString()Returns a string representation of this object. | 
| GetPolicyResult | withPolicy(String policy)
 The resource-based policy. | 
| GetPolicyResult | withRevisionId(String revisionId)
 A unique identifier for the current revision of the policy. | 
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setPolicy(String policy)
The resource-based policy.
policy - The resource-based policy.public String getPolicy()
The resource-based policy.
public GetPolicyResult withPolicy(String policy)
The resource-based policy.
policy - The resource-based policy.public void setRevisionId(String revisionId)
A unique identifier for the current revision of the policy.
revisionId - A unique identifier for the current revision of the policy.public String getRevisionId()
A unique identifier for the current revision of the policy.
public GetPolicyResult withRevisionId(String revisionId)
A unique identifier for the current revision of the policy.
revisionId - A unique identifier for the current revision of the policy.public String toString()
toString in class ObjectObject.toString()public GetPolicyResult clone()
Copyright © 2020. All rights reserved.