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.BuilderdeploymentConfig(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,ExcludeRetainedVariantPropertiesspecifies 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,ExcludeRetainedVariantPropertiesspecifies 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,ExcludeRetainedVariantPropertiesspecifies 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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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
RetainAllVariantPropertiestotrue. To use the variant properties specified in a newEndpointConfigcall when updating an endpoint, setRetainAllVariantPropertiestofalse. 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, setRetainAllVariantPropertiestotrue. To use the variant properties specified in a newEndpointConfigcall when updating an endpoint, setRetainAllVariantPropertiestofalse. 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,ExcludeRetainedVariantPropertiesspecifies 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,ExcludeRetainedVariantPropertiesspecifies 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,ExcludeRetainedVariantPropertiesspecifies 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,ExcludeRetainedVariantPropertiesspecifies 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,ExcludeRetainedVariantPropertiesspecifies 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.Builderavoiding the need to create one manually viaVariantProperty.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaDeploymentConfig.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-