Interface GetScalingConfigurationRecommendationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<GetScalingConfigurationRecommendationRequest.Builder,
,GetScalingConfigurationRecommendationRequest> SageMakerRequest.Builder
,SdkBuilder<GetScalingConfigurationRecommendationRequest.Builder,
,GetScalingConfigurationRecommendationRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
GetScalingConfigurationRecommendationRequest
-
Method Summary
Modifier and TypeMethodDescriptionendpointName
(String endpointName) The name of an endpoint benchmarked during a previously completed inference recommendation job.inferenceRecommendationsJobName
(String inferenceRecommendationsJobName) The name of a previously completed Inference Recommender job.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.recommendationId
(String recommendationId) The recommendation ID of a previously completed inference recommendation.scalingPolicyObjective
(Consumer<ScalingPolicyObjective.Builder> scalingPolicyObjective) An object where you specify the anticipated traffic pattern for an endpoint.scalingPolicyObjective
(ScalingPolicyObjective scalingPolicyObjective) An object where you specify the anticipated traffic pattern for an endpoint.targetCpuUtilizationPerCore
(Integer targetCpuUtilizationPerCore) The percentage of how much utilization you want an instance to use before autoscaling.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
-
inferenceRecommendationsJobName
GetScalingConfigurationRecommendationRequest.Builder inferenceRecommendationsJobName(String inferenceRecommendationsJobName) The name of a previously completed Inference Recommender job.
- Parameters:
inferenceRecommendationsJobName
- The name of a previously completed Inference Recommender job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationId
The recommendation ID of a previously completed inference recommendation. This ID should come from one of the recommendations returned by the job specified in the
InferenceRecommendationsJobName
field.Specify either this field or the
EndpointName
field.- Parameters:
recommendationId
- The recommendation ID of a previously completed inference recommendation. This ID should come from one of the recommendations returned by the job specified in theInferenceRecommendationsJobName
field.Specify either this field or the
EndpointName
field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endpointName
The name of an endpoint benchmarked during a previously completed inference recommendation job. This name should come from one of the recommendations returned by the job specified in the
InferenceRecommendationsJobName
field.Specify either this field or the
RecommendationId
field.- Parameters:
endpointName
- The name of an endpoint benchmarked during a previously completed inference recommendation job. This name should come from one of the recommendations returned by the job specified in theInferenceRecommendationsJobName
field.Specify either this field or the
RecommendationId
field.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetCpuUtilizationPerCore
GetScalingConfigurationRecommendationRequest.Builder targetCpuUtilizationPerCore(Integer targetCpuUtilizationPerCore) The percentage of how much utilization you want an instance to use before autoscaling. The default value is 50%.
- Parameters:
targetCpuUtilizationPerCore
- The percentage of how much utilization you want an instance to use before autoscaling. The default value is 50%.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scalingPolicyObjective
GetScalingConfigurationRecommendationRequest.Builder scalingPolicyObjective(ScalingPolicyObjective scalingPolicyObjective) An object where you specify the anticipated traffic pattern for an endpoint.
- Parameters:
scalingPolicyObjective
- An object where you specify the anticipated traffic pattern for an endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scalingPolicyObjective
default GetScalingConfigurationRecommendationRequest.Builder scalingPolicyObjective(Consumer<ScalingPolicyObjective.Builder> scalingPolicyObjective) An object where you specify the anticipated traffic pattern for an endpoint.
This is a convenience method that creates an instance of theScalingPolicyObjective.Builder
avoiding the need to create one manually viaScalingPolicyObjective.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toscalingPolicyObjective(ScalingPolicyObjective)
.- Parameters:
scalingPolicyObjective
- a consumer that will call methods onScalingPolicyObjective.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
GetScalingConfigurationRecommendationRequest.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
GetScalingConfigurationRecommendationRequest.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.
-