public class DeleteVpnConnectionRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<DeleteVpnConnectionRequest>
DeleteVpnConnection operation
.
Deletes the specified VPN connection.
If you're deleting the VPC and its associated components, we recommend that you detach the virtual private gateway from the VPC and delete the VPC before deleting the VPN connection. If you believe that the tunnel credentials for your VPN connection have been compromised, you can delete the VPN connection and create a new one that has new keys, without needing to delete the VPC or virtual private gateway. If you create a new VPN connection, you must reconfigure the customer gateway using the new configuration information returned with the new VPN connection ID.
Constructor and Description |
---|
DeleteVpnConnectionRequest()
Default constructor for a new DeleteVpnConnectionRequest object.
|
DeleteVpnConnectionRequest(java.lang.String vpnConnectionId)
Constructs a new DeleteVpnConnectionRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Request<DeleteVpnConnectionRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getVpnConnectionId()
The ID of the VPN connection.
|
int |
hashCode() |
void |
setVpnConnectionId(java.lang.String vpnConnectionId)
The ID of the VPN connection.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteVpnConnectionRequest |
withVpnConnectionId(java.lang.String vpnConnectionId)
The ID of the VPN connection.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DeleteVpnConnectionRequest()
public DeleteVpnConnectionRequest(java.lang.String vpnConnectionId)
vpnConnectionId
- The ID of the VPN connection.public java.lang.String getVpnConnectionId()
public void setVpnConnectionId(java.lang.String vpnConnectionId)
vpnConnectionId
- The ID of the VPN connection.public DeleteVpnConnectionRequest withVpnConnectionId(java.lang.String vpnConnectionId)
Returns a reference to this object so that method calls can be chained together.
vpnConnectionId
- The ID of the VPN connection.public Request<DeleteVpnConnectionRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DeleteVpnConnectionRequest>
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.