|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.DetachVpnGatewayRequest
public class DetachVpnGatewayRequest
Container for the parameters to the 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.
AmazonEC2.detachVpnGateway(DetachVpnGatewayRequest)
,
Serialized FormConstructor Summary | |
---|---|
DetachVpnGatewayRequest()
Default constructor for a new DetachVpnGatewayRequest object. |
|
DetachVpnGatewayRequest(String vpnGatewayId,
String vpcId)
Constructs a new DetachVpnGatewayRequest object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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 String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |