Class LocalGatewayRoute
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.LocalGatewayRoute
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<LocalGatewayRoute.Builder,LocalGatewayRoute>
@Generated("software.amazon.awssdk:codegen") public final class LocalGatewayRoute extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LocalGatewayRoute.Builder,LocalGatewayRoute>
Describes a route for a local gateway route table.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
LocalGatewayRoute.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LocalGatewayRoute.Builder
builder()
String
coipPoolId()
The ID of the customer-owned address pool.String
destinationCidrBlock()
The CIDR block used for destination matches.String
destinationPrefixListId()
The ID of the prefix list.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
localGatewayRouteTableArn()
The Amazon Resource Name (ARN) of the local gateway route table.String
localGatewayRouteTableId()
The ID of the local gateway route table.String
localGatewayVirtualInterfaceGroupId()
The ID of the virtual interface group.String
networkInterfaceId()
The ID of the network interface.String
ownerId()
The ID of the Amazon Web Services account that owns the local gateway route.List<SdkField<?>>
sdkFields()
static Class<? extends LocalGatewayRoute.Builder>
serializableBuilderClass()
LocalGatewayRouteState
state()
The state of the route.String
stateAsString()
The state of the route.String
subnetId()
The ID of the subnet.LocalGatewayRoute.Builder
toBuilder()
String
toString()
Returns a string representation of this object.LocalGatewayRouteType
type()
The route type.String
typeAsString()
The route type.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
destinationCidrBlock
public final String destinationCidrBlock()
The CIDR block used for destination matches.
- Returns:
- The CIDR block used for destination matches.
-
localGatewayVirtualInterfaceGroupId
public final String localGatewayVirtualInterfaceGroupId()
The ID of the virtual interface group.
- Returns:
- The ID of the virtual interface group.
-
type
public final LocalGatewayRouteType type()
The route type.
If the service returns an enum value that is not available in the current SDK version,
type
will returnLocalGatewayRouteType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- The route type.
- See Also:
LocalGatewayRouteType
-
typeAsString
public final String typeAsString()
The route type.
If the service returns an enum value that is not available in the current SDK version,
type
will returnLocalGatewayRouteType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromtypeAsString()
.- Returns:
- The route type.
- See Also:
LocalGatewayRouteType
-
state
public final LocalGatewayRouteState state()
The state of the route.
If the service returns an enum value that is not available in the current SDK version,
state
will returnLocalGatewayRouteState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstateAsString()
.- Returns:
- The state of the route.
- See Also:
LocalGatewayRouteState
-
stateAsString
public final 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 returnLocalGatewayRouteState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstateAsString()
.- Returns:
- The state of the route.
- See Also:
LocalGatewayRouteState
-
localGatewayRouteTableId
public final String localGatewayRouteTableId()
The ID of the local gateway route table.
- Returns:
- The ID of the local gateway route table.
-
localGatewayRouteTableArn
public final String localGatewayRouteTableArn()
The Amazon Resource Name (ARN) of the local gateway route table.
- Returns:
- The Amazon Resource Name (ARN) of the local gateway route table.
-
ownerId
public final String ownerId()
The ID of the Amazon Web Services account that owns the local gateway route.
- Returns:
- The ID of the Amazon Web Services account that owns the local gateway route.
-
subnetId
public final String subnetId()
The ID of the subnet.
- Returns:
- The ID of the subnet.
-
coipPoolId
public final String coipPoolId()
The ID of the customer-owned address pool.
- Returns:
- The ID of the customer-owned address pool.
-
networkInterfaceId
public final String networkInterfaceId()
The ID of the network interface.
- Returns:
- The ID of the network interface.
-
destinationPrefixListId
public final String destinationPrefixListId()
The ID of the prefix list.
- Returns:
- The ID of the prefix list.
-
toBuilder
public LocalGatewayRoute.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<LocalGatewayRoute.Builder,LocalGatewayRoute>
-
builder
public static LocalGatewayRoute.Builder builder()
-
serializableBuilderClass
public static Class<? extends LocalGatewayRoute.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-