Class RouteTable
- java.lang.Object
-
- com.amazonaws.services.ec2.model.RouteTable
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class RouteTable extends Object implements Serializable, Cloneable
Describes a route table.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RouteTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteTable
clone()
boolean
equals(Object obj)
List<RouteTableAssociation>
getAssociations()
The associations between the route table and one or more subnets.List<PropagatingVgw>
getPropagatingVgws()
Any virtual private gateway (VGW) propagating routes.List<Route>
getRoutes()
The routes in the route table.String
getRouteTableId()
The ID of the route table.List<Tag>
getTags()
Any tags assigned to the route table.String
getVpcId()
The ID of the VPC.int
hashCode()
void
setAssociations(Collection<RouteTableAssociation> associations)
The associations between the route table and one or more subnets.void
setPropagatingVgws(Collection<PropagatingVgw> propagatingVgws)
Any virtual private gateway (VGW) propagating routes.void
setRoutes(Collection<Route> routes)
The routes in the route table.void
setRouteTableId(String routeTableId)
The ID of the route table.void
setTags(Collection<Tag> tags)
Any tags assigned to the route table.void
setVpcId(String vpcId)
The ID of the VPC.String
toString()
Returns a string representation of this object; useful for testing and debugging.RouteTable
withAssociations(RouteTableAssociation... associations)
The associations between the route table and one or more subnets.RouteTable
withAssociations(Collection<RouteTableAssociation> associations)
The associations between the route table and one or more subnets.RouteTable
withPropagatingVgws(PropagatingVgw... propagatingVgws)
Any virtual private gateway (VGW) propagating routes.RouteTable
withPropagatingVgws(Collection<PropagatingVgw> propagatingVgws)
Any virtual private gateway (VGW) propagating routes.RouteTable
withRoutes(Route... routes)
The routes in the route table.RouteTable
withRoutes(Collection<Route> routes)
The routes in the route table.RouteTable
withRouteTableId(String routeTableId)
The ID of the route table.RouteTable
withTags(Tag... tags)
Any tags assigned to the route table.RouteTable
withTags(Collection<Tag> tags)
Any tags assigned to the route table.RouteTable
withVpcId(String vpcId)
The ID of the VPC.
-
-
-
Method Detail
-
setRouteTableId
public void setRouteTableId(String routeTableId)
The ID of the route table.
- Parameters:
routeTableId
- The ID of the route table.
-
getRouteTableId
public String getRouteTableId()
The ID of the route table.
- Returns:
- The ID of the route table.
-
withRouteTableId
public RouteTable withRouteTableId(String routeTableId)
The ID of the route table.
- Parameters:
routeTableId
- The ID of the route table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVpcId
public void setVpcId(String vpcId)
The ID of the VPC.
- Parameters:
vpcId
- The ID of the VPC.
-
getVpcId
public String getVpcId()
The ID of the VPC.
- Returns:
- The ID of the VPC.
-
withVpcId
public RouteTable withVpcId(String vpcId)
The ID of the VPC.
- Parameters:
vpcId
- The ID of the VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getRoutes
public List<Route> getRoutes()
The routes in the route table.
- Returns:
- The routes in the route table.
-
setRoutes
public void setRoutes(Collection<Route> routes)
The routes in the route table.
- Parameters:
routes
- The routes in the route table.
-
withRoutes
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)
orwithRoutes(java.util.Collection)
if you want to override the existing values.- Parameters:
routes
- The routes in the route table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRoutes
public RouteTable withRoutes(Collection<Route> routes)
The routes in the route table.
- Parameters:
routes
- The routes in the route table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getAssociations
public List<RouteTableAssociation> getAssociations()
The associations between the route table and one or more subnets.
- Returns:
- The associations between the route table and one or more subnets.
-
setAssociations
public void setAssociations(Collection<RouteTableAssociation> associations)
The associations between the route table and one or more subnets.
- Parameters:
associations
- The associations between the route table and one or more subnets.
-
withAssociations
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)
orwithAssociations(java.util.Collection)
if you want to override the existing values.- Parameters:
associations
- The associations between the route table and one or more subnets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAssociations
public RouteTable withAssociations(Collection<RouteTableAssociation> associations)
The associations between the route table and one or more subnets.
- Parameters:
associations
- The associations between the route table and one or more subnets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
public List<Tag> getTags()
Any tags assigned to the route table.
- Returns:
- Any tags assigned to the route table.
-
setTags
public void setTags(Collection<Tag> tags)
Any tags assigned to the route table.
- Parameters:
tags
- Any tags assigned to the route table.
-
withTags
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)
orwithTags(java.util.Collection)
if you want to override the existing values.- Parameters:
tags
- Any tags assigned to the route table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
public RouteTable withTags(Collection<Tag> tags)
Any tags assigned to the route table.
- Parameters:
tags
- Any tags assigned to the route table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getPropagatingVgws
public List<PropagatingVgw> getPropagatingVgws()
Any virtual private gateway (VGW) propagating routes.
- Returns:
- Any virtual private gateway (VGW) propagating routes.
-
setPropagatingVgws
public void setPropagatingVgws(Collection<PropagatingVgw> propagatingVgws)
Any virtual private gateway (VGW) propagating routes.
- Parameters:
propagatingVgws
- Any virtual private gateway (VGW) propagating routes.
-
withPropagatingVgws
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)
orwithPropagatingVgws(java.util.Collection)
if you want to override the existing values.- Parameters:
propagatingVgws
- Any virtual private gateway (VGW) propagating routes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withPropagatingVgws
public RouteTable withPropagatingVgws(Collection<PropagatingVgw> propagatingVgws)
Any virtual private gateway (VGW) propagating routes.
- Parameters:
propagatingVgws
- Any virtual private gateway (VGW) propagating routes.- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RouteTable clone()
-
-