java.lang.Object
com.amazonaws.services.route53domains.model.Tag
All Implemented Interfaces:
Serializable, Cloneable

public class Tag extends Object implements Serializable, Cloneable

Each tag includes the following elements.

See Also:
  • Constructor Details

    • Tag

      public Tag()
  • Method Details

    • setKey

      public void setKey(String key)

      The key (name) of a tag.

      Type: String

      Default: None

      Valid values: A-Z, a-z, 0-9, space, ".:/=+\-@"

      Constraints: Each key can be 1-128 characters long.

      Required: Yes

      Parameters:
      key - The key (name) of a tag.

      Type: String

      Default: None

      Valid values: A-Z, a-z, 0-9, space, ".:/=+\-@"

      Constraints: Each key can be 1-128 characters long.

      Required: Yes

    • getKey

      public String getKey()

      The key (name) of a tag.

      Type: String

      Default: None

      Valid values: A-Z, a-z, 0-9, space, ".:/=+\-@"

      Constraints: Each key can be 1-128 characters long.

      Required: Yes

      Returns:
      The key (name) of a tag.

      Type: String

      Default: None

      Valid values: A-Z, a-z, 0-9, space, ".:/=+\-@"

      Constraints: Each key can be 1-128 characters long.

      Required: Yes

    • withKey

      public Tag withKey(String key)

      The key (name) of a tag.

      Type: String

      Default: None

      Valid values: A-Z, a-z, 0-9, space, ".:/=+\-@"

      Constraints: Each key can be 1-128 characters long.

      Required: Yes

      Parameters:
      key - The key (name) of a tag.

      Type: String

      Default: None

      Valid values: A-Z, a-z, 0-9, space, ".:/=+\-@"

      Constraints: Each key can be 1-128 characters long.

      Required: Yes

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setValue

      public void setValue(String value)

      The value of a tag.

      Type: String

      Default: None

      Valid values: A-Z, a-z, 0-9, space, ".:/=+\-@"

      Constraints: Each value can be 0-256 characters long.

      Required: Yes

      Parameters:
      value - The value of a tag.

      Type: String

      Default: None

      Valid values: A-Z, a-z, 0-9, space, ".:/=+\-@"

      Constraints: Each value can be 0-256 characters long.

      Required: Yes

    • getValue

      public String getValue()

      The value of a tag.

      Type: String

      Default: None

      Valid values: A-Z, a-z, 0-9, space, ".:/=+\-@"

      Constraints: Each value can be 0-256 characters long.

      Required: Yes

      Returns:
      The value of a tag.

      Type: String

      Default: None

      Valid values: A-Z, a-z, 0-9, space, ".:/=+\-@"

      Constraints: Each value can be 0-256 characters long.

      Required: Yes

    • withValue

      public Tag withValue(String value)

      The value of a tag.

      Type: String

      Default: None

      Valid values: A-Z, a-z, 0-9, space, ".:/=+\-@"

      Constraints: Each value can be 0-256 characters long.

      Required: Yes

      Parameters:
      value - The value of a tag.

      Type: String

      Default: None

      Valid values: A-Z, a-z, 0-9, space, ".:/=+\-@"

      Constraints: Each value can be 0-256 characters long.

      Required: Yes

      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 Tag clone()
      Overrides:
      clone in class Object