@Generated(value="software.amazon.awssdk:codegen") public final class TransitGatewayRoute extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TransitGatewayRoute.Builder,TransitGatewayRoute>
Describes a route for a transit gateway route table.
Modifier and Type | Class and Description |
---|---|
static interface |
TransitGatewayRoute.Builder |
Modifier and Type | Method and Description |
---|---|
static TransitGatewayRoute.Builder |
builder() |
String |
destinationCidrBlock()
The CIDR block used for destination matches.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends TransitGatewayRoute.Builder> |
serializableBuilderClass() |
TransitGatewayRouteState |
state()
The state of the route.
|
String |
stateAsString()
The state of the route.
|
TransitGatewayRoute.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
List<TransitGatewayRouteAttachment> |
transitGatewayAttachments()
The attachments.
|
TransitGatewayRouteType |
type()
The route type.
|
String |
typeAsString()
The route type.
|
copy
public String destinationCidrBlock()
The CIDR block used for destination matches.
public List<TransitGatewayRouteAttachment> transitGatewayAttachments()
The attachments.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public TransitGatewayRouteType type()
The route type.
If the service returns an enum value that is not available in the current SDK version, type
will return
TransitGatewayRouteType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
TransitGatewayRouteType
public String typeAsString()
The route type.
If the service returns an enum value that is not available in the current SDK version, type
will return
TransitGatewayRouteType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
TransitGatewayRouteType
public TransitGatewayRouteState state()
The state of the route.
If the service returns an enum value that is not available in the current SDK version, state
will return
TransitGatewayRouteState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
TransitGatewayRouteState
public String stateAsString()
The state of the route.
If the service returns an enum value that is not available in the current SDK version, state
will return
TransitGatewayRouteState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
TransitGatewayRouteState
public TransitGatewayRoute.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<TransitGatewayRoute.Builder,TransitGatewayRoute>
public static TransitGatewayRoute.Builder builder()
public static Class<? extends TransitGatewayRoute.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.