@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. 
 | 
String | 
getPolicyName()
 The name of the key policy. 
 | 
int | 
hashCode()  | 
void | 
setPolicy(String policy)
 A key policy document in JSON format. 
 | 
void | 
setPolicyName(String policyName)
 The name of the key policy. 
 | 
String | 
toString()
Returns a string representation of this object. 
 | 
GetKeyPolicyResult | 
withPolicy(String policy)
 A key policy document in JSON format. 
 | 
GetKeyPolicyResult | 
withPolicyName(String policyName)
 The name of the key policy. 
 | 
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 void setPolicyName(String policyName)
 The name of the key policy. The only valid value is default.
 
policyName - The name of the key policy. The only valid value is default.public String getPolicyName()
 The name of the key policy. The only valid value is default.
 
default.public GetKeyPolicyResult withPolicyName(String policyName)
 The name of the key policy. The only valid value is default.
 
policyName - The name of the key policy. The only valid value is default.public String toString()
toString in class ObjectObject.toString()public GetKeyPolicyResult clone()