@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TransitGatewayRoute extends Object implements Serializable, Cloneable
Describes a route for a transit gateway route table.
| Constructor and Description |
|---|
TransitGatewayRoute() |
| Modifier and Type | Method and Description |
|---|---|
TransitGatewayRoute |
clone() |
boolean |
equals(Object obj) |
String |
getDestinationCidrBlock()
The CIDR block used for destination matches.
|
String |
getPrefixListId()
The ID of the prefix list used for destination matches.
|
String |
getState()
The state of the route.
|
List<TransitGatewayRouteAttachment> |
getTransitGatewayAttachments()
The attachments.
|
String |
getType()
The route type.
|
int |
hashCode() |
void |
setDestinationCidrBlock(String destinationCidrBlock)
The CIDR block used for destination matches.
|
void |
setPrefixListId(String prefixListId)
The ID of the prefix list used for destination matches.
|
void |
setState(String state)
The state of the route.
|
void |
setTransitGatewayAttachments(Collection<TransitGatewayRouteAttachment> transitGatewayAttachments)
The attachments.
|
void |
setType(String type)
The route type.
|
String |
toString()
Returns a string representation of this object.
|
TransitGatewayRoute |
withDestinationCidrBlock(String destinationCidrBlock)
The CIDR block used for destination matches.
|
TransitGatewayRoute |
withPrefixListId(String prefixListId)
The ID of the prefix list used for destination matches.
|
TransitGatewayRoute |
withState(String state)
The state of the route.
|
TransitGatewayRoute |
withState(TransitGatewayRouteState state)
The state of the route.
|
TransitGatewayRoute |
withTransitGatewayAttachments(Collection<TransitGatewayRouteAttachment> transitGatewayAttachments)
The attachments.
|
TransitGatewayRoute |
withTransitGatewayAttachments(TransitGatewayRouteAttachment... transitGatewayAttachments)
The attachments.
|
TransitGatewayRoute |
withType(String type)
The route type.
|
TransitGatewayRoute |
withType(TransitGatewayRouteType type)
The route type.
|
public void setDestinationCidrBlock(String destinationCidrBlock)
The CIDR block used for destination matches.
destinationCidrBlock - The CIDR block used for destination matches.public String getDestinationCidrBlock()
The CIDR block used for destination matches.
public TransitGatewayRoute withDestinationCidrBlock(String destinationCidrBlock)
The CIDR block used for destination matches.
destinationCidrBlock - The CIDR block used for destination matches.public void setPrefixListId(String prefixListId)
The ID of the prefix list used for destination matches.
prefixListId - The ID of the prefix list used for destination matches.public String getPrefixListId()
The ID of the prefix list used for destination matches.
public TransitGatewayRoute withPrefixListId(String prefixListId)
The ID of the prefix list used for destination matches.
prefixListId - The ID of the prefix list used for destination matches.public List<TransitGatewayRouteAttachment> getTransitGatewayAttachments()
The attachments.
public void setTransitGatewayAttachments(Collection<TransitGatewayRouteAttachment> transitGatewayAttachments)
The attachments.
transitGatewayAttachments - The attachments.public TransitGatewayRoute withTransitGatewayAttachments(TransitGatewayRouteAttachment... transitGatewayAttachments)
The attachments.
NOTE: This method appends the values to the existing list (if any). Use
setTransitGatewayAttachments(java.util.Collection) or
withTransitGatewayAttachments(java.util.Collection) if you want to override the existing values.
transitGatewayAttachments - The attachments.public TransitGatewayRoute withTransitGatewayAttachments(Collection<TransitGatewayRouteAttachment> transitGatewayAttachments)
The attachments.
transitGatewayAttachments - The attachments.public void setType(String type)
The route type.
type - The route type.TransitGatewayRouteTypepublic String getType()
The route type.
TransitGatewayRouteTypepublic TransitGatewayRoute withType(String type)
The route type.
type - The route type.TransitGatewayRouteTypepublic TransitGatewayRoute withType(TransitGatewayRouteType type)
The route type.
type - The route type.TransitGatewayRouteTypepublic void setState(String state)
The state of the route.
state - The state of the route.TransitGatewayRouteStatepublic String getState()
The state of the route.
TransitGatewayRouteStatepublic TransitGatewayRoute withState(String state)
The state of the route.
state - The state of the route.TransitGatewayRouteStatepublic TransitGatewayRoute withState(TransitGatewayRouteState state)
The state of the route.
state - The state of the route.TransitGatewayRouteStatepublic String toString()
toString in class ObjectObject.toString()public TransitGatewayRoute clone()
Copyright © 2022. All rights reserved.