Interface UpdateEndpointRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<UpdateEndpointRequest.Builder,UpdateEndpointRequest>, SageMakerRequest.Builder, SdkBuilder<UpdateEndpointRequest.Builder,UpdateEndpointRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
UpdateEndpointRequest

public static interface UpdateEndpointRequest.Builder extends SageMakerRequest.Builder, SdkPojo, CopyableBuilder<UpdateEndpointRequest.Builder,UpdateEndpointRequest>
  • Method Details

    • endpointName

      UpdateEndpointRequest.Builder endpointName(String 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

      UpdateEndpointRequest.Builder endpointConfigName(String 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

      UpdateEndpointRequest.Builder retainAllVariantProperties(Boolean 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 to true. To use the variant properties specified in a new EndpointConfig call when updating an endpoint, set RetainAllVariantProperties to false. The default is false.

      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, set RetainAllVariantProperties to true. To use the variant properties specified in a new EndpointConfig call when updating an endpoint, set RetainAllVariantProperties to false. The default is false.
      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 to true, ExcludeRetainedVariantProperties specifies the list of type VariantProperty to override with the values provided by EndpointConfig. If you don't specify a value for ExcludeRetainedVariantProperties, no variant properties are overridden.

      Parameters:
      excludeRetainedVariantProperties - When you are updating endpoint resources with RetainAllVariantProperties, whose value is set to true, ExcludeRetainedVariantProperties specifies the list of type VariantProperty to override with the values provided by EndpointConfig. If you don't specify a value for ExcludeRetainedVariantProperties, 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 to true, ExcludeRetainedVariantProperties specifies the list of type VariantProperty to override with the values provided by EndpointConfig. If you don't specify a value for ExcludeRetainedVariantProperties, no variant properties are overridden.

      Parameters:
      excludeRetainedVariantProperties - When you are updating endpoint resources with RetainAllVariantProperties, whose value is set to true, ExcludeRetainedVariantProperties specifies the list of type VariantProperty to override with the values provided by EndpointConfig. If you don't specify a value for ExcludeRetainedVariantProperties, 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 RetainAllVariantProperties, whose value is set to true, ExcludeRetainedVariantProperties specifies the list of type VariantProperty to override with the values provided by EndpointConfig. If you don't specify a value for ExcludeRetainedVariantProperties, no variant properties are overridden.

      This is a convenience method that creates an instance of the VariantProperty.Builder avoiding the need to create one manually via VariantProperty.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to excludeRetainedVariantProperties(List<VariantProperty>).

      Parameters:
      excludeRetainedVariantProperties - a consumer that will call methods on VariantProperty.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • deploymentConfig

      UpdateEndpointRequest.Builder deploymentConfig(DeploymentConfig 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 the DeploymentConfig.Builder avoiding the need to create one manually via DeploymentConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to deploymentConfig(DeploymentConfig).

      Parameters:
      deploymentConfig - a consumer that will call methods on DeploymentConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • retainDeploymentConfig

      UpdateEndpointRequest.Builder retainDeploymentConfig(Boolean 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 interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.