@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetPolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
The output from the GetPolicy operation.
Constructor and Description |
---|
GetPolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetPolicyResult |
clone() |
boolean |
equals(Object obj) |
String |
getDefaultVersionId()
The default policy version ID.
|
String |
getPolicyArn()
The policy ARN.
|
String |
getPolicyDocument()
The JSON document that describes the policy.
|
String |
getPolicyName()
The policy name.
|
int |
hashCode() |
void |
setDefaultVersionId(String defaultVersionId)
The default policy version ID.
|
void |
setPolicyArn(String policyArn)
The policy ARN.
|
void |
setPolicyDocument(String policyDocument)
The JSON document that describes the policy.
|
void |
setPolicyName(String policyName)
The policy name.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
GetPolicyResult |
withDefaultVersionId(String defaultVersionId)
The default policy version ID.
|
GetPolicyResult |
withPolicyArn(String policyArn)
The policy ARN.
|
GetPolicyResult |
withPolicyDocument(String policyDocument)
The JSON document that describes the policy.
|
GetPolicyResult |
withPolicyName(String policyName)
The policy name.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPolicyName(String policyName)
The policy name.
policyName
- The policy name.public String getPolicyName()
The policy name.
public GetPolicyResult withPolicyName(String policyName)
The policy name.
policyName
- The policy name.public void setPolicyArn(String policyArn)
The policy ARN.
policyArn
- The policy ARN.public String getPolicyArn()
The policy ARN.
public GetPolicyResult withPolicyArn(String policyArn)
The policy ARN.
policyArn
- The policy ARN.public void setPolicyDocument(String policyDocument)
The JSON document that describes the policy.
policyDocument
- The JSON document that describes the policy.public String getPolicyDocument()
The JSON document that describes the policy.
public GetPolicyResult withPolicyDocument(String policyDocument)
The JSON document that describes the policy.
policyDocument
- The JSON document that describes the policy.public void setDefaultVersionId(String defaultVersionId)
The default policy version ID.
defaultVersionId
- The default policy version ID.public String getDefaultVersionId()
The default policy version ID.
public GetPolicyResult withDefaultVersionId(String defaultVersionId)
The default policy version ID.
defaultVersionId
- The default policy version ID.public String toString()
toString
in class Object
Object.toString()
public GetPolicyResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.