public class DhcpConfiguration
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a DHCP configuration option.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key
The name of a DHCP option.
|
private SdkInternalList<java.lang.String> |
values
One or more values for the DHCP option.
|
Constructor and Description |
---|
DhcpConfiguration() |
Modifier and Type | Method and Description |
---|---|
DhcpConfiguration |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
The name of a DHCP option.
|
java.util.List<java.lang.String> |
getValues()
One or more values for the DHCP option.
|
int |
hashCode() |
void |
setKey(java.lang.String key)
The name of a DHCP option.
|
void |
setValues(java.util.Collection<java.lang.String> values)
One or more values for the DHCP option.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DhcpConfiguration |
withKey(java.lang.String key)
The name of a DHCP option.
|
DhcpConfiguration |
withValues(java.util.Collection<java.lang.String> values)
One or more values for the DHCP option.
|
DhcpConfiguration |
withValues(java.lang.String... values)
One or more values for the DHCP option.
|
private java.lang.String key
The name of a DHCP option.
private SdkInternalList<java.lang.String> values
One or more values for the DHCP option.
public void setKey(java.lang.String key)
The name of a DHCP option.
key
- The name of a DHCP option.public java.lang.String getKey()
The name of a DHCP option.
public DhcpConfiguration withKey(java.lang.String key)
The name of a DHCP option.
key
- The name of a DHCP option.public java.util.List<java.lang.String> getValues()
One or more values for the DHCP option.
public void setValues(java.util.Collection<java.lang.String> values)
One or more values for the DHCP option.
values
- One or more values for the DHCP option.public DhcpConfiguration withValues(java.lang.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.
values
- One or more values for the DHCP option.public DhcpConfiguration withValues(java.util.Collection<java.lang.String> values)
One or more values for the DHCP option.
values
- One or more values for the DHCP option.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DhcpConfiguration clone()
clone
in class java.lang.Object