public class DetachVpnGatewayRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<DetachVpnGatewayRequest>
DetachVpnGateway operation
.
Detaches a virtual private gateway from a VPC. You do this if you're planning to turn off the VPC and not use it anymore. You can confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the virtual private gateway are also described).
You must wait for the attachment's state to switch to
detached
before you can delete the VPC or attach a
different VPC to the virtual private gateway.
Constructor and Description |
---|
DetachVpnGatewayRequest()
Default constructor for a new DetachVpnGatewayRequest object.
|
DetachVpnGatewayRequest(java.lang.String vpnGatewayId,
java.lang.String vpcId)
Constructs a new DetachVpnGatewayRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Request<DetachVpnGatewayRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getVpcId()
The ID of the VPC.
|
java.lang.String |
getVpnGatewayId()
The ID of the virtual private gateway.
|
int |
hashCode() |
void |
setVpcId(java.lang.String vpcId)
The ID of the VPC.
|
void |
setVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the virtual private gateway.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetachVpnGatewayRequest |
withVpcId(java.lang.String vpcId)
The ID of the VPC.
|
DetachVpnGatewayRequest |
withVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the virtual private gateway.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DetachVpnGatewayRequest()
public DetachVpnGatewayRequest(java.lang.String vpnGatewayId, java.lang.String vpcId)
vpnGatewayId
- The ID of the virtual private gateway.vpcId
- The ID of the VPC.public java.lang.String getVpnGatewayId()
public void setVpnGatewayId(java.lang.String vpnGatewayId)
vpnGatewayId
- The ID of the virtual private gateway.public DetachVpnGatewayRequest withVpnGatewayId(java.lang.String vpnGatewayId)
Returns a reference to this object so that method calls can be chained together.
vpnGatewayId
- The ID of the virtual private gateway.public java.lang.String getVpcId()
public void setVpcId(java.lang.String vpcId)
vpcId
- The ID of the VPC.public DetachVpnGatewayRequest 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<DetachVpnGatewayRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DetachVpnGatewayRequest>
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.