Class IdFormat

java.lang.Object
com.amazonaws.services.ec2.model.IdFormat
All Implemented Interfaces:
Serializable, Cloneable

public class IdFormat extends Object implements Serializable, Cloneable

Describes the ID format for a resource.

See Also:
  • Constructor Details

    • IdFormat

      public IdFormat()
  • Method Details

    • 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:
    • equals

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

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

      public IdFormat clone()
      Overrides:
      clone in class Object