Class DhcpOptions

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

public class DhcpOptions extends Object implements Serializable, Cloneable

Describes a set of DHCP options.

See Also:
  • Constructor Details

    • DhcpOptions

      public DhcpOptions()
  • Method Details

    • setDhcpOptionsId

      public void setDhcpOptionsId(String dhcpOptionsId)

      The ID of the set of DHCP options.

      Parameters:
      dhcpOptionsId - The ID of the set of DHCP options.
    • getDhcpOptionsId

      public String getDhcpOptionsId()

      The ID of the set of DHCP options.

      Returns:
      The ID of the set of DHCP options.
    • withDhcpOptionsId

      public DhcpOptions withDhcpOptionsId(String dhcpOptionsId)

      The ID of the set of DHCP options.

      Parameters:
      dhcpOptionsId - The ID of the set of DHCP options.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getDhcpConfigurations

      public List<DhcpConfiguration> getDhcpConfigurations()

      One or more DHCP options in the set.

      Returns:
      One or more DHCP options in the set.
    • setDhcpConfigurations

      public void setDhcpConfigurations(Collection<DhcpConfiguration> dhcpConfigurations)

      One or more DHCP options in the set.

      Parameters:
      dhcpConfigurations - One or more DHCP options in the set.
    • withDhcpConfigurations

      public DhcpOptions withDhcpConfigurations(DhcpConfiguration... dhcpConfigurations)

      One or more DHCP options in the set.

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

      Parameters:
      dhcpConfigurations - One or more DHCP options in the set.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withDhcpConfigurations

      public DhcpOptions withDhcpConfigurations(Collection<DhcpConfiguration> dhcpConfigurations)

      One or more DHCP options in the set.

      Parameters:
      dhcpConfigurations - One or more DHCP options in the set.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getTags

      public List<Tag> getTags()

      Any tags assigned to the DHCP options set.

      Returns:
      Any tags assigned to the DHCP options set.
    • setTags

      public void setTags(Collection<Tag> tags)

      Any tags assigned to the DHCP options set.

      Parameters:
      tags - Any tags assigned to the DHCP options set.
    • withTags

      public DhcpOptions withTags(Tag... tags)

      Any tags assigned to the DHCP options set.

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

      Parameters:
      tags - Any tags assigned to the DHCP options set.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withTags

      public DhcpOptions withTags(Collection<Tag> tags)

      Any tags assigned to the DHCP options set.

      Parameters:
      tags - Any tags assigned to the DHCP options set.
      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 DhcpOptions clone()
      Overrides:
      clone in class Object