public class GetPolicyVersionResult
extends java.lang.Object
implements java.io.Serializable
The output from the GetPolicyVersion operation.
Constructor and Description |
---|
GetPolicyVersionResult() |
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 |
getGenerationId()
The generation ID of the policy version.
|
java.lang.Boolean |
getIsDefaultVersion()
Specifies whether the policy version is the default.
|
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.
|
java.lang.String |
getPolicyVersionId()
The policy version ID.
|
int |
hashCode() |
java.lang.Boolean |
isIsDefaultVersion()
Specifies whether the policy version is the default.
|
void |
setCreationDate(java.util.Date creationDate)
The date the policy was created.
|
void |
setGenerationId(java.lang.String generationId)
The generation ID of the policy version.
|
void |
setIsDefaultVersion(java.lang.Boolean isDefaultVersion)
Specifies whether the policy version is the default.
|
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.
|
void |
setPolicyVersionId(java.lang.String policyVersionId)
The policy version ID.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetPolicyVersionResult |
withCreationDate(java.util.Date creationDate)
The date the policy was created.
|
GetPolicyVersionResult |
withGenerationId(java.lang.String generationId)
The generation ID of the policy version.
|
GetPolicyVersionResult |
withIsDefaultVersion(java.lang.Boolean isDefaultVersion)
Specifies whether the policy version is the default.
|
GetPolicyVersionResult |
withLastModifiedDate(java.util.Date lastModifiedDate)
The date the policy was last modified.
|
GetPolicyVersionResult |
withPolicyArn(java.lang.String policyArn)
The policy ARN.
|
GetPolicyVersionResult |
withPolicyDocument(java.lang.String policyDocument)
The JSON document that describes the policy.
|
GetPolicyVersionResult |
withPolicyName(java.lang.String policyName)
The policy name.
|
GetPolicyVersionResult |
withPolicyVersionId(java.lang.String policyVersionId)
The policy version ID.
|
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 GetPolicyVersionResult 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 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 GetPolicyVersionResult 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 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 GetPolicyVersionResult 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 getPolicyVersionId()
The policy version ID.
Constraints:
Pattern: [0-9]+
The policy version ID.
public void setPolicyVersionId(java.lang.String policyVersionId)
The policy version ID.
Constraints:
Pattern: [0-9]+
policyVersionId
- The policy version ID.
public GetPolicyVersionResult withPolicyVersionId(java.lang.String policyVersionId)
The policy version ID.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [0-9]+
policyVersionId
- The policy version ID.
public java.lang.Boolean isIsDefaultVersion()
Specifies whether the policy version is the default.
Specifies whether the policy version is the default.
public java.lang.Boolean getIsDefaultVersion()
Specifies whether the policy version is the default.
Specifies whether the policy version is the default.
public void setIsDefaultVersion(java.lang.Boolean isDefaultVersion)
Specifies whether the policy version is the default.
isDefaultVersion
- Specifies whether the policy version is the default.
public GetPolicyVersionResult withIsDefaultVersion(java.lang.Boolean isDefaultVersion)
Specifies whether the policy version is the default.
Returns a reference to this object so that method calls can be chained together.
isDefaultVersion
- Specifies whether the policy version is the default.
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 GetPolicyVersionResult 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 GetPolicyVersionResult 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 version.
The generation ID of the policy version.
public void setGenerationId(java.lang.String generationId)
The generation ID of the policy version.
generationId
- The generation ID of the policy version.
public GetPolicyVersionResult withGenerationId(java.lang.String generationId)
The generation ID of the policy version.
Returns a reference to this object so that method calls can be chained together.
generationId
- The generation ID of the policy version.
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.