com.amazonaws.services.ec2.model
Class CreateDhcpOptionsRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CreateDhcpOptionsRequest
All Implemented Interfaces:
DryRunSupportedRequest<CreateDhcpOptionsRequest>, java.io.Serializable

public class CreateDhcpOptionsRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<CreateDhcpOptionsRequest>

Container for the parameters to the CreateDhcpOptions operation.

Creates a set of DHCP options for your VPC. After creating the set, you must associate it with the VPC, causing all existing and new instances that you launch in the VPC to use this set of DHCP options. The following are the individual DHCP options you can specify. For more information about the options, see RFC 2132 .

For more information about DHCP options, see DHCP Options Sets in the Amazon Virtual Private Cloud User Guide .

See Also:
AmazonEC2.createDhcpOptions(CreateDhcpOptionsRequest), Serialized Form

Constructor Summary
CreateDhcpOptionsRequest()
          Default constructor for a new CreateDhcpOptionsRequest object.
CreateDhcpOptionsRequest(java.util.List<DhcpConfiguration> dhcpConfigurations)
          Constructs a new CreateDhcpOptionsRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List<DhcpConfiguration> getDhcpConfigurations()
          A DHCP configuration option.
 Request<CreateDhcpOptionsRequest> getDryRunRequest()
          This method is intended for internal use only.
 int hashCode()
           
 void setDhcpConfigurations(java.util.Collection<DhcpConfiguration> dhcpConfigurations)
          A DHCP configuration option.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateDhcpOptionsRequest withDhcpConfigurations(java.util.Collection<DhcpConfiguration> dhcpConfigurations)
          A DHCP configuration option.
 CreateDhcpOptionsRequest withDhcpConfigurations(DhcpConfiguration... dhcpConfigurations)
          A DHCP configuration option.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateDhcpOptionsRequest

public CreateDhcpOptionsRequest()
Default constructor for a new CreateDhcpOptionsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


CreateDhcpOptionsRequest

public CreateDhcpOptionsRequest(java.util.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 java.util.List<DhcpConfiguration> getDhcpConfigurations()
A DHCP configuration option.

Returns:
A DHCP configuration option.

setDhcpConfigurations

public void setDhcpConfigurations(java.util.Collection<DhcpConfiguration> dhcpConfigurations)
A DHCP configuration option.

Parameters:
dhcpConfigurations - A DHCP configuration option.

withDhcpConfigurations

public CreateDhcpOptionsRequest withDhcpConfigurations(DhcpConfiguration... dhcpConfigurations)
A DHCP configuration option.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dhcpConfigurations - A DHCP configuration option.
Returns:
A reference to this updated object so that method calls can be chained together.

withDhcpConfigurations

public CreateDhcpOptionsRequest withDhcpConfigurations(java.util.Collection<DhcpConfiguration> dhcpConfigurations)
A DHCP configuration option.

Returns a reference to this object so that method calls can be chained together.

Parameters:
dhcpConfigurations - A DHCP configuration option.
Returns:
A reference to this updated 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 interface DryRunSupportedRequest<CreateDhcpOptionsRequest>

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.