Package com.amazonaws.services.iot.model
Class PolicyVersion
- java.lang.Object
-
- com.amazonaws.services.iot.model.PolicyVersion
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class PolicyVersion extends Object implements Serializable, Cloneable
Describes a policy version.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PolicyVersion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyVersion
clone()
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.
-
-
-
Method Detail
-
setVersionId
public void setVersionId(String versionId)
The policy version ID.
- Parameters:
versionId
- The policy version ID.
-
getVersionId
public String getVersionId()
The policy version ID.
- Returns:
- The policy version ID.
-
withVersionId
public PolicyVersion withVersionId(String versionId)
The policy version ID.
- Parameters:
versionId
- The policy version ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIsDefaultVersion
public void setIsDefaultVersion(Boolean isDefaultVersion)
Specifies whether the policy version is the default.
- Parameters:
isDefaultVersion
- Specifies whether the policy version is the default.
-
getIsDefaultVersion
public Boolean getIsDefaultVersion()
Specifies whether the policy version is the default.
- Returns:
- Specifies whether the policy version is the default.
-
withIsDefaultVersion
public PolicyVersion withIsDefaultVersion(Boolean isDefaultVersion)
Specifies whether the policy version is the default.
- Parameters:
isDefaultVersion
- Specifies whether the policy version is the default.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDefaultVersion
public Boolean isDefaultVersion()
Specifies whether the policy version is the default.
- Returns:
- Specifies whether the policy version is the default.
-
setCreateDate
public void setCreateDate(Date createDate)
The date and time the policy was created.
- Parameters:
createDate
- The date and time the policy was created.
-
getCreateDate
public Date getCreateDate()
The date and time the policy was created.
- Returns:
- The date and time the policy was created.
-
withCreateDate
public PolicyVersion withCreateDate(Date createDate)
The date and time the policy was created.
- Parameters:
createDate
- The date and time the policy was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PolicyVersion clone()
-
-