Class VirtualEdgeNetworkGatewayRouteRequest
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<VirtualEdgeNetworkGatewayRouteRequest.Builder,VirtualEdgeNetworkGatewayRouteRequest>
Describes a static route to create in a virtual edge network gateway route table.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final booleanFor responses, this returns true if the service returned a value for the ReachabilityScopes property.final booleanFor responses, this returns true if the service returned a value for the Targets property.final StringThe IPv4 CIDR block used for the destination match.final StringThe IPv6 CIDR block used for the destination match.The reachability scopes of the route, which determine where the route is advertised.The reachability scopes of the route, which determine where the route is advertised.final IntegerThe route preference.static Class<? extends VirtualEdgeNetworkGatewayRouteRequest.Builder> targets()The targets of the route.The type of target for the route, which determines where the gateway forwards matching traffic.final StringThe type of target for the route, which determines where the gateway forwards matching traffic.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
ipv4DestinationCidrBlock
The IPv4 CIDR block used for the destination match. You must specify either
Ipv4DestinationCidrBlockorIpv6DestinationCidrBlock, but not both, and it must match the address family of the route table.- Returns:
- The IPv4 CIDR block used for the destination match. You must specify either
Ipv4DestinationCidrBlockorIpv6DestinationCidrBlock, but not both, and it must match the address family of the route table.
-
ipv6DestinationCidrBlock
The IPv6 CIDR block used for the destination match. You must specify either
Ipv4DestinationCidrBlockorIpv6DestinationCidrBlock, but not both, and it must match the address family of the route table.- Returns:
- The IPv6 CIDR block used for the destination match. You must specify either
Ipv4DestinationCidrBlockorIpv6DestinationCidrBlock, but not both, and it must match the address family of the route table.
-
targetType
The type of target for the route, which determines where the gateway forwards matching traffic. Valid values:
-
blackhole– Drops matching traffic. -
internet– Forwards matching traffic to the internet. -
subnet– Forwards matching traffic to a secondary subnet.
If the service returns an enum value that is not available in the current SDK version,
targetTypewill returnVirtualEdgeNetworkGatewayRouteTargetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtargetTypeAsString().- Returns:
- The type of target for the route, which determines where the gateway forwards matching traffic. Valid
values:
-
blackhole– Drops matching traffic. -
internet– Forwards matching traffic to the internet. -
subnet– Forwards matching traffic to a secondary subnet.
-
- See Also:
-
-
targetTypeAsString
The type of target for the route, which determines where the gateway forwards matching traffic. Valid values:
-
blackhole– Drops matching traffic. -
internet– Forwards matching traffic to the internet. -
subnet– Forwards matching traffic to a secondary subnet.
If the service returns an enum value that is not available in the current SDK version,
targetTypewill returnVirtualEdgeNetworkGatewayRouteTargetType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtargetTypeAsString().- Returns:
- The type of target for the route, which determines where the gateway forwards matching traffic. Valid
values:
-
blackhole– Drops matching traffic. -
internet– Forwards matching traffic to the internet. -
subnet– Forwards matching traffic to a secondary subnet.
-
- See Also:
-
-
hasTargets
public final boolean hasTargets()For responses, this returns true if the service returned a value for the Targets property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
targets
The targets of the route. For the target type
subnet, you must specify at least one target. For the target typesblackholeandinternet, you can't specify targets.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasTargets()method.- Returns:
- The targets of the route. For the target type
subnet, you must specify at least one target. For the target typesblackholeandinternet, you can't specify targets.
-
reachabilityScopes
The reachability scopes of the route, which determine where the route is advertised. You can specify reachability scopes only for routes with the target type
subnet. If you don't specify a reachability scope, the route isn't advertised.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasReachabilityScopes()method.- Returns:
- The reachability scopes of the route, which determine where the route is advertised. You can specify
reachability scopes only for routes with the target type
subnet. If you don't specify a reachability scope, the route isn't advertised.
-
hasReachabilityScopes
public final boolean hasReachabilityScopes()For responses, this returns true if the service returned a value for the ReachabilityScopes property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
reachabilityScopesAsStrings
The reachability scopes of the route, which determine where the route is advertised. You can specify reachability scopes only for routes with the target type
subnet. If you don't specify a reachability scope, the route isn't advertised.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasReachabilityScopes()method.- Returns:
- The reachability scopes of the route, which determine where the route is advertised. You can specify
reachability scopes only for routes with the target type
subnet. If you don't specify a reachability scope, the route isn't advertised.
-
routePreference
The route preference. The gateway uses the most specific route that matches a destination. When routes for the same destination conflict, the route with the lowest route preference takes precedence. Valid values are from 0 to 255. The default is 1.
- Returns:
- The route preference. The gateway uses the most specific route that matches a destination. When routes for the same destination conflict, the route with the lowest route preference takes precedence. Valid values are from 0 to 255. The default is 1.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<VirtualEdgeNetworkGatewayRouteRequest.Builder,VirtualEdgeNetworkGatewayRouteRequest> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
public static Class<? extends VirtualEdgeNetworkGatewayRouteRequest.Builder> serializableBuilderClass() -
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-