public class DetachVpnGatewayRequest extends AmazonWebServiceRequest implements java.io.Serializable
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.
| コンストラクタと説明 |
|---|
DetachVpnGatewayRequest()
Default constructor for a new DetachVpnGatewayRequest object.
|
DetachVpnGatewayRequest(java.lang.String vpnGatewayId,
java.lang.String vpcId)
Constructs a new DetachVpnGatewayRequest object.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getVpcId()
The ID of the VPC to detach the VPN gateway from.
|
java.lang.String |
getVpnGatewayId()
The ID of the VPN gateway to detach from the VPC.
|
int |
hashCode() |
void |
setVpcId(java.lang.String vpcId)
The ID of the VPC to detach the VPN gateway from.
|
void |
setVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the VPN gateway to detach from the VPC.
|
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 to detach the VPN gateway from.
|
DetachVpnGatewayRequest |
withVpnGatewayId(java.lang.String vpnGatewayId)
The ID of the VPN gateway to detach from the VPC.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic DetachVpnGatewayRequest()
public DetachVpnGatewayRequest(java.lang.String vpnGatewayId,
java.lang.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 java.lang.String getVpnGatewayId()
public void setVpnGatewayId(java.lang.String vpnGatewayId)
vpnGatewayId - The ID of the VPN gateway to detach from the VPC.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 VPN gateway to detach from the VPC.public java.lang.String getVpcId()
public void setVpcId(java.lang.String vpcId)
vpcId - The ID of the VPC to detach the VPN gateway from.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 to detach the VPN gateway from.public java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object