@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 |
getTransitGatewayRouteTableAnnouncementId()
The ID of the transit gateway route table announcement.
|
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 |
setTransitGatewayRouteTableAnnouncementId(String transitGatewayRouteTableAnnouncementId)
The ID of the transit gateway route table announcement.
|
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 |
withTransitGatewayRouteTableAnnouncementId(String transitGatewayRouteTableAnnouncementId)
The ID of the transit gateway route table announcement.
|
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 void setTransitGatewayRouteTableAnnouncementId(String transitGatewayRouteTableAnnouncementId)
The ID of the transit gateway route table announcement.
transitGatewayRouteTableAnnouncementId
- The ID of the transit gateway route table announcement.public String getTransitGatewayRouteTableAnnouncementId()
The ID of the transit gateway route table announcement.
public TransitGatewayRoute withTransitGatewayRouteTableAnnouncementId(String transitGatewayRouteTableAnnouncementId)
The ID of the transit gateway route table announcement.
transitGatewayRouteTableAnnouncementId
- The ID of the transit gateway route table announcement.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.TransitGatewayRouteType
public String getType()
The route type.
TransitGatewayRouteType
public TransitGatewayRoute withType(String type)
The route type.
type
- The route type.TransitGatewayRouteType
public TransitGatewayRoute withType(TransitGatewayRouteType type)
The route type.
type
- The route type.TransitGatewayRouteType
public void setState(String state)
The state of the route.
state
- The state of the route.TransitGatewayRouteState
public String getState()
The state of the route.
TransitGatewayRouteState
public TransitGatewayRoute withState(String state)
The state of the route.
state
- The state of the route.TransitGatewayRouteState
public TransitGatewayRoute withState(TransitGatewayRouteState state)
The state of the route.
state
- The state of the route.TransitGatewayRouteState
public String toString()
toString
in class Object
Object.toString()
public TransitGatewayRoute clone()