public class AssociateDhcpOptionsRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<AssociateDhcpOptionsRequest>
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 .
Constructor and Description |
---|
AssociateDhcpOptionsRequest()
Default constructor for a new AssociateDhcpOptionsRequest object.
|
AssociateDhcpOptionsRequest(java.lang.String vpcId)
Constructs a new AssociateDhcpOptionsRequest object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public AssociateDhcpOptionsRequest()
public AssociateDhcpOptionsRequest(java.lang.String vpcId)
vpcId
- The ID of the VPC.public java.lang.String getDhcpOptionsId()
default
to associate
no DHCP options with the VPC.default
to associate
no DHCP options with the VPC.public void setDhcpOptionsId(java.lang.String dhcpOptionsId)
default
to associate
no DHCP options with the VPC.dhcpOptionsId
- The ID of the DHCP options set, or default
to associate
no DHCP options with the VPC.public AssociateDhcpOptionsRequest withDhcpOptionsId(java.lang.String dhcpOptionsId)
default
to associate
no DHCP options with the VPC.
Returns a reference to this object so that method calls can be chained together.
dhcpOptionsId
- The ID of the DHCP options set, or default
to associate
no DHCP options with the VPC.public java.lang.String getVpcId()
public void setVpcId(java.lang.String vpcId)
vpcId
- The ID of the VPC.public AssociateDhcpOptionsRequest withVpcId(java.lang.String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- The ID of the VPC.public Request<AssociateDhcpOptionsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AssociateDhcpOptionsRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.