@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 key policy document in JSON format. 
 | 
int | 
hashCode()  | 
void | 
setPolicy(String policy)
 A key policy document in JSON format. 
 | 
String | 
toString()
Returns a string representation of this object. 
 | 
GetKeyPolicyResult | 
withPolicy(String policy)
 A key policy document in JSON format. 
 | 
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setPolicy(String policy)
A key policy document in JSON format.
policy - A key policy document in JSON format.public String getPolicy()
A key policy document in JSON format.
public GetKeyPolicyResult withPolicy(String policy)
A key policy document in JSON format.
policy - A key policy document in JSON format.public String toString()
toString in class ObjectObject.toString()public GetKeyPolicyResult clone()
Copyright © 2020. All rights reserved.