Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class AssociateDhcpOptionsRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.AssociateDhcpOptionsRequest
All Implemented Interfaces:
Serializable

public class AssociateDhcpOptionsRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the AssociateDhcpOptions operation.

Associates a set of DHCP options (that you've previously created) with the specified VPC. Or, associates the default DHCP options with the VPC. The default set consists of the standard EC2 host name, no domain name, no DNS server, no NTP server, and no NetBIOS server or node type. After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. For more information about the supported DHCP options and using them with Amazon VPC, go to Using DHCP Options in the Amazon Virtual Private Cloud Developer Guide.

See Also:
AmazonEC2.associateDhcpOptions(AssociateDhcpOptionsRequest), Serialized Form

Constructor Summary
AssociateDhcpOptionsRequest()
          Default constructor for a new AssociateDhcpOptionsRequest object.
AssociateDhcpOptionsRequest(String vpcId)
          Constructs a new AssociateDhcpOptionsRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getDhcpOptionsId()
          The ID of the DHCP options to associate with the VPC.
 String getVpcId()
          The ID of the VPC to associate the DHCP options with.
 int hashCode()
           
 void setDhcpOptionsId(String dhcpOptionsId)
          The ID of the DHCP options to associate with the VPC.
 void setVpcId(String vpcId)
          The ID of the VPC to associate the DHCP options with.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AssociateDhcpOptionsRequest withDhcpOptionsId(String dhcpOptionsId)
          The ID of the DHCP options to associate with the VPC.
 AssociateDhcpOptionsRequest withVpcId(String vpcId)
          The ID of the VPC to associate the DHCP options with.
 
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

AssociateDhcpOptionsRequest

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


AssociateDhcpOptionsRequest

public AssociateDhcpOptionsRequest(String vpcId)
Constructs a new AssociateDhcpOptionsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
vpcId - The ID of the VPC to associate the DHCP options with.
Method Detail

getDhcpOptionsId

public String getDhcpOptionsId()
The ID of the DHCP options to associate with the VPC. Specify "default" to associate the default DHCP options with the VPC.

Returns:
The ID of the DHCP options to associate with the VPC. Specify "default" to associate the default DHCP options with the VPC.

setDhcpOptionsId

public void setDhcpOptionsId(String dhcpOptionsId)
The ID of the DHCP options to associate with the VPC. Specify "default" to associate the default DHCP options with the VPC.

Parameters:
dhcpOptionsId - The ID of the DHCP options to associate with the VPC. Specify "default" to associate the default DHCP options with the VPC.

withDhcpOptionsId

public AssociateDhcpOptionsRequest withDhcpOptionsId(String dhcpOptionsId)
The ID of the DHCP options to associate with the VPC. Specify "default" to associate the default DHCP options with the VPC.

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

Parameters:
dhcpOptionsId - The ID of the DHCP options to associate with the VPC. Specify "default" to associate the default DHCP options with the VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getVpcId

public String getVpcId()
The ID of the VPC to associate the DHCP options with.

Returns:
The ID of the VPC to associate the DHCP options with.

setVpcId

public void setVpcId(String vpcId)
The ID of the VPC to associate the DHCP options with.

Parameters:
vpcId - The ID of the VPC to associate the DHCP options with.

withVpcId

public AssociateDhcpOptionsRequest withVpcId(String vpcId)
The ID of the VPC to associate the DHCP options with.

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

Parameters:
vpcId - The ID of the VPC to associate the DHCP options with.
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.