@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) |
Date |
getCreationDate()
The date the policy was created.
|
String |
getDefaultVersionId()
The default policy version ID.
|
String |
getGenerationId()
The generation ID of the policy.
|
Date |
getLastModifiedDate()
The date the policy was last modified.
|
String |
getPolicyArn()
The policy ARN.
|
String |
getPolicyDocument()
The JSON document that describes the policy.
|
String |
getPolicyName()
The policy name.
|
int |
hashCode() |
void |
setCreationDate(Date creationDate)
The date the policy was created.
|
void |
setDefaultVersionId(String defaultVersionId)
The default policy version ID.
|
void |
setGenerationId(String generationId)
The generation ID of the policy.
|
void |
setLastModifiedDate(Date lastModifiedDate)
The date the policy was last modified.
|
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.
|
GetPolicyResult |
withCreationDate(Date creationDate)
The date the policy was created.
|
GetPolicyResult |
withDefaultVersionId(String defaultVersionId)
The default policy version ID.
|
GetPolicyResult |
withGenerationId(String generationId)
The generation ID of the policy.
|
GetPolicyResult |
withLastModifiedDate(Date lastModifiedDate)
The date the policy was last modified.
|
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 void setCreationDate(Date creationDate)
The date the policy was created.
creationDate
- The date the policy was created.public Date getCreationDate()
The date the policy was created.
public GetPolicyResult withCreationDate(Date creationDate)
The date the policy was created.
creationDate
- The date the policy was created.public void setLastModifiedDate(Date lastModifiedDate)
The date the policy was last modified.
lastModifiedDate
- The date the policy was last modified.public Date getLastModifiedDate()
The date the policy was last modified.
public GetPolicyResult withLastModifiedDate(Date lastModifiedDate)
The date the policy was last modified.
lastModifiedDate
- The date the policy was last modified.public void setGenerationId(String generationId)
The generation ID of the policy.
generationId
- The generation ID of the policy.public String getGenerationId()
The generation ID of the policy.
public GetPolicyResult withGenerationId(String generationId)
The generation ID of the policy.
generationId
- The generation ID of the policy.public String toString()
toString
in class Object
Object.toString()
public GetPolicyResult clone()