public class PolicyVersion
extends java.lang.Object
implements java.io.Serializable
Describes a policy version.
Constructor and Description |
---|
PolicyVersion() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreateDate()
The date and time the policy was created.
|
java.lang.Boolean |
getIsDefaultVersion()
Specifies whether the policy version is the default.
|
java.lang.String |
getVersionId()
The policy version ID.
|
int |
hashCode() |
java.lang.Boolean |
isIsDefaultVersion()
Specifies whether the policy version is the default.
|
void |
setCreateDate(java.util.Date createDate)
The date and time the policy was created.
|
void |
setIsDefaultVersion(java.lang.Boolean isDefaultVersion)
Specifies whether the policy version is the default.
|
void |
setVersionId(java.lang.String versionId)
The policy version ID.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PolicyVersion |
withCreateDate(java.util.Date createDate)
The date and time the policy was created.
|
PolicyVersion |
withIsDefaultVersion(java.lang.Boolean isDefaultVersion)
Specifies whether the policy version is the default.
|
PolicyVersion |
withVersionId(java.lang.String versionId)
The policy version ID.
|
public java.lang.String getVersionId()
The policy version ID.
Constraints:
Pattern: [0-9]+
The policy version ID.
public void setVersionId(java.lang.String versionId)
The policy version ID.
Constraints:
Pattern: [0-9]+
versionId
- The policy version ID.
public PolicyVersion withVersionId(java.lang.String versionId)
The policy version ID.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [0-9]+
versionId
- 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 PolicyVersion 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 getCreateDate()
The date and time the policy was created.
The date and time the policy was created.
public void setCreateDate(java.util.Date createDate)
The date and time the policy was created.
createDate
- The date and time the policy was created.
public PolicyVersion withCreateDate(java.util.Date createDate)
The date and time the policy was created.
Returns a reference to this object so that method calls can be chained together.
createDate
- The date and time the policy was created.
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.