Class VpnStaticRoute
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.VpnStaticRoute
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<VpnStaticRoute.Builder,VpnStaticRoute>
@Generated("software.amazon.awssdk:codegen") public final class VpnStaticRoute extends Object implements SdkPojo, Serializable, ToCopyableBuilder<VpnStaticRoute.Builder,VpnStaticRoute>
Describes a static route for a VPN connection.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceVpnStaticRoute.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VpnStaticRoute.Builderbuilder()StringdestinationCidrBlock()The CIDR block associated with the local subnet of the customer data center.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends VpnStaticRoute.Builder>serializableBuilderClass()VpnStaticRouteSourcesource()Indicates how the routes were provided.StringsourceAsString()Indicates how the routes were provided.VpnStatestate()The current state of the static route.StringstateAsString()The current state of the static route.VpnStaticRoute.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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 associated with the local subnet of the customer data center.
- Returns:
- The CIDR block associated with the local subnet of the customer data center.
-
source
public final VpnStaticRouteSource source()
Indicates how the routes were provided.
If the service returns an enum value that is not available in the current SDK version,
sourcewill returnVpnStaticRouteSource.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsourceAsString().- Returns:
- Indicates how the routes were provided.
- See Also:
VpnStaticRouteSource
-
sourceAsString
public final String sourceAsString()
Indicates how the routes were provided.
If the service returns an enum value that is not available in the current SDK version,
sourcewill returnVpnStaticRouteSource.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromsourceAsString().- Returns:
- Indicates how the routes were provided.
- See Also:
VpnStaticRouteSource
-
state
public final VpnState state()
The current state of the static route.
If the service returns an enum value that is not available in the current SDK version,
statewill returnVpnState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the static route.
- See Also:
VpnState
-
stateAsString
public final String stateAsString()
The current state of the static route.
If the service returns an enum value that is not available in the current SDK version,
statewill returnVpnState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the static route.
- See Also:
VpnState
-
toBuilder
public VpnStaticRoute.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<VpnStaticRoute.Builder,VpnStaticRoute>
-
builder
public static VpnStaticRoute.Builder builder()
-
serializableBuilderClass
public static Class<? extends VpnStaticRoute.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-