Class DhcpConfiguration

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

public class DhcpConfiguration extends Object implements Serializable, Cloneable

Describes a DHCP configuration option.

See Also:
  • Constructor Details

    • DhcpConfiguration

      public DhcpConfiguration()
  • Method Details

    • setKey

      public void setKey(String key)

      The name of a DHCP option.

      Parameters:
      key - The name of a DHCP option.
    • getKey

      public String getKey()

      The name of a DHCP option.

      Returns:
      The name of a DHCP option.
    • withKey

      public DhcpConfiguration withKey(String key)

      The name of a DHCP option.

      Parameters:
      key - The name of a DHCP option.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getValues

      public List<String> getValues()

      One or more values for the DHCP option.

      Returns:
      One or more values for the DHCP option.
    • setValues

      public void setValues(Collection<String> values)

      One or more values for the DHCP option.

      Parameters:
      values - One or more values for the DHCP option.
    • withValues

      public DhcpConfiguration withValues(String... values)

      One or more values for the DHCP option.

      NOTE: This method appends the values to the existing list (if any). Use setValues(java.util.Collection) or withValues(java.util.Collection) if you want to override the existing values.

      Parameters:
      values - One or more values for the DHCP option.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withValues

      public DhcpConfiguration withValues(Collection<String> values)

      One or more values for the DHCP option.

      Parameters:
      values - One or more values for the DHCP option.
      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 DhcpConfiguration clone()
      Overrides:
      clone in class Object