Class PolicyVersion

    • Constructor Detail

      • PolicyVersion

        public PolicyVersion()
    • Method Detail

      • setVersionId

        public void setVersionId​(String versionId)

        The identifier for the policy version.

        Policy version identifiers always begin with v (always lowercase). When a policy is created, the first policy version is v1.

        Parameters:
        versionId - The identifier for the policy version.

        Policy version identifiers always begin with v (always lowercase). When a policy is created, the first policy version is v1.

      • getVersionId

        public String getVersionId()

        The identifier for the policy version.

        Policy version identifiers always begin with v (always lowercase). When a policy is created, the first policy version is v1.

        Returns:
        The identifier for the policy version.

        Policy version identifiers always begin with v (always lowercase). When a policy is created, the first policy version is v1.

      • withVersionId

        public PolicyVersion withVersionId​(String versionId)

        The identifier for the policy version.

        Policy version identifiers always begin with v (always lowercase). When a policy is created, the first policy version is v1.

        Parameters:
        versionId - The identifier for the policy version.

        Policy version identifiers always begin with v (always lowercase). When a policy is created, the first policy version is v1.

        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 set as the policy's default version.

        Parameters:
        isDefaultVersion - Specifies whether the policy version is set as the policy's default version.
      • getIsDefaultVersion

        public Boolean getIsDefaultVersion()

        Specifies whether the policy version is set as the policy's default version.

        Returns:
        Specifies whether the policy version is set as the policy's default version.
      • withIsDefaultVersion

        public PolicyVersion withIsDefaultVersion​(Boolean isDefaultVersion)

        Specifies whether the policy version is set as the policy's default version.

        Parameters:
        isDefaultVersion - Specifies whether the policy version is set as the policy's default version.
        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 set as the policy's default version.

        Returns:
        Specifies whether the policy version is set as the policy's default version.
      • withCreateDate

        public PolicyVersion withCreateDate​(Date createDate)

        The date and time, in ISO 8601 date-time format, when the policy version was created.

        Parameters:
        createDate - The date and time, in ISO 8601 date-time format, when the policy version 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object