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