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