public class AttachVpnGatewayRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<AttachVpnGatewayRequest>
AttachVpnGateway operation
.
Attaches a virtual private gateway to a VPC. For more information, see Adding a Hardware Virtual Private Gateway to Your VPC in the Amazon Virtual Private Cloud User 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.
|
String |
getVpnGatewayId()
The ID of the virtual private gateway.
|
int |
hashCode() |
void |
setVpcId(String vpcId)
The ID of the VPC.
|
void |
setVpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttachVpnGatewayRequest |
withVpcId(String vpcId)
The ID of the VPC.
|
AttachVpnGatewayRequest |
withVpnGatewayId(String vpnGatewayId)
The ID of the virtual private gateway.
|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public AttachVpnGatewayRequest()
public AttachVpnGatewayRequest(String vpnGatewayId, String vpcId)
vpnGatewayId
- The ID of the virtual private gateway.vpcId
- The ID of the VPC.public String getVpnGatewayId()
public void setVpnGatewayId(String vpnGatewayId)
vpnGatewayId
- The ID of the virtual private gateway.public AttachVpnGatewayRequest withVpnGatewayId(String vpnGatewayId)
Returns a reference to this object so that method calls can be chained together.
vpnGatewayId
- The ID of the virtual private gateway.public String getVpcId()
public void setVpcId(String vpcId)
vpcId
- The ID of the VPC.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.public Request<AttachVpnGatewayRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AttachVpnGatewayRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.