public class AssociateDhcpOptionsRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<AssociateDhcpOptionsRequest>
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.
Constructor and Description |
---|
AssociateDhcpOptionsRequest()
Default constructor for a new AssociateDhcpOptionsRequest object.
|
AssociateDhcpOptionsRequest(String vpcId)
Constructs a new AssociateDhcpOptionsRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDhcpOptionsId()
The ID of the DHCP options to associate with the VPC.
|
Request<AssociateDhcpOptionsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public AssociateDhcpOptionsRequest()
public AssociateDhcpOptionsRequest(String vpcId)
vpcId
- The ID of the VPC to associate the DHCP options with.public String getDhcpOptionsId()
public void setDhcpOptionsId(String dhcpOptionsId)
dhcpOptionsId
- The ID of the DHCP options to associate with the VPC. Specify
"default" to associate the default DHCP options with the VPC.public AssociateDhcpOptionsRequest withDhcpOptionsId(String dhcpOptionsId)
Returns a reference to this object so that method calls can be chained together.
dhcpOptionsId
- The ID of the DHCP options to associate with the VPC. Specify
"default" to associate the default DHCP options with the VPC.public String getVpcId()
public void setVpcId(String vpcId)
vpcId
- The ID of the VPC to associate the DHCP options with.public AssociateDhcpOptionsRequest withVpcId(String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- The ID of the VPC to associate the DHCP options with.public Request<AssociateDhcpOptionsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AssociateDhcpOptionsRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.