public class AttachInternetGatewayRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<AttachInternetGatewayRequest>
AttachInternetGateway operation
.
Attaches an Internet gateway to a VPC, enabling connectivity between the Internet and the VPC. For more information about your VPC and Internet gateway, see the Amazon Virtual Private Cloud User Guide .
Constructor and Description |
---|
AttachInternetGatewayRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Request<AttachInternetGatewayRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.String |
getInternetGatewayId()
The ID of the Internet gateway.
|
java.lang.String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
void |
setInternetGatewayId(java.lang.String internetGatewayId)
The ID of the Internet gateway.
|
void |
setVpcId(java.lang.String vpcId)
The ID of the VPC.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AttachInternetGatewayRequest |
withInternetGatewayId(java.lang.String internetGatewayId)
The ID of the Internet gateway.
|
AttachInternetGatewayRequest |
withVpcId(java.lang.String vpcId)
The ID of the VPC.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getInternetGatewayId()
public void setInternetGatewayId(java.lang.String internetGatewayId)
internetGatewayId
- The ID of the Internet gateway.public AttachInternetGatewayRequest withInternetGatewayId(java.lang.String internetGatewayId)
Returns a reference to this object so that method calls can be chained together.
internetGatewayId
- The ID of the Internet gateway.public java.lang.String getVpcId()
public void setVpcId(java.lang.String vpcId)
vpcId
- The ID of the VPC.public AttachInternetGatewayRequest 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.public Request<AttachInternetGatewayRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<AttachInternetGatewayRequest>
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.