public class AttachVpnGatewayRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<AttachVpnGatewayRequest>
AttachVpnGateway operation
.
Attaches a VPN gateway to a VPC. This is the last step required to get your VPC fully connected to your data center before launching instances in it. For more information, go to Process for Using Amazon VPC in the Amazon Virtual Private Cloud Developer Guide.
Constructor and Description |
---|
AttachVpnGatewayRequest()
Default constructor for a new AttachVpnGatewayRequest object.
|
AttachVpnGatewayRequest(String vpnGatewayId,
String vpcId)
Constructs a new AttachVpnGatewayRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Request<AttachVpnGatewayRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getVpcId()
The ID of the VPC to attach to the VPN gateway.
|
String |
getVpnGatewayId()
The ID of the VPN gateway to attach to the VPC.
|
int |
hashCode() |
void |
setVpcId(String vpcId)
The ID of the VPC to attach to the VPN gateway.
|
void |
setVpnGatewayId(String vpnGatewayId)
The ID of the VPN gateway to attach to the VPC.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttachVpnGatewayRequest |
withVpcId(String vpcId)
The ID of the VPC to attach to the VPN gateway.
|
AttachVpnGatewayRequest |
withVpnGatewayId(String vpnGatewayId)
The ID of the VPN gateway to attach to the VPC.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public AttachVpnGatewayRequest()
public AttachVpnGatewayRequest(String vpnGatewayId, String vpcId)
vpnGatewayId
- The ID of the VPN gateway to attach to the VPC.vpcId
- The ID of the VPC to attach to the VPN gateway.public String getVpnGatewayId()
public void setVpnGatewayId(String vpnGatewayId)
vpnGatewayId
- The ID of the VPN gateway to attach to the VPC.public AttachVpnGatewayRequest 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 attach to the VPC.public String getVpcId()
public void setVpcId(String vpcId)
vpcId
- The ID of the VPC to attach to the VPN gateway.public AttachVpnGatewayRequest withVpcId(String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- The ID of the VPC to attach to the VPN gateway.public Request<AttachVpnGatewayRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AttachVpnGatewayRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.