Package com.amazonaws.services.ec2.model
Class CreateDhcpOptionsRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.ec2.model.CreateDhcpOptionsRequest
-
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<CreateDhcpOptionsRequest>
,Serializable
,Cloneable
public class CreateDhcpOptionsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateDhcpOptionsRequest>
Contains the parameters for CreateDhcpOptions.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description CreateDhcpOptionsRequest()
Default constructor for CreateDhcpOptionsRequest object.CreateDhcpOptionsRequest(List<DhcpConfiguration> dhcpConfigurations)
Constructs a new CreateDhcpOptionsRequest object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateDhcpOptionsRequest
clone()
Creates a shallow clone of this request.boolean
equals(Object obj)
List<DhcpConfiguration>
getDhcpConfigurations()
A DHCP configuration option.Request<CreateDhcpOptionsRequest>
getDryRunRequest()
This method is intended for internal use only.int
hashCode()
void
setDhcpConfigurations(Collection<DhcpConfiguration> dhcpConfigurations)
A DHCP configuration option.String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateDhcpOptionsRequest
withDhcpConfigurations(DhcpConfiguration... dhcpConfigurations)
A DHCP configuration option.CreateDhcpOptionsRequest
withDhcpConfigurations(Collection<DhcpConfiguration> dhcpConfigurations)
A DHCP configuration option.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
-
-
-
-
Constructor Detail
-
CreateDhcpOptionsRequest
public CreateDhcpOptionsRequest()
Default constructor for CreateDhcpOptionsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
CreateDhcpOptionsRequest
public CreateDhcpOptionsRequest(List<DhcpConfiguration> dhcpConfigurations)
Constructs a new CreateDhcpOptionsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
dhcpConfigurations
- A DHCP configuration option.
-
-
Method Detail
-
getDhcpConfigurations
public List<DhcpConfiguration> getDhcpConfigurations()
A DHCP configuration option.
- Returns:
- A DHCP configuration option.
-
setDhcpConfigurations
public void setDhcpConfigurations(Collection<DhcpConfiguration> dhcpConfigurations)
A DHCP configuration option.
- Parameters:
dhcpConfigurations
- A DHCP configuration option.
-
withDhcpConfigurations
public CreateDhcpOptionsRequest withDhcpConfigurations(DhcpConfiguration... dhcpConfigurations)
A DHCP configuration option.
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
- A DHCP configuration option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDhcpConfigurations
public CreateDhcpOptionsRequest withDhcpConfigurations(Collection<DhcpConfiguration> dhcpConfigurations)
A DHCP configuration option.
- Parameters:
dhcpConfigurations
- A DHCP configuration option.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDryRunRequest
public Request<CreateDhcpOptionsRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<CreateDhcpOptionsRequest>
-
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 CreateDhcpOptionsRequest clone()
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
Object.clone()
-
-