Interface UpdateEndpointRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateEndpointRequest.Builder,
,UpdateEndpointRequest> SageMakerRequest.Builder
,SdkBuilder<UpdateEndpointRequest.Builder,
,UpdateEndpointRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateEndpointRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault UpdateEndpointRequest.Builder
deploymentConfig
(Consumer<DeploymentConfig.Builder> deploymentConfig) The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.deploymentConfig
(DeploymentConfig deploymentConfig) The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.endpointConfigName
(String endpointConfigName) The name of the new endpoint configuration.endpointName
(String endpointName) The name of the endpoint whose configuration you want to update.excludeRetainedVariantProperties
(Collection<VariantProperty> excludeRetainedVariantProperties) When you are updating endpoint resources withRetainAllVariantProperties
, whose value is set totrue
,ExcludeRetainedVariantProperties
specifies the list of type VariantProperty to override with the values provided byEndpointConfig
.excludeRetainedVariantProperties
(Consumer<VariantProperty.Builder>... excludeRetainedVariantProperties) When you are updating endpoint resources withRetainAllVariantProperties
, whose value is set totrue
,ExcludeRetainedVariantProperties
specifies the list of type VariantProperty to override with the values provided byEndpointConfig
.excludeRetainedVariantProperties
(VariantProperty... excludeRetainedVariantProperties) When you are updating endpoint resources withRetainAllVariantProperties
, whose value is set totrue
,ExcludeRetainedVariantProperties
specifies the list of type VariantProperty to override with the values provided byEndpointConfig
.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.retainAllVariantProperties
(Boolean retainAllVariantProperties) When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight.retainDeploymentConfig
(Boolean retainDeploymentConfig) Specifies whether to reuse the last deployment 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 the endpoint whose configuration you want to update.
- Parameters:
endpointName
- The name of the endpoint whose configuration you want to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endpointConfigName
The name of the new endpoint configuration.
- Parameters:
endpointConfigName
- The name of the new endpoint configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retainAllVariantProperties
When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight. To retain the variant properties of an endpoint when updating it, set
RetainAllVariantProperties
totrue
. To use the variant properties specified in a newEndpointConfig
call when updating an endpoint, setRetainAllVariantProperties
tofalse
. The default isfalse
.- Parameters:
retainAllVariantProperties
- When updating endpoint resources, enables or disables the retention of variant properties, such as the instance count or the variant weight. To retain the variant properties of an endpoint when updating it, setRetainAllVariantProperties
totrue
. To use the variant properties specified in a newEndpointConfig
call when updating an endpoint, setRetainAllVariantProperties
tofalse
. The default isfalse
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeRetainedVariantProperties
UpdateEndpointRequest.Builder excludeRetainedVariantProperties(Collection<VariantProperty> excludeRetainedVariantProperties) When you are updating endpoint resources with
RetainAllVariantProperties
, whose value is set totrue
,ExcludeRetainedVariantProperties
specifies the list of type VariantProperty to override with the values provided byEndpointConfig
. If you don't specify a value forExcludeRetainedVariantProperties
, no variant properties are overridden.- Parameters:
excludeRetainedVariantProperties
- When you are updating endpoint resources withRetainAllVariantProperties
, whose value is set totrue
,ExcludeRetainedVariantProperties
specifies the list of type VariantProperty to override with the values provided byEndpointConfig
. If you don't specify a value forExcludeRetainedVariantProperties
, no variant properties are overridden.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeRetainedVariantProperties
UpdateEndpointRequest.Builder excludeRetainedVariantProperties(VariantProperty... excludeRetainedVariantProperties) When you are updating endpoint resources with
RetainAllVariantProperties
, whose value is set totrue
,ExcludeRetainedVariantProperties
specifies the list of type VariantProperty to override with the values provided byEndpointConfig
. If you don't specify a value forExcludeRetainedVariantProperties
, no variant properties are overridden.- Parameters:
excludeRetainedVariantProperties
- When you are updating endpoint resources withRetainAllVariantProperties
, whose value is set totrue
,ExcludeRetainedVariantProperties
specifies the list of type VariantProperty to override with the values provided byEndpointConfig
. If you don't specify a value forExcludeRetainedVariantProperties
, no variant properties are overridden.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludeRetainedVariantProperties
UpdateEndpointRequest.Builder excludeRetainedVariantProperties(Consumer<VariantProperty.Builder>... excludeRetainedVariantProperties) When you are updating endpoint resources with
This is a convenience method that creates an instance of theRetainAllVariantProperties
, whose value is set totrue
,ExcludeRetainedVariantProperties
specifies the list of type VariantProperty to override with the values provided byEndpointConfig
. If you don't specify a value forExcludeRetainedVariantProperties
, no variant properties are overridden.VariantProperty.Builder
avoiding the need to create one manually viaVariantProperty.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toexcludeRetainedVariantProperties(List<VariantProperty>)
.- Parameters:
excludeRetainedVariantProperties
- a consumer that will call methods onVariantProperty.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deploymentConfig
The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.
- Parameters:
deploymentConfig
- The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deploymentConfig
default UpdateEndpointRequest.Builder deploymentConfig(Consumer<DeploymentConfig.Builder> deploymentConfig) The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.
This is a convenience method that creates an instance of theDeploymentConfig.Builder
avoiding the need to create one manually viaDeploymentConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeploymentConfig(DeploymentConfig)
.- Parameters:
deploymentConfig
- a consumer that will call methods onDeploymentConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
retainDeploymentConfig
Specifies whether to reuse the last deployment configuration. The default value is false (the configuration is not reused).
- Parameters:
retainDeploymentConfig
- Specifies whether to reuse the last deployment configuration. The default value is false (the configuration is not reused).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
UpdateEndpointRequest.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
UpdateEndpointRequest.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.
-