Class KeyValuePair

java.lang.Object
com.amazonaws.services.ecs.model.KeyValuePair
All Implemented Interfaces:
Serializable, Cloneable

public class KeyValuePair extends Object implements Serializable, Cloneable

A key and value pair object.

See Also:
  • Constructor Details

    • KeyValuePair

      public KeyValuePair()
  • Method Details

    • setName

      public void setName(String name)

      The name of the key value pair. For environment variables, this is the name of the environment variable.

      Parameters:
      name - The name of the key value pair. For environment variables, this is the name of the environment variable.
    • getName

      public String getName()

      The name of the key value pair. For environment variables, this is the name of the environment variable.

      Returns:
      The name of the key value pair. For environment variables, this is the name of the environment variable.
    • withName

      public KeyValuePair withName(String name)

      The name of the key value pair. For environment variables, this is the name of the environment variable.

      Parameters:
      name - The name of the key value pair. For environment variables, this is the name of the environment variable.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setValue

      public void setValue(String value)

      The value of the key value pair. For environment variables, this is the value of the environment variable.

      Parameters:
      value - The value of the key value pair. For environment variables, this is the value of the environment variable.
    • getValue

      public String getValue()

      The value of the key value pair. For environment variables, this is the value of the environment variable.

      Returns:
      The value of the key value pair. For environment variables, this is the value of the environment variable.
    • withValue

      public KeyValuePair withValue(String value)

      The value of the key value pair. For environment variables, this is the value of the environment variable.

      Parameters:
      value - The value of the key value pair. For environment variables, this is the value of the environment variable.
      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 KeyValuePair clone()
      Overrides:
      clone in class Object