@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 |
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 |
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 |
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 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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.