Interface UpdateEndpointWeightsAndCapacitiesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateEndpointWeightsAndCapacitiesRequest.Builder,
,UpdateEndpointWeightsAndCapacitiesRequest> SageMakerRequest.Builder
,SdkBuilder<UpdateEndpointWeightsAndCapacitiesRequest.Builder,
,UpdateEndpointWeightsAndCapacitiesRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateEndpointWeightsAndCapacitiesRequest
public static interface UpdateEndpointWeightsAndCapacitiesRequest.Builder
extends SageMakerRequest.Builder, SdkPojo, CopyableBuilder<UpdateEndpointWeightsAndCapacitiesRequest.Builder,UpdateEndpointWeightsAndCapacitiesRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondesiredWeightsAndCapacities
(Collection<DesiredWeightAndCapacity> desiredWeightsAndCapacities) An object that provides new capacity and weight values for a variant.desiredWeightsAndCapacities
(Consumer<DesiredWeightAndCapacity.Builder>... desiredWeightsAndCapacities) An object that provides new capacity and weight values for a variant.desiredWeightsAndCapacities
(DesiredWeightAndCapacity... desiredWeightsAndCapacities) An object that provides new capacity and weight values for a variant.endpointName
(String endpointName) The name of an existing SageMaker endpoint.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.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.services.sagemaker.model.SageMakerRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
endpointName
The name of an existing SageMaker endpoint.
- Parameters:
endpointName
- The name of an existing SageMaker endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
desiredWeightsAndCapacities
UpdateEndpointWeightsAndCapacitiesRequest.Builder desiredWeightsAndCapacities(Collection<DesiredWeightAndCapacity> desiredWeightsAndCapacities) An object that provides new capacity and weight values for a variant.
- Parameters:
desiredWeightsAndCapacities
- An object that provides new capacity and weight values for a variant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
desiredWeightsAndCapacities
UpdateEndpointWeightsAndCapacitiesRequest.Builder desiredWeightsAndCapacities(DesiredWeightAndCapacity... desiredWeightsAndCapacities) An object that provides new capacity and weight values for a variant.
- Parameters:
desiredWeightsAndCapacities
- An object that provides new capacity and weight values for a variant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
desiredWeightsAndCapacities
UpdateEndpointWeightsAndCapacitiesRequest.Builder desiredWeightsAndCapacities(Consumer<DesiredWeightAndCapacity.Builder>... desiredWeightsAndCapacities) An object that provides new capacity and weight values for a variant.
This is a convenience method that creates an instance of theDesiredWeightAndCapacity.Builder
avoiding the need to create one manually viaDesiredWeightAndCapacity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todesiredWeightsAndCapacities(List<DesiredWeightAndCapacity>)
.- Parameters:
desiredWeightsAndCapacities
- a consumer that will call methods onDesiredWeightAndCapacity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateEndpointWeightsAndCapacitiesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateEndpointWeightsAndCapacitiesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-