/* * Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ package com.amazonaws.services.ec2.model; import java.io.Serializable; import com.amazonaws.AmazonWebServiceRequest; import com.amazonaws.Request; import com.amazonaws.services.ec2.model.transform.DescribeRouteTablesRequestMarshaller; /** * Container for the parameters to the {@link com.amazonaws.services.ec2.AmazonEC2#describeRouteTables(DescribeRouteTablesRequest) DescribeRouteTables operation}. *
* Describes one or more of your route tables. *
** Each subnet in your VPC must be associated with a route table. If a * subnet is not explicitly associated with any route table, it is * implicitly associated with the main route table. This command does not * return the subnet ID for implicit associations. *
** For more information about route tables, see * Route Tables * in the Amazon Virtual Private Cloud User Guide . *
* * @see com.amazonaws.services.ec2.AmazonEC2#describeRouteTables(DescribeRouteTablesRequest) */ public class DescribeRouteTablesRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequestDefault: Describes all your route
* tables.
*/
private com.amazonaws.internal.ListWithAutoConstructFlag Default: Describes all your route
* tables.
*
* @return One or more route table IDs. Default: Describes all your route
* tables.
*/
public java.util.List Default: Describes all your route
* tables.
*
* @param routeTableIds One or more route table IDs. Default: Describes all your route
* tables.
*/
public void setRouteTableIds(java.util.Collection Default: Describes all your route
* tables.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param routeTableIds One or more route table IDs. Default: Describes all your route
* tables.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeRouteTablesRequest withRouteTableIds(String... routeTableIds) {
if (getRouteTableIds() == null) setRouteTableIds(new java.util.ArrayList Default: Describes all your route
* tables.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param routeTableIds One or more route table IDs. Default: Describes all your route
* tables.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeRouteTablesRequest withRouteTableIds(java.util.Collection
* Returns a reference to this object so that method calls can be chained together.
*
* @param filters One or more filters.
* Returns a reference to this object so that method calls can be chained together.
*
* @param filters One or more filters.
*/
private com.amazonaws.internal.ListWithAutoConstructFlagassociation.route-table-association-id
- The ID of an
* association ID for the route table. association.route-table-id
- The ID of the route table
* involved in the association. association.subnet-id
- The ID of the subnet involved
* in the association. association.main
-
* Indicates whether the route table is the main route table for the VPC
* (true
| false
). route-table-id
- The ID of the route table. route.destination-cidr-block
- The CIDR range
* specified in a route in the table. route.destination-prefix-list-id
- The ID (prefix) of
* the AWS service specified in a route in the table. route.gateway-id
- The ID of a gateway specified in a
* route in the table. route.instance-id
- The
* ID of an instance specified in a route in the table. route.nat-gateway-id
- The ID of a NAT gateway. route.origin
- Describes how the route was
* created. CreateRouteTable
indicates that the route was
* automatically created when the route table was created;
* CreateRoute
indicates that the route was manually added
* to the route table; EnableVgwRoutePropagation
indicates
* that the route was propagated by route propagation. route.state
- The state of a route in the route table
* (active
| blackhole
). The blackhole state
* indicates that the route's target isn't available (for example, the
* specified gateway isn't attached to the VPC, the specified NAT
* instance has been terminated, and so on). route.vpc-peering-connection-id
- The ID of a VPC
* peering connection specified in a route in the table. tag
:key=value - The key/value
* combination of a tag assigned to the resource. tag-key
- The key of a tag assigned to the resource.
* This filter is independent of the tag-value
filter. For
* example, if you use both the filter "tag-key=Purpose" and the filter
* "tag-value=X", you get any resources assigned both the tag key Purpose
* (regardless of what the tag's value is), and the tag value X
* (regardless of what the tag's key is). If you want to list only
* resources where Purpose is X, see the
* tag
:key=value filter. tag-value
- The value of a tag assigned to the
* resource. This filter is independent of the tag-key
* filter. vpc-id
- The ID of the VPC for the
* route table.
*
* @return One or more filters. association.route-table-association-id
- The ID of an
* association ID for the route table. association.route-table-id
- The ID of the route table
* involved in the association. association.subnet-id
- The ID of the subnet involved
* in the association. association.main
-
* Indicates whether the route table is the main route table for the VPC
* (true
| false
). route-table-id
- The ID of the route table. route.destination-cidr-block
- The CIDR range
* specified in a route in the table. route.destination-prefix-list-id
- The ID (prefix) of
* the AWS service specified in a route in the table. route.gateway-id
- The ID of a gateway specified in a
* route in the table. route.instance-id
- The
* ID of an instance specified in a route in the table. route.nat-gateway-id
- The ID of a NAT gateway. route.origin
- Describes how the route was
* created. CreateRouteTable
indicates that the route was
* automatically created when the route table was created;
* CreateRoute
indicates that the route was manually added
* to the route table; EnableVgwRoutePropagation
indicates
* that the route was propagated by route propagation. route.state
- The state of a route in the route table
* (active
| blackhole
). The blackhole state
* indicates that the route's target isn't available (for example, the
* specified gateway isn't attached to the VPC, the specified NAT
* instance has been terminated, and so on). route.vpc-peering-connection-id
- The ID of a VPC
* peering connection specified in a route in the table. tag
:key=value - The key/value
* combination of a tag assigned to the resource. tag-key
- The key of a tag assigned to the resource.
* This filter is independent of the tag-value
filter. For
* example, if you use both the filter "tag-key=Purpose" and the filter
* "tag-value=X", you get any resources assigned both the tag key Purpose
* (regardless of what the tag's value is), and the tag value X
* (regardless of what the tag's key is). If you want to list only
* resources where Purpose is X, see the
* tag
:key=value filter. tag-value
- The value of a tag assigned to the
* resource. This filter is independent of the tag-key
* filter. vpc-id
- The ID of the VPC for the
* route table.
*/
public java.util.Listassociation.route-table-association-id
- The ID of an
* association ID for the route table. association.route-table-id
- The ID of the route table
* involved in the association. association.subnet-id
- The ID of the subnet involved
* in the association. association.main
-
* Indicates whether the route table is the main route table for the VPC
* (true
| false
). route-table-id
- The ID of the route table. route.destination-cidr-block
- The CIDR range
* specified in a route in the table. route.destination-prefix-list-id
- The ID (prefix) of
* the AWS service specified in a route in the table. route.gateway-id
- The ID of a gateway specified in a
* route in the table. route.instance-id
- The
* ID of an instance specified in a route in the table. route.nat-gateway-id
- The ID of a NAT gateway. route.origin
- Describes how the route was
* created. CreateRouteTable
indicates that the route was
* automatically created when the route table was created;
* CreateRoute
indicates that the route was manually added
* to the route table; EnableVgwRoutePropagation
indicates
* that the route was propagated by route propagation. route.state
- The state of a route in the route table
* (active
| blackhole
). The blackhole state
* indicates that the route's target isn't available (for example, the
* specified gateway isn't attached to the VPC, the specified NAT
* instance has been terminated, and so on). route.vpc-peering-connection-id
- The ID of a VPC
* peering connection specified in a route in the table. tag
:key=value - The key/value
* combination of a tag assigned to the resource. tag-key
- The key of a tag assigned to the resource.
* This filter is independent of the tag-value
filter. For
* example, if you use both the filter "tag-key=Purpose" and the filter
* "tag-value=X", you get any resources assigned both the tag key Purpose
* (regardless of what the tag's value is), and the tag value X
* (regardless of what the tag's key is). If you want to list only
* resources where Purpose is X, see the
* tag
:key=value filter. tag-value
- The value of a tag assigned to the
* resource. This filter is independent of the tag-key
* filter. vpc-id
- The ID of the VPC for the
* route table.
*
* @param filters One or more filters. association.route-table-association-id
- The ID of an
* association ID for the route table. association.route-table-id
- The ID of the route table
* involved in the association. association.subnet-id
- The ID of the subnet involved
* in the association. association.main
-
* Indicates whether the route table is the main route table for the VPC
* (true
| false
). route-table-id
- The ID of the route table. route.destination-cidr-block
- The CIDR range
* specified in a route in the table. route.destination-prefix-list-id
- The ID (prefix) of
* the AWS service specified in a route in the table. route.gateway-id
- The ID of a gateway specified in a
* route in the table. route.instance-id
- The
* ID of an instance specified in a route in the table. route.nat-gateway-id
- The ID of a NAT gateway. route.origin
- Describes how the route was
* created. CreateRouteTable
indicates that the route was
* automatically created when the route table was created;
* CreateRoute
indicates that the route was manually added
* to the route table; EnableVgwRoutePropagation
indicates
* that the route was propagated by route propagation. route.state
- The state of a route in the route table
* (active
| blackhole
). The blackhole state
* indicates that the route's target isn't available (for example, the
* specified gateway isn't attached to the VPC, the specified NAT
* instance has been terminated, and so on). route.vpc-peering-connection-id
- The ID of a VPC
* peering connection specified in a route in the table. tag
:key=value - The key/value
* combination of a tag assigned to the resource. tag-key
- The key of a tag assigned to the resource.
* This filter is independent of the tag-value
filter. For
* example, if you use both the filter "tag-key=Purpose" and the filter
* "tag-value=X", you get any resources assigned both the tag key Purpose
* (regardless of what the tag's value is), and the tag value X
* (regardless of what the tag's key is). If you want to list only
* resources where Purpose is X, see the
* tag
:key=value filter. tag-value
- The value of a tag assigned to the
* resource. This filter is independent of the tag-key
* filter. vpc-id
- The ID of the VPC for the
* route table.
*/
public void setFilters(java.util.Collectionassociation.route-table-association-id
- The ID of an
* association ID for the route table. association.route-table-id
- The ID of the route table
* involved in the association. association.subnet-id
- The ID of the subnet involved
* in the association. association.main
-
* Indicates whether the route table is the main route table for the VPC
* (true
| false
). route-table-id
- The ID of the route table. route.destination-cidr-block
- The CIDR range
* specified in a route in the table. route.destination-prefix-list-id
- The ID (prefix) of
* the AWS service specified in a route in the table. route.gateway-id
- The ID of a gateway specified in a
* route in the table. route.instance-id
- The
* ID of an instance specified in a route in the table. route.nat-gateway-id
- The ID of a NAT gateway. route.origin
- Describes how the route was
* created. CreateRouteTable
indicates that the route was
* automatically created when the route table was created;
* CreateRoute
indicates that the route was manually added
* to the route table; EnableVgwRoutePropagation
indicates
* that the route was propagated by route propagation. route.state
- The state of a route in the route table
* (active
| blackhole
). The blackhole state
* indicates that the route's target isn't available (for example, the
* specified gateway isn't attached to the VPC, the specified NAT
* instance has been terminated, and so on). route.vpc-peering-connection-id
- The ID of a VPC
* peering connection specified in a route in the table. tag
:key=value - The key/value
* combination of a tag assigned to the resource. tag-key
- The key of a tag assigned to the resource.
* This filter is independent of the tag-value
filter. For
* example, if you use both the filter "tag-key=Purpose" and the filter
* "tag-value=X", you get any resources assigned both the tag key Purpose
* (regardless of what the tag's value is), and the tag value X
* (regardless of what the tag's key is). If you want to list only
* resources where Purpose is X, see the
* tag
:key=value filter. tag-value
- The value of a tag assigned to the
* resource. This filter is independent of the tag-key
* filter. vpc-id
- The ID of the VPC for the
* route table.
* association.route-table-association-id
- The ID of an
* association ID for the route table. association.route-table-id
- The ID of the route table
* involved in the association. association.subnet-id
- The ID of the subnet involved
* in the association. association.main
-
* Indicates whether the route table is the main route table for the VPC
* (true
| false
). route-table-id
- The ID of the route table. route.destination-cidr-block
- The CIDR range
* specified in a route in the table. route.destination-prefix-list-id
- The ID (prefix) of
* the AWS service specified in a route in the table. route.gateway-id
- The ID of a gateway specified in a
* route in the table. route.instance-id
- The
* ID of an instance specified in a route in the table. route.nat-gateway-id
- The ID of a NAT gateway. route.origin
- Describes how the route was
* created. CreateRouteTable
indicates that the route was
* automatically created when the route table was created;
* CreateRoute
indicates that the route was manually added
* to the route table; EnableVgwRoutePropagation
indicates
* that the route was propagated by route propagation. route.state
- The state of a route in the route table
* (active
| blackhole
). The blackhole state
* indicates that the route's target isn't available (for example, the
* specified gateway isn't attached to the VPC, the specified NAT
* instance has been terminated, and so on). route.vpc-peering-connection-id
- The ID of a VPC
* peering connection specified in a route in the table. tag
:key=value - The key/value
* combination of a tag assigned to the resource. tag-key
- The key of a tag assigned to the resource.
* This filter is independent of the tag-value
filter. For
* example, if you use both the filter "tag-key=Purpose" and the filter
* "tag-value=X", you get any resources assigned both the tag key Purpose
* (regardless of what the tag's value is), and the tag value X
* (regardless of what the tag's key is). If you want to list only
* resources where Purpose is X, see the
* tag
:key=value filter. tag-value
- The value of a tag assigned to the
* resource. This filter is independent of the tag-key
* filter. vpc-id
- The ID of the VPC for the
* route table.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeRouteTablesRequest withFilters(Filter... filters) {
if (getFilters() == null) setFilters(new java.util.ArrayListassociation.route-table-association-id
- The ID of an
* association ID for the route table. association.route-table-id
- The ID of the route table
* involved in the association. association.subnet-id
- The ID of the subnet involved
* in the association. association.main
-
* Indicates whether the route table is the main route table for the VPC
* (true
| false
). route-table-id
- The ID of the route table. route.destination-cidr-block
- The CIDR range
* specified in a route in the table. route.destination-prefix-list-id
- The ID (prefix) of
* the AWS service specified in a route in the table. route.gateway-id
- The ID of a gateway specified in a
* route in the table. route.instance-id
- The
* ID of an instance specified in a route in the table. route.nat-gateway-id
- The ID of a NAT gateway. route.origin
- Describes how the route was
* created. CreateRouteTable
indicates that the route was
* automatically created when the route table was created;
* CreateRoute
indicates that the route was manually added
* to the route table; EnableVgwRoutePropagation
indicates
* that the route was propagated by route propagation. route.state
- The state of a route in the route table
* (active
| blackhole
). The blackhole state
* indicates that the route's target isn't available (for example, the
* specified gateway isn't attached to the VPC, the specified NAT
* instance has been terminated, and so on). route.vpc-peering-connection-id
- The ID of a VPC
* peering connection specified in a route in the table. tag
:key=value - The key/value
* combination of a tag assigned to the resource. tag-key
- The key of a tag assigned to the resource.
* This filter is independent of the tag-value
filter. For
* example, if you use both the filter "tag-key=Purpose" and the filter
* "tag-value=X", you get any resources assigned both the tag key Purpose
* (regardless of what the tag's value is), and the tag value X
* (regardless of what the tag's key is). If you want to list only
* resources where Purpose is X, see the
* tag
:key=value filter. tag-value
- The value of a tag assigned to the
* resource. This filter is independent of the tag-key
* filter. vpc-id
- The ID of the VPC for the
* route table.
* association.route-table-association-id
- The ID of an
* association ID for the route table. association.route-table-id
- The ID of the route table
* involved in the association. association.subnet-id
- The ID of the subnet involved
* in the association. association.main
-
* Indicates whether the route table is the main route table for the VPC
* (true
| false
). route-table-id
- The ID of the route table. route.destination-cidr-block
- The CIDR range
* specified in a route in the table. route.destination-prefix-list-id
- The ID (prefix) of
* the AWS service specified in a route in the table. route.gateway-id
- The ID of a gateway specified in a
* route in the table. route.instance-id
- The
* ID of an instance specified in a route in the table. route.nat-gateway-id
- The ID of a NAT gateway. route.origin
- Describes how the route was
* created. CreateRouteTable
indicates that the route was
* automatically created when the route table was created;
* CreateRoute
indicates that the route was manually added
* to the route table; EnableVgwRoutePropagation
indicates
* that the route was propagated by route propagation. route.state
- The state of a route in the route table
* (active
| blackhole
). The blackhole state
* indicates that the route's target isn't available (for example, the
* specified gateway isn't attached to the VPC, the specified NAT
* instance has been terminated, and so on). route.vpc-peering-connection-id
- The ID of a VPC
* peering connection specified in a route in the table. tag
:key=value - The key/value
* combination of a tag assigned to the resource. tag-key
- The key of a tag assigned to the resource.
* This filter is independent of the tag-value
filter. For
* example, if you use both the filter "tag-key=Purpose" and the filter
* "tag-value=X", you get any resources assigned both the tag key Purpose
* (regardless of what the tag's value is), and the tag value X
* (regardless of what the tag's key is). If you want to list only
* resources where Purpose is X, see the
* tag
:key=value filter. tag-value
- The value of a tag assigned to the
* resource. This filter is independent of the tag-key
* filter. vpc-id
- The ID of the VPC for the
* route table.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeRouteTablesRequest withFilters(java.util.Collectionassociation.route-table-association-id
- The ID of an
* association ID for the route table. association.route-table-id
- The ID of the route table
* involved in the association. association.subnet-id
- The ID of the subnet involved
* in the association. association.main
-
* Indicates whether the route table is the main route table for the VPC
* (true
| false
). route-table-id
- The ID of the route table. route.destination-cidr-block
- The CIDR range
* specified in a route in the table. route.destination-prefix-list-id
- The ID (prefix) of
* the AWS service specified in a route in the table. route.gateway-id
- The ID of a gateway specified in a
* route in the table. route.instance-id
- The
* ID of an instance specified in a route in the table. route.nat-gateway-id
- The ID of a NAT gateway. route.origin
- Describes how the route was
* created. CreateRouteTable
indicates that the route was
* automatically created when the route table was created;
* CreateRoute
indicates that the route was manually added
* to the route table; EnableVgwRoutePropagation
indicates
* that the route was propagated by route propagation. route.state
- The state of a route in the route table
* (active
| blackhole
). The blackhole state
* indicates that the route's target isn't available (for example, the
* specified gateway isn't attached to the VPC, the specified NAT
* instance has been terminated, and so on). route.vpc-peering-connection-id
- The ID of a VPC
* peering connection specified in a route in the table. tag
:key=value - The key/value
* combination of a tag assigned to the resource. tag-key
- The key of a tag assigned to the resource.
* This filter is independent of the tag-value
filter. For
* example, if you use both the filter "tag-key=Purpose" and the filter
* "tag-value=X", you get any resources assigned both the tag key Purpose
* (regardless of what the tag's value is), and the tag value X
* (regardless of what the tag's key is). If you want to list only
* resources where Purpose is X, see the
* tag
:key=value filter. tag-value
- The value of a tag assigned to the
* resource. This filter is independent of the tag-key
* filter. vpc-id
- The ID of the VPC for the
* route table.