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 DhcpConfiguration
clone()
boolean
equals(Object obj)
String
getKey()
The name of a DHCP option.List<String>
getValues()
One or more values for the DHCP option.int
hashCode()
void
setKey(String key)
The name of a DHCP option.void
setValues(Collection<String> values)
One or more values for the DHCP option.String
toString()
Returns a string representation of this object; useful for testing and debugging.DhcpConfiguration
withKey(String key)
The name of a DHCP option.DhcpConfiguration
withValues(String... values)
One or more values for the DHCP option.DhcpConfiguration
withValues(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DhcpConfiguration clone()
-
-