@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetKeyPolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetKeyPolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetKeyPolicyResult |
clone() |
boolean |
equals(Object obj) |
String |
getPolicy()
A policy document in JSON format.
|
int |
hashCode() |
void |
setPolicy(String policy)
A policy document in JSON format.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GetKeyPolicyResult |
withPolicy(String policy)
A policy document in JSON format.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPolicy(String policy)
A policy document in JSON format.
policy
- A policy document in JSON format.public String getPolicy()
A policy document in JSON format.
public GetKeyPolicyResult withPolicy(String policy)
A policy document in JSON format.
policy
- A policy document in JSON format.public String toString()
toString
in class Object
Object.toString()
public GetKeyPolicyResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.