public class RouteTable
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a route table.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<RouteTableAssociation> |
associations
The associations between the route table and one or more subnets.
|
private SdkInternalList<PropagatingVgw> |
propagatingVgws
Any virtual private gateway (VGW) propagating routes.
|
private SdkInternalList<Route> |
routes
The routes in the route table.
|
private java.lang.String |
routeTableId
The ID of the route table.
|
private SdkInternalList<Tag> |
tags
Any tags assigned to the route table.
|
private java.lang.String |
vpcId
The ID of the VPC.
|
Constructor and Description |
---|
RouteTable() |
Modifier and Type | Method and Description |
---|---|
RouteTable |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<RouteTableAssociation> |
getAssociations()
The associations between the route table and one or more subnets.
|
java.util.List<PropagatingVgw> |
getPropagatingVgws()
Any virtual private gateway (VGW) propagating routes.
|
java.util.List<Route> |
getRoutes()
The routes in the route table.
|
java.lang.String |
getRouteTableId()
The ID of the route table.
|
java.util.List<Tag> |
getTags()
Any tags assigned to the route table.
|
java.lang.String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
void |
setAssociations(java.util.Collection<RouteTableAssociation> associations)
The associations between the route table and one or more subnets.
|
void |
setPropagatingVgws(java.util.Collection<PropagatingVgw> propagatingVgws)
Any virtual private gateway (VGW) propagating routes.
|
void |
setRoutes(java.util.Collection<Route> routes)
The routes in the route table.
|
void |
setRouteTableId(java.lang.String routeTableId)
The ID of the route table.
|
void |
setTags(java.util.Collection<Tag> tags)
Any tags assigned to the route table.
|
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.
|
RouteTable |
withAssociations(java.util.Collection<RouteTableAssociation> associations)
The associations between the route table and one or more subnets.
|
RouteTable |
withAssociations(RouteTableAssociation... associations)
The associations between the route table and one or more subnets.
|
RouteTable |
withPropagatingVgws(java.util.Collection<PropagatingVgw> propagatingVgws)
Any virtual private gateway (VGW) propagating routes.
|
RouteTable |
withPropagatingVgws(PropagatingVgw... propagatingVgws)
Any virtual private gateway (VGW) propagating routes.
|
RouteTable |
withRoutes(java.util.Collection<Route> routes)
The routes in the route table.
|
RouteTable |
withRoutes(Route... routes)
The routes in the route table.
|
RouteTable |
withRouteTableId(java.lang.String routeTableId)
The ID of the route table.
|
RouteTable |
withTags(java.util.Collection<Tag> tags)
Any tags assigned to the route table.
|
RouteTable |
withTags(Tag... tags)
Any tags assigned to the route table.
|
RouteTable |
withVpcId(java.lang.String vpcId)
The ID of the VPC.
|
private java.lang.String routeTableId
The ID of the route table.
private java.lang.String vpcId
The ID of the VPC.
private SdkInternalList<Route> routes
The routes in the route table.
private SdkInternalList<RouteTableAssociation> associations
The associations between the route table and one or more subnets.
private SdkInternalList<Tag> tags
Any tags assigned to the route table.
private SdkInternalList<PropagatingVgw> propagatingVgws
Any virtual private gateway (VGW) propagating routes.
public void setRouteTableId(java.lang.String routeTableId)
The ID of the route table.
routeTableId
- The ID of the route table.public java.lang.String getRouteTableId()
The ID of the route table.
public RouteTable withRouteTableId(java.lang.String routeTableId)
The ID of the route table.
routeTableId
- The ID of the route table.public void setVpcId(java.lang.String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public java.lang.String getVpcId()
The ID of the VPC.
public RouteTable withVpcId(java.lang.String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public java.util.List<Route> getRoutes()
The routes in the route table.
public void setRoutes(java.util.Collection<Route> routes)
The routes in the route table.
routes
- The routes in the route table.public RouteTable withRoutes(Route... routes)
The routes in the route table.
NOTE: This method appends the values to the existing list (if
any). Use setRoutes(java.util.Collection)
or
withRoutes(java.util.Collection)
if you want to override the
existing values.
routes
- The routes in the route table.public RouteTable withRoutes(java.util.Collection<Route> routes)
The routes in the route table.
routes
- The routes in the route table.public java.util.List<RouteTableAssociation> getAssociations()
The associations between the route table and one or more subnets.
public void setAssociations(java.util.Collection<RouteTableAssociation> associations)
The associations between the route table and one or more subnets.
associations
- The associations between the route table and one or more subnets.public RouteTable withAssociations(RouteTableAssociation... associations)
The associations between the route table and one or more subnets.
NOTE: This method appends the values to the existing list (if
any). Use setAssociations(java.util.Collection)
or
withAssociations(java.util.Collection)
if you want to override
the existing values.
associations
- The associations between the route table and one or more subnets.public RouteTable withAssociations(java.util.Collection<RouteTableAssociation> associations)
The associations between the route table and one or more subnets.
associations
- The associations between the route table and one or more subnets.public java.util.List<Tag> getTags()
Any tags assigned to the route table.
public void setTags(java.util.Collection<Tag> tags)
Any tags assigned to the route table.
tags
- Any tags assigned to the route table.public RouteTable withTags(Tag... tags)
Any tags assigned to the route table.
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection)
or
withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the route table.public RouteTable withTags(java.util.Collection<Tag> tags)
Any tags assigned to the route table.
tags
- Any tags assigned to the route table.public java.util.List<PropagatingVgw> getPropagatingVgws()
Any virtual private gateway (VGW) propagating routes.
public void setPropagatingVgws(java.util.Collection<PropagatingVgw> propagatingVgws)
Any virtual private gateway (VGW) propagating routes.
propagatingVgws
- Any virtual private gateway (VGW) propagating routes.public RouteTable withPropagatingVgws(PropagatingVgw... propagatingVgws)
Any virtual private gateway (VGW) propagating routes.
NOTE: This method appends the values to the existing list (if
any). Use setPropagatingVgws(java.util.Collection)
or
withPropagatingVgws(java.util.Collection)
if you want to
override the existing values.
propagatingVgws
- Any virtual private gateway (VGW) propagating routes.public RouteTable withPropagatingVgws(java.util.Collection<PropagatingVgw> propagatingVgws)
Any virtual private gateway (VGW) propagating routes.
propagatingVgws
- Any virtual private gateway (VGW) propagating routes.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public RouteTable clone()
clone
in class java.lang.Object