@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RouteTableAssociation extends Object implements Serializable, Cloneable
Describes an association between a route table and a subnet or gateway.
Constructor and Description |
---|
RouteTableAssociation() |
Modifier and Type | Method and Description |
---|---|
RouteTableAssociation |
clone() |
boolean |
equals(Object obj) |
RouteTableAssociationState |
getAssociationState()
The state of the association.
|
String |
getGatewayId()
The ID of the internet gateway or virtual private gateway.
|
Boolean |
getMain()
Indicates whether this is the main route table.
|
String |
getRouteTableAssociationId()
The ID of the association.
|
String |
getRouteTableId()
The ID of the route table.
|
String |
getSubnetId()
The ID of the subnet.
|
int |
hashCode() |
Boolean |
isMain()
Indicates whether this is the main route table.
|
void |
setAssociationState(RouteTableAssociationState associationState)
The state of the association.
|
void |
setGatewayId(String gatewayId)
The ID of the internet gateway or virtual private gateway.
|
void |
setMain(Boolean main)
Indicates whether this is the main route table.
|
void |
setRouteTableAssociationId(String routeTableAssociationId)
The ID of the association.
|
void |
setRouteTableId(String routeTableId)
The ID of the route table.
|
void |
setSubnetId(String subnetId)
The ID of the subnet.
|
String |
toString()
Returns a string representation of this object.
|
RouteTableAssociation |
withAssociationState(RouteTableAssociationState associationState)
The state of the association.
|
RouteTableAssociation |
withGatewayId(String gatewayId)
The ID of the internet gateway or virtual private gateway.
|
RouteTableAssociation |
withMain(Boolean main)
Indicates whether this is the main route table.
|
RouteTableAssociation |
withRouteTableAssociationId(String routeTableAssociationId)
The ID of the association.
|
RouteTableAssociation |
withRouteTableId(String routeTableId)
The ID of the route table.
|
RouteTableAssociation |
withSubnetId(String subnetId)
The ID of the subnet.
|
public void setMain(Boolean main)
Indicates whether this is the main route table.
main
- Indicates whether this is the main route table.public Boolean getMain()
Indicates whether this is the main route table.
public RouteTableAssociation withMain(Boolean main)
Indicates whether this is the main route table.
main
- Indicates whether this is the main route table.public Boolean isMain()
Indicates whether this is the main route table.
public void setRouteTableAssociationId(String routeTableAssociationId)
The ID of the association.
routeTableAssociationId
- The ID of the association.public String getRouteTableAssociationId()
The ID of the association.
public RouteTableAssociation withRouteTableAssociationId(String routeTableAssociationId)
The ID of the association.
routeTableAssociationId
- The ID of the association.public void setRouteTableId(String routeTableId)
The ID of the route table.
routeTableId
- The ID of the route table.public String getRouteTableId()
The ID of the route table.
public RouteTableAssociation withRouteTableId(String routeTableId)
The ID of the route table.
routeTableId
- The ID of the route table.public void setSubnetId(String subnetId)
The ID of the subnet. A subnet ID is not returned for an implicit association.
subnetId
- The ID of the subnet. A subnet ID is not returned for an implicit association.public String getSubnetId()
The ID of the subnet. A subnet ID is not returned for an implicit association.
public RouteTableAssociation withSubnetId(String subnetId)
The ID of the subnet. A subnet ID is not returned for an implicit association.
subnetId
- The ID of the subnet. A subnet ID is not returned for an implicit association.public void setGatewayId(String gatewayId)
The ID of the internet gateway or virtual private gateway.
gatewayId
- The ID of the internet gateway or virtual private gateway.public String getGatewayId()
The ID of the internet gateway or virtual private gateway.
public RouteTableAssociation withGatewayId(String gatewayId)
The ID of the internet gateway or virtual private gateway.
gatewayId
- The ID of the internet gateway or virtual private gateway.public void setAssociationState(RouteTableAssociationState associationState)
The state of the association.
associationState
- The state of the association.public RouteTableAssociationState getAssociationState()
The state of the association.
public RouteTableAssociation withAssociationState(RouteTableAssociationState associationState)
The state of the association.
associationState
- The state of the association.public String toString()
toString
in class Object
Object.toString()
public RouteTableAssociation clone()