Interface RouteData.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<RouteData.Builder,,RouteData> SdkBuilder<RouteData.Builder,,RouteData> SdkPojo
- Enclosing class:
RouteData
public static interface RouteData.Builder
extends SdkPojo, CopyableBuilder<RouteData.Builder,RouteData>
-
Method Summary
Modifier and TypeMethodDescriptionThe name of the service mesh that the route resides in.default RouteData.Buildermetadata(Consumer<ResourceMetadata.Builder> metadata) The associated metadata for the route.metadata(ResourceMetadata metadata) The associated metadata for the route.The name of the route.default RouteData.Builderspec(Consumer<RouteSpec.Builder> spec) The specifications of the route.The specifications of the route.default RouteData.Builderstatus(Consumer<RouteStatus.Builder> status) The status of the route.status(RouteStatus status) The status of the route.virtualRouterName(String virtualRouterName) The virtual router that the route is associated with.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
meshName
The name of the service mesh that the route resides in.
- Parameters:
meshName- The name of the service mesh that the route resides in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
The associated metadata for the route.
- Parameters:
metadata- The associated metadata for the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
The associated metadata for the route.
This is a convenience method that creates an instance of theResourceMetadata.Builderavoiding the need to create one manually viaResourceMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometadata(ResourceMetadata).- Parameters:
metadata- a consumer that will call methods onResourceMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
routeName
The name of the route.
- Parameters:
routeName- The name of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spec
The specifications of the route.
- Parameters:
spec- The specifications of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spec
The specifications of the route.
This is a convenience method that creates an instance of theRouteSpec.Builderavoiding the need to create one manually viaRouteSpec.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tospec(RouteSpec).- Parameters:
spec- a consumer that will call methods onRouteSpec.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the route.
- Parameters:
status- The status of the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The status of the route.
This is a convenience method that creates an instance of theRouteStatus.Builderavoiding the need to create one manually viaRouteStatus.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostatus(RouteStatus).- Parameters:
status- a consumer that will call methods onRouteStatus.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
virtualRouterName
The virtual router that the route is associated with.
- Parameters:
virtualRouterName- The virtual router that the route is associated with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-