Class IdFormat

    • Constructor Detail

      • IdFormat

        public IdFormat()
    • Method Detail

      • setResource

        public void setResource​(String resource)

        The type of resource.

        Parameters:
        resource - The type of resource.
      • getResource

        public String getResource()

        The type of resource.

        Returns:
        The type of resource.
      • withResource

        public IdFormat withResource​(String resource)

        The type of resource.

        Parameters:
        resource - The type of resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setUseLongIds

        public void setUseLongIds​(Boolean useLongIds)

        Indicates whether longer IDs (17-character IDs) are enabled for the resource.

        Parameters:
        useLongIds - Indicates whether longer IDs (17-character IDs) are enabled for the resource.
      • getUseLongIds

        public Boolean getUseLongIds()

        Indicates whether longer IDs (17-character IDs) are enabled for the resource.

        Returns:
        Indicates whether longer IDs (17-character IDs) are enabled for the resource.
      • withUseLongIds

        public IdFormat withUseLongIds​(Boolean useLongIds)

        Indicates whether longer IDs (17-character IDs) are enabled for the resource.

        Parameters:
        useLongIds - Indicates whether longer IDs (17-character IDs) are enabled for the resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isUseLongIds

        public Boolean isUseLongIds()

        Indicates whether longer IDs (17-character IDs) are enabled for the resource.

        Returns:
        Indicates whether longer IDs (17-character IDs) are enabled for the resource.
      • setDeadline

        public void setDeadline​(Date deadline)

        The date in UTC at which you are permanently switched over to using longer IDs. If a deadline is not yet available for this resource type, this field is not returned.

        Parameters:
        deadline - The date in UTC at which you are permanently switched over to using longer IDs. If a deadline is not yet available for this resource type, this field is not returned.
      • getDeadline

        public Date getDeadline()

        The date in UTC at which you are permanently switched over to using longer IDs. If a deadline is not yet available for this resource type, this field is not returned.

        Returns:
        The date in UTC at which you are permanently switched over to using longer IDs. If a deadline is not yet available for this resource type, this field is not returned.
      • withDeadline

        public IdFormat withDeadline​(Date deadline)

        The date in UTC at which you are permanently switched over to using longer IDs. If a deadline is not yet available for this resource type, this field is not returned.

        Parameters:
        deadline - The date in UTC at which you are permanently switched over to using longer IDs. If a deadline is not yet available for this resource type, this field is not returned.
        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