public class GetPolicyResult extends Object implements Serializable
The output from the GetPolicy operation.
| Constructor and Description |
|---|
GetPolicyResult() |
| Modifier and Type | Method and Description |
|---|---|
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; useful for testing and
debugging.
|
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.
|
public String getPolicyName()
The policy name.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
The policy name.
public void setPolicyName(String policyName)
The policy name.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName - The policy name.
public GetPolicyResult withPolicyName(String policyName)
The policy name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]+
policyName - The policy name.
public String getPolicyArn()
The policy ARN.
The policy ARN.
public void setPolicyArn(String policyArn)
The policy ARN.
policyArn - The policy ARN.
public GetPolicyResult withPolicyArn(String policyArn)
The policy ARN.
Returns a reference to this object so that method calls can be chained together.
policyArn - The policy ARN.
public String getPolicyDocument()
The JSON document that describes the policy.
The JSON document that describes the policy.
public void setPolicyDocument(String policyDocument)
The JSON document that describes the policy.
policyDocument - The JSON document that describes the policy.
public GetPolicyResult withPolicyDocument(String policyDocument)
The JSON document that describes the policy.
Returns a reference to this object so that method calls can be chained together.
policyDocument - The JSON document that describes the policy.
public String getDefaultVersionId()
The default policy version ID.
Constraints:
Pattern: [0-9]+
The default policy version ID.
public void setDefaultVersionId(String defaultVersionId)
The default policy version ID.
Constraints:
Pattern: [0-9]+
defaultVersionId - The default policy version ID.
public GetPolicyResult withDefaultVersionId(String defaultVersionId)
The default policy version ID.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [0-9]+
defaultVersionId - The default policy version ID.
public Date getCreationDate()
The date the policy was created.
The date the policy was created.
public void setCreationDate(Date creationDate)
The date the policy was created.
creationDate - The date the policy was created.
public GetPolicyResult withCreationDate(Date creationDate)
The date the policy was created.
Returns a reference to this object so that method calls can be chained together.
creationDate - The date the policy was created.
public Date getLastModifiedDate()
The date the policy was last modified.
The date the policy was last modified.
public void setLastModifiedDate(Date lastModifiedDate)
The date the policy was last modified.
lastModifiedDate - The date the policy was last modified.
public GetPolicyResult withLastModifiedDate(Date lastModifiedDate)
The date the policy was last modified.
Returns a reference to this object so that method calls can be chained together.
lastModifiedDate - The date the policy was last modified.
public String getGenerationId()
The generation ID of the policy.
The generation ID of the policy.
public void setGenerationId(String generationId)
The generation ID of the policy.
generationId - The generation ID of the policy.
public GetPolicyResult withGenerationId(String generationId)
The generation ID of the policy.
Returns a reference to this object so that method calls can be chained together.
generationId - The generation ID of the policy.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.