Package com.amazonaws.services.ec2.model
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DhcpConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DhcpConfigurationclone()booleanequals(Object obj)StringgetKey()The name of a DHCP option.List<String>getValues()One or more values for the DHCP option.inthashCode()voidsetKey(String key)The name of a DHCP option.voidsetValues(Collection<String> values)One or more values for the DHCP option.StringtoString()Returns a string representation of this object; useful for testing and debugging.DhcpConfigurationwithKey(String key)The name of a DHCP option.DhcpConfigurationwithValues(String... values)One or more values for the DHCP option.DhcpConfigurationwithValues(Collection<String> values)One or more values for the DHCP option.
-
-
-
Method Detail
-
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)orwithValues(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DhcpConfiguration clone()
-
-