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:
DryRunSupportedRequest<AssociateDhcpOptionsRequest>, java.io.Serializable

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

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 no DHCP options with the VPC.

After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. You don't need to restart or relaunch the instances. They automatically pick up the changes within a few hours, depending on how frequently the instance renews its DHCP lease. You can explicitly renew the lease using the operating system on the instance.

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

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

Constructor Summary
AssociateDhcpOptionsRequest()
          Default constructor for a new AssociateDhcpOptionsRequest object.
AssociateDhcpOptionsRequest(java.lang.String vpcId)
          Constructs a new AssociateDhcpOptionsRequest object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDhcpOptionsId()
          The ID of the DHCP options set, or default to associate no DHCP options with the VPC.
 Request<AssociateDhcpOptionsRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.lang.String getVpcId()
          The ID of the VPC.
 int hashCode()
           
 void setDhcpOptionsId(java.lang.String dhcpOptionsId)
          The ID of the DHCP options set, or default to associate no DHCP options with the VPC.
 void setVpcId(java.lang.String vpcId)
          The ID of the VPC.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AssociateDhcpOptionsRequest withDhcpOptionsId(java.lang.String dhcpOptionsId)
          The ID of the DHCP options set, or default to associate no DHCP options with the VPC.
 AssociateDhcpOptionsRequest withVpcId(java.lang.String vpcId)
          The ID of the VPC.
 
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

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(java.lang.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.
Method Detail

getDhcpOptionsId

public java.lang.String getDhcpOptionsId()
The ID of the DHCP options set, or default to associate no DHCP options with the VPC.

Returns:
The ID of the DHCP options set, or default to associate no DHCP options with the VPC.

setDhcpOptionsId

public void setDhcpOptionsId(java.lang.String dhcpOptionsId)
The ID of the DHCP options set, or default to associate no DHCP options with the VPC.

Parameters:
dhcpOptionsId - The ID of the DHCP options set, or default to associate no DHCP options with the VPC.

withDhcpOptionsId

public AssociateDhcpOptionsRequest withDhcpOptionsId(java.lang.String dhcpOptionsId)
The ID of the DHCP options set, or default to associate no 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 set, or default to associate no DHCP options with the VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getVpcId

public java.lang.String getVpcId()
The ID of the VPC.

Returns:
The ID of the VPC.

setVpcId

public void setVpcId(java.lang.String vpcId)
The ID of the VPC.

Parameters:
vpcId - The ID of the VPC.

withVpcId

public AssociateDhcpOptionsRequest withVpcId(java.lang.String vpcId)
The ID of the VPC.

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

Parameters:
vpcId - The ID of the VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<AssociateDhcpOptionsRequest> 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<AssociateDhcpOptionsRequest>

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.