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