public class DetachVpnGatewayRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DetachVpnGatewayRequest>
DetachVpnGateway operation
.
Detaches a VPN 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 VPN gateway has been completely detached from a VPC by describing the VPN gateway (any attachments to the VPN 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 VPN gateway.
Constructor and Description |
---|
DetachVpnGatewayRequest()
Default constructor for a new DetachVpnGatewayRequest object.
|
DetachVpnGatewayRequest(String vpnGatewayId,
String vpcId)
Constructs a new DetachVpnGatewayRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Request<DetachVpnGatewayRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getVpcId()
The ID of the VPC to detach the VPN gateway from.
|
String |
getVpnGatewayId()
The ID of the VPN gateway to detach from the VPC.
|
int |
hashCode() |
void |
setVpcId(String vpcId)
The ID of the VPC to detach the VPN gateway from.
|
void |
setVpnGatewayId(String vpnGatewayId)
The ID of the VPN gateway to detach from the VPC.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DetachVpnGatewayRequest |
withVpcId(String vpcId)
The ID of the VPC to detach the VPN gateway from.
|
DetachVpnGatewayRequest |
withVpnGatewayId(String vpnGatewayId)
The ID of the VPN gateway to detach from the VPC.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public DetachVpnGatewayRequest()
public DetachVpnGatewayRequest(String vpnGatewayId, String vpcId)
vpnGatewayId
- The ID of the VPN gateway to detach from the VPC.vpcId
- The ID of the VPC to detach the VPN gateway from.public String getVpnGatewayId()
public void setVpnGatewayId(String vpnGatewayId)
vpnGatewayId
- The ID of the VPN gateway to detach from the VPC.public DetachVpnGatewayRequest withVpnGatewayId(String vpnGatewayId)
Returns a reference to this object so that method calls can be chained together.
vpnGatewayId
- The ID of the VPN gateway to detach from the VPC.public String getVpcId()
public void setVpcId(String vpcId)
vpcId
- The ID of the VPC to detach the VPN gateway from.public DetachVpnGatewayRequest withVpcId(String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- The ID of the VPC to detach the VPN gateway from.public Request<DetachVpnGatewayRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DetachVpnGatewayRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.