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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DhcpOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DhcpOptions
clone()
boolean
equals(Object obj)
List<DhcpConfiguration>
getDhcpConfigurations()
One or more DHCP options in the set.String
getDhcpOptionsId()
The ID of the set of DHCP options.List<Tag>
getTags()
Any tags assigned to the DHCP options set.int
hashCode()
void
setDhcpConfigurations(Collection<DhcpConfiguration> dhcpConfigurations)
One or more DHCP options in the set.void
setDhcpOptionsId(String dhcpOptionsId)
The ID of the set of DHCP options.void
setTags(Collection<Tag> tags)
Any tags assigned to the DHCP options set.String
toString()
Returns a string representation of this object; useful for testing and debugging.DhcpOptions
withDhcpConfigurations(DhcpConfiguration... dhcpConfigurations)
One or more DHCP options in the set.DhcpOptions
withDhcpConfigurations(Collection<DhcpConfiguration> dhcpConfigurations)
One or more DHCP options in the set.DhcpOptions
withDhcpOptionsId(String dhcpOptionsId)
The ID of the set of DHCP options.DhcpOptions
withTags(Tag... tags)
Any tags assigned to the DHCP options set.DhcpOptions
withTags(Collection<Tag> tags)
Any tags assigned to the DHCP options set.
-
-
-
Method Detail
-
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)
orwithDhcpConfigurations(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)
orwithTags(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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DhcpOptions clone()
-
-