com.amazonaws.services.ec2.model
Class DetachInternetGatewayRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.DetachInternetGatewayRequest

public class DetachInternetGatewayRequest
extends AmazonWebServiceRequest

Container for the parameters to the DetachInternetGateway operation.

Detaches an Internet gateway from a VPC, disabling connectivity between the Internet and the VPC. The VPC must not contain any running instances with elastic IP addresses. For more information about your VPC and Internet gateway, go to Amazon Virtual Private Cloud User Guide.

For more information about Amazon Virtual Private Cloud and Internet gateways, go to the Amazon Virtual Private Cloud User Guide.

See Also:
AmazonEC2.detachInternetGateway(DetachInternetGatewayRequest)

Constructor Summary
DetachInternetGatewayRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getInternetGatewayId()
          The ID of the Internet gateway to detach.
 String getVpcId()
          The ID of the VPC.
 int hashCode()
           
 void setInternetGatewayId(String internetGatewayId)
          The ID of the Internet gateway to detach.
 void setVpcId(String vpcId)
          The ID of the VPC.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DetachInternetGatewayRequest withInternetGatewayId(String internetGatewayId)
          The ID of the Internet gateway to detach.
 DetachInternetGatewayRequest withVpcId(String vpcId)
          The ID of 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

DetachInternetGatewayRequest

public DetachInternetGatewayRequest()
Method Detail

getInternetGatewayId

public String getInternetGatewayId()
The ID of the Internet gateway to detach.

Returns:
The ID of the Internet gateway to detach.

setInternetGatewayId

public void setInternetGatewayId(String internetGatewayId)
The ID of the Internet gateway to detach.

Parameters:
internetGatewayId - The ID of the Internet gateway to detach.

withInternetGatewayId

public DetachInternetGatewayRequest withInternetGatewayId(String internetGatewayId)
The ID of the Internet gateway to detach.

Returns a reference to this object so that method calls can be chained together.

Parameters:
internetGatewayId - The ID of the Internet gateway to detach.
Returns:
A reference to this updated object so that method calls can be chained together.

getVpcId

public String getVpcId()
The ID of the VPC.

Returns:
The ID of the VPC.

setVpcId

public void setVpcId(String vpcId)
The ID of the VPC.

Parameters:
vpcId - The ID of the VPC.

withVpcId

public DetachInternetGatewayRequest withVpcId(String vpcId)
The ID of the VPC.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vpcId - The ID of the VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.