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 RouteTableclone()booleanequals(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.StringgetRouteTableId()The ID of the route table.List<Tag>getTags()Any tags assigned to the route table.StringgetVpcId()The ID of the VPC.inthashCode()voidsetAssociations(Collection<RouteTableAssociation> associations)The associations between the route table and one or more subnets.voidsetPropagatingVgws(Collection<PropagatingVgw> propagatingVgws)Any virtual private gateway (VGW) propagating routes.voidsetRoutes(Collection<Route> routes)The routes in the route table.voidsetRouteTableId(String routeTableId)The ID of the route table.voidsetTags(Collection<Tag> tags)Any tags assigned to the route table.voidsetVpcId(String vpcId)The ID of the VPC.StringtoString()Returns a string representation of this object; useful for testing and debugging.RouteTablewithAssociations(RouteTableAssociation... associations)The associations between the route table and one or more subnets.RouteTablewithAssociations(Collection<RouteTableAssociation> associations)The associations between the route table and one or more subnets.RouteTablewithPropagatingVgws(PropagatingVgw... propagatingVgws)Any virtual private gateway (VGW) propagating routes.RouteTablewithPropagatingVgws(Collection<PropagatingVgw> propagatingVgws)Any virtual private gateway (VGW) propagating routes.RouteTablewithRoutes(Route... routes)The routes in the route table.RouteTablewithRoutes(Collection<Route> routes)The routes in the route table.RouteTablewithRouteTableId(String routeTableId)The ID of the route table.RouteTablewithTags(Tag... tags)Any tags assigned to the route table.RouteTablewithTags(Collection<Tag> tags)Any tags assigned to the route table.RouteTablewithVpcId(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public RouteTable clone()
-
-