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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description RouteData.BuildermeshName(String meshName)The name of the service mesh that the route resides in.default RouteData.Buildermetadata(Consumer<ResourceMetadata.Builder> metadata)The associated metadata for the route.RouteData.Buildermetadata(ResourceMetadata metadata)The associated metadata for the route.RouteData.BuilderrouteName(String routeName)The name of the route.default RouteData.Builderspec(Consumer<RouteSpec.Builder> spec)The specifications of the route.RouteData.Builderspec(RouteSpec spec)The specifications of the route.default RouteData.Builderstatus(Consumer<RouteStatus.Builder> status)The status of the route.RouteData.Builderstatus(RouteStatus status)The status of the route.RouteData.BuildervirtualRouterName(String virtualRouterName)The virtual router that the route is associated with.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
meshName
RouteData.Builder meshName(String 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
RouteData.Builder metadata(ResourceMetadata 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
default RouteData.Builder metadata(Consumer<ResourceMetadata.Builder> 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:
metadata(ResourceMetadata)
-
routeName
RouteData.Builder routeName(String 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
RouteData.Builder spec(RouteSpec 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
default RouteData.Builder spec(Consumer<RouteSpec.Builder> 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:
spec(RouteSpec)
-
status
RouteData.Builder status(RouteStatus 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
default RouteData.Builder status(Consumer<RouteStatus.Builder> 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:
status(RouteStatus)
-
virtualRouterName
RouteData.Builder virtualRouterName(String 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.
-
-