Interface CreateRouteRequest.Builder
-
- All Superinterfaces:
AppMeshRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<CreateRouteRequest.Builder,CreateRouteRequest>,SdkBuilder<CreateRouteRequest.Builder,CreateRouteRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateRouteRequest
public static interface CreateRouteRequest.Builder extends AppMeshRequest.Builder, SdkPojo, CopyableBuilder<CreateRouteRequest.Builder,CreateRouteRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateRouteRequest.BuilderclientToken(String clientToken)Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.CreateRouteRequest.BuildermeshName(String meshName)The name of the service mesh to create the route in.CreateRouteRequest.BuildermeshOwner(String meshOwner)The Amazon Web Services IAM account ID of the service mesh owner.CreateRouteRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateRouteRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateRouteRequest.BuilderrouteName(String routeName)The name to use for the route.default CreateRouteRequest.Builderspec(Consumer<RouteSpec.Builder> spec)The route specification to apply.CreateRouteRequest.Builderspec(RouteSpec spec)The route specification to apply.CreateRouteRequest.Buildertags(Collection<TagRef> tags)Optional metadata that you can apply to the route to assist with categorization and organization.CreateRouteRequest.Buildertags(Consumer<TagRef.Builder>... tags)Optional metadata that you can apply to the route to assist with categorization and organization.CreateRouteRequest.Buildertags(TagRef... tags)Optional metadata that you can apply to the route to assist with categorization and organization.CreateRouteRequest.BuildervirtualRouterName(String virtualRouterName)The name of the virtual router in which to create the route.-
Methods inherited from interface software.amazon.awssdk.services.appmesh.model.AppMeshRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
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
-
clientToken
CreateRouteRequest.Builder clientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.
- Parameters:
clientToken- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. Up to 36 letters, numbers, hyphens, and underscores are allowed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
meshName
CreateRouteRequest.Builder meshName(String meshName)
The name of the service mesh to create the route in.
- Parameters:
meshName- The name of the service mesh to create the route in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
meshOwner
CreateRouteRequest.Builder meshOwner(String meshOwner)
The Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then the account that you specify must share the mesh with your account before you can create the resource in the service mesh. For more information about mesh sharing, see Working with shared meshes.
- Parameters:
meshOwner- The Amazon Web Services IAM account ID of the service mesh owner. If the account ID is not your own, then the account that you specify must share the mesh with your account before you can create the resource in the service mesh. For more information about mesh sharing, see Working with shared meshes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
routeName
CreateRouteRequest.Builder routeName(String routeName)
The name to use for the route.
- Parameters:
routeName- The name to use for the route.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spec
CreateRouteRequest.Builder spec(RouteSpec spec)
The route specification to apply.
- Parameters:
spec- The route specification to apply.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
spec
default CreateRouteRequest.Builder spec(Consumer<RouteSpec.Builder> spec)
The route specification to apply.
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)
-
tags
CreateRouteRequest.Builder tags(Collection<TagRef> tags)
Optional metadata that you can apply to the route to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
- Parameters:
tags- Optional metadata that you can apply to the route to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateRouteRequest.Builder tags(TagRef... tags)
Optional metadata that you can apply to the route to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
- Parameters:
tags- Optional metadata that you can apply to the route to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateRouteRequest.Builder tags(Consumer<TagRef.Builder>... tags)
Optional metadata that you can apply to the route to assist with categorization and organization. Each tag consists of a key and an optional value, both of which you define. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
This is a convenience method that creates an instance of theTagRef.Builderavoiding the need to create one manually viaTagRef.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTagRef.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
virtualRouterName
CreateRouteRequest.Builder virtualRouterName(String virtualRouterName)
The name of the virtual router in which to create the route. If the virtual router is in a shared mesh, then you must be the owner of the virtual router resource.
- Parameters:
virtualRouterName- The name of the virtual router in which to create the route. If the virtual router is in a shared mesh, then you must be the owner of the virtual router resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateRouteRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateRouteRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-