public class PolicyVersion
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a policy version.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
createDate
The date and time the policy was created.
|
private java.lang.Boolean |
isDefaultVersion
Specifies whether the policy version is the default.
|
private java.lang.String |
versionId
The policy version ID.
|
Constructor and Description |
---|
PolicyVersion() |
Modifier and Type | Method and Description |
---|---|
PolicyVersion |
clone() |
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 |
isDefaultVersion()
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.
|
private java.lang.String versionId
The policy version ID.
private java.lang.Boolean isDefaultVersion
Specifies whether the policy version is the default.
private java.util.Date createDate
The date and time the policy was created.
public void setVersionId(java.lang.String versionId)
The policy version ID.
versionId
- The policy version ID.public java.lang.String getVersionId()
The policy version ID.
public PolicyVersion withVersionId(java.lang.String versionId)
The policy version ID.
versionId
- The policy version ID.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 java.lang.Boolean getIsDefaultVersion()
Specifies whether the policy version is the default.
public PolicyVersion withIsDefaultVersion(java.lang.Boolean isDefaultVersion)
Specifies whether the policy version is the default.
isDefaultVersion
- Specifies whether the policy version is the default.public java.lang.Boolean isDefaultVersion()
Specifies whether the policy version is the default.
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 java.util.Date getCreateDate()
The date and time the policy was created.
public PolicyVersion withCreateDate(java.util.Date createDate)
The date and time the policy was created.
createDate
- The date and time the policy was created.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PolicyVersion clone()
clone
in class java.lang.Object