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:
  • Constructor Details

    • PolicyVersion

      public PolicyVersion()
  • Method Details

    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public PolicyVersion clone()
      Overrides:
      clone in class Object