Did this page help you?

   Yes   No   Tell us about it...

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:
Serializable

public class CreateDhcpOptionsRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the CreateDhcpOptions operation.

Creates a set of DHCP options that you can then associate with one or more VPCs, causing all existing and new instances that you launch in those VPCs to use the set of DHCP options. The following table lists the individual DHCP options you can specify. For more information about the options, go to http://www.ietf.org/rfc/rfc2132.txt

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

Constructor Summary
CreateDhcpOptionsRequest()
          Default constructor for a new CreateDhcpOptionsRequest object.
CreateDhcpOptionsRequest(List<DhcpConfiguration> dhcpConfigurations)
          Constructs a new CreateDhcpOptionsRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 List<DhcpConfiguration> getDhcpConfigurations()
          A set of one or more DHCP configurations.
 int hashCode()
           
 void setDhcpConfigurations(Collection<DhcpConfiguration> dhcpConfigurations)
          A set of one or more DHCP configurations.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CreateDhcpOptionsRequest withDhcpConfigurations(Collection<DhcpConfiguration> dhcpConfigurations)
          A set of one or more DHCP configurations.
 CreateDhcpOptionsRequest withDhcpConfigurations(DhcpConfiguration... dhcpConfigurations)
          A set of one or more DHCP configurations.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
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(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 set of one or more DHCP configurations.
Method Detail

getDhcpConfigurations

public List<DhcpConfiguration> getDhcpConfigurations()
A set of one or more DHCP configurations.

Returns:
A set of one or more DHCP configurations.

setDhcpConfigurations

public void setDhcpConfigurations(Collection<DhcpConfiguration> dhcpConfigurations)
A set of one or more DHCP configurations.

Parameters:
dhcpConfigurations - A set of one or more DHCP configurations.

withDhcpConfigurations

public CreateDhcpOptionsRequest withDhcpConfigurations(DhcpConfiguration... dhcpConfigurations)
A set of one or more DHCP configurations.

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

Parameters:
dhcpConfigurations - A set of one or more DHCP configurations.
Returns:
A reference to this updated object so that method calls can be chained together.

withDhcpConfigurations

public CreateDhcpOptionsRequest withDhcpConfigurations(Collection<DhcpConfiguration> dhcpConfigurations)
A set of one or more DHCP configurations.

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

Parameters:
dhcpConfigurations - A set of one or more DHCP configurations.
Returns:
A reference to this updated 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 class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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