Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class ReplaceRouteRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.ReplaceRouteRequest
All Implemented Interfaces:
Serializable

public class ReplaceRouteRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the ReplaceRoute operation.

Replaces an existing route within a route table in a VPC. For more information about route tables, go to Route Tables in the Amazon Virtual Private Cloud User Guide.

See Also:
AmazonEC2.replaceRoute(ReplaceRouteRequest), Serialized Form

Constructor Summary
ReplaceRouteRequest()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDestinationCidrBlock()
          The CIDR address block used for the destination match.
 String getGatewayId()
          The ID of a VPN or Internet gateway attached to your VPC.
 String getInstanceId()
          The ID of a NAT instance in your VPC.
 String getNetworkInterfaceId()
          Returns the value of the NetworkInterfaceId property for this object.
 String getRouteTableId()
          The ID of the route table where the route will be replaced.
 int hashCode()
           
 void setDestinationCidrBlock(String destinationCidrBlock)
          The CIDR address block used for the destination match.
 void setGatewayId(String gatewayId)
          The ID of a VPN or Internet gateway attached to your VPC.
 void setInstanceId(String instanceId)
          The ID of a NAT instance in your VPC.
 void setNetworkInterfaceId(String networkInterfaceId)
          Sets the value of the NetworkInterfaceId property for this object.
 void setRouteTableId(String routeTableId)
          The ID of the route table where the route will be replaced.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 ReplaceRouteRequest withDestinationCidrBlock(String destinationCidrBlock)
          The CIDR address block used for the destination match.
 ReplaceRouteRequest withGatewayId(String gatewayId)
          The ID of a VPN or Internet gateway attached to your VPC.
 ReplaceRouteRequest withInstanceId(String instanceId)
          The ID of a NAT instance in your VPC.
 ReplaceRouteRequest withNetworkInterfaceId(String networkInterfaceId)
          Sets the value of the NetworkInterfaceId property for this object.
 ReplaceRouteRequest withRouteTableId(String routeTableId)
          The ID of the route table where the route will be replaced.
 
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

ReplaceRouteRequest

public ReplaceRouteRequest()
Method Detail

getRouteTableId

public String getRouteTableId()
The ID of the route table where the route will be replaced.

Returns:
The ID of the route table where the route will be replaced.

setRouteTableId

public void setRouteTableId(String routeTableId)
The ID of the route table where the route will be replaced.

Parameters:
routeTableId - The ID of the route table where the route will be replaced.

withRouteTableId

public ReplaceRouteRequest withRouteTableId(String routeTableId)
The ID of the route table where the route will be replaced.

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

Parameters:
routeTableId - The ID of the route table where the route will be replaced.
Returns:
A reference to this updated object so that method calls can be chained together.

getDestinationCidrBlock

public String getDestinationCidrBlock()
The CIDR address block used for the destination match. For example: 0.0.0.0/0. The value you provide must match the CIDR of an existing route in the table.

Returns:
The CIDR address block used for the destination match. For example: 0.0.0.0/0. The value you provide must match the CIDR of an existing route in the table.

setDestinationCidrBlock

public void setDestinationCidrBlock(String destinationCidrBlock)
The CIDR address block used for the destination match. For example: 0.0.0.0/0. The value you provide must match the CIDR of an existing route in the table.

Parameters:
destinationCidrBlock - The CIDR address block used for the destination match. For example: 0.0.0.0/0. The value you provide must match the CIDR of an existing route in the table.

withDestinationCidrBlock

public ReplaceRouteRequest withDestinationCidrBlock(String destinationCidrBlock)
The CIDR address block used for the destination match. For example: 0.0.0.0/0. The value you provide must match the CIDR of an existing route in the table.

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

Parameters:
destinationCidrBlock - The CIDR address block used for the destination match. For example: 0.0.0.0/0. The value you provide must match the CIDR of an existing route in the table.
Returns:
A reference to this updated object so that method calls can be chained together.

getGatewayId

public String getGatewayId()
The ID of a VPN or Internet gateway attached to your VPC.

Returns:
The ID of a VPN or Internet gateway attached to your VPC.

setGatewayId

public void setGatewayId(String gatewayId)
The ID of a VPN or Internet gateway attached to your VPC.

Parameters:
gatewayId - The ID of a VPN or Internet gateway attached to your VPC.

withGatewayId

public ReplaceRouteRequest withGatewayId(String gatewayId)
The ID of a VPN or Internet gateway attached to your VPC.

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

Parameters:
gatewayId - The ID of a VPN or Internet gateway attached to your VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceId

public String getInstanceId()
The ID of a NAT instance in your VPC.

Returns:
The ID of a NAT instance in your VPC.

setInstanceId

public void setInstanceId(String instanceId)
The ID of a NAT instance in your VPC.

Parameters:
instanceId - The ID of a NAT instance in your VPC.

withInstanceId

public ReplaceRouteRequest withInstanceId(String instanceId)
The ID of a NAT instance in your VPC.

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

Parameters:
instanceId - The ID of a NAT instance in your VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getNetworkInterfaceId

public String getNetworkInterfaceId()
Returns the value of the NetworkInterfaceId property for this object.

Returns:
The value of the NetworkInterfaceId property for this object.

setNetworkInterfaceId

public void setNetworkInterfaceId(String networkInterfaceId)
Sets the value of the NetworkInterfaceId property for this object.

Parameters:
networkInterfaceId - The new value for the NetworkInterfaceId property for this object.

withNetworkInterfaceId

public ReplaceRouteRequest withNetworkInterfaceId(String networkInterfaceId)
Sets the value of the NetworkInterfaceId property for this object.

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

Parameters:
networkInterfaceId - The new value for the NetworkInterfaceId property for this object.
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.