/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace SageMaker { namespace Model { /** */ class UpdateEndpointRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API UpdateEndpointRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateEndpoint"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the endpoint whose configuration you want to update.

*/ inline const Aws::String& GetEndpointName() const{ return m_endpointName; } /** *

The name of the endpoint whose configuration you want to update.

*/ inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; } /** *

The name of the endpoint whose configuration you want to update.

*/ inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; } /** *

The name of the endpoint whose configuration you want to update.

*/ inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); } /** *

The name of the endpoint whose configuration you want to update.

*/ inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); } /** *

The name of the endpoint whose configuration you want to update.

*/ inline UpdateEndpointRequest& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;} /** *

The name of the endpoint whose configuration you want to update.

*/ inline UpdateEndpointRequest& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;} /** *

The name of the endpoint whose configuration you want to update.

*/ inline UpdateEndpointRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;} /** *

The name of the new endpoint configuration.

*/ inline const Aws::String& GetEndpointConfigName() const{ return m_endpointConfigName; } /** *

The name of the new endpoint configuration.

*/ inline bool EndpointConfigNameHasBeenSet() const { return m_endpointConfigNameHasBeenSet; } /** *

The name of the new endpoint configuration.

*/ inline void SetEndpointConfigName(const Aws::String& value) { m_endpointConfigNameHasBeenSet = true; m_endpointConfigName = value; } /** *

The name of the new endpoint configuration.

*/ inline void SetEndpointConfigName(Aws::String&& value) { m_endpointConfigNameHasBeenSet = true; m_endpointConfigName = std::move(value); } /** *

The name of the new endpoint configuration.

*/ inline void SetEndpointConfigName(const char* value) { m_endpointConfigNameHasBeenSet = true; m_endpointConfigName.assign(value); } /** *

The name of the new endpoint configuration.

*/ inline UpdateEndpointRequest& WithEndpointConfigName(const Aws::String& value) { SetEndpointConfigName(value); return *this;} /** *

The name of the new endpoint configuration.

*/ inline UpdateEndpointRequest& WithEndpointConfigName(Aws::String&& value) { SetEndpointConfigName(std::move(value)); return *this;} /** *

The name of the new endpoint configuration.

*/ inline UpdateEndpointRequest& WithEndpointConfigName(const char* value) { SetEndpointConfigName(value); return *this;} /** *

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.

*/ inline bool GetRetainAllVariantProperties() const{ return m_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.

*/ inline bool RetainAllVariantPropertiesHasBeenSet() const { return m_retainAllVariantPropertiesHasBeenSet; } /** *

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.

*/ inline void SetRetainAllVariantProperties(bool value) { m_retainAllVariantPropertiesHasBeenSet = true; m_retainAllVariantProperties = value; } /** *

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.

*/ inline UpdateEndpointRequest& WithRetainAllVariantProperties(bool value) { SetRetainAllVariantProperties(value); return *this;} /** *

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.

*/ inline const Aws::Vector& GetExcludeRetainedVariantProperties() const{ return m_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.

*/ inline bool ExcludeRetainedVariantPropertiesHasBeenSet() const { return m_excludeRetainedVariantPropertiesHasBeenSet; } /** *

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.

*/ inline void SetExcludeRetainedVariantProperties(const Aws::Vector& value) { m_excludeRetainedVariantPropertiesHasBeenSet = true; m_excludeRetainedVariantProperties = value; } /** *

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.

*/ inline void SetExcludeRetainedVariantProperties(Aws::Vector&& value) { m_excludeRetainedVariantPropertiesHasBeenSet = true; m_excludeRetainedVariantProperties = std::move(value); } /** *

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.

*/ inline UpdateEndpointRequest& WithExcludeRetainedVariantProperties(const Aws::Vector& value) { SetExcludeRetainedVariantProperties(value); return *this;} /** *

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.

*/ inline UpdateEndpointRequest& WithExcludeRetainedVariantProperties(Aws::Vector&& value) { SetExcludeRetainedVariantProperties(std::move(value)); return *this;} /** *

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.

*/ inline UpdateEndpointRequest& AddExcludeRetainedVariantProperties(const VariantProperty& value) { m_excludeRetainedVariantPropertiesHasBeenSet = true; m_excludeRetainedVariantProperties.push_back(value); return *this; } /** *

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.

*/ inline UpdateEndpointRequest& AddExcludeRetainedVariantProperties(VariantProperty&& value) { m_excludeRetainedVariantPropertiesHasBeenSet = true; m_excludeRetainedVariantProperties.push_back(std::move(value)); return *this; } /** *

The deployment configuration for an endpoint, which contains the desired * deployment strategy and rollback configurations.

*/ inline const DeploymentConfig& GetDeploymentConfig() const{ return m_deploymentConfig; } /** *

The deployment configuration for an endpoint, which contains the desired * deployment strategy and rollback configurations.

*/ inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; } /** *

The deployment configuration for an endpoint, which contains the desired * deployment strategy and rollback configurations.

*/ inline void SetDeploymentConfig(const DeploymentConfig& value) { m_deploymentConfigHasBeenSet = true; m_deploymentConfig = value; } /** *

The deployment configuration for an endpoint, which contains the desired * deployment strategy and rollback configurations.

*/ inline void SetDeploymentConfig(DeploymentConfig&& value) { m_deploymentConfigHasBeenSet = true; m_deploymentConfig = std::move(value); } /** *

The deployment configuration for an endpoint, which contains the desired * deployment strategy and rollback configurations.

*/ inline UpdateEndpointRequest& WithDeploymentConfig(const DeploymentConfig& value) { SetDeploymentConfig(value); return *this;} /** *

The deployment configuration for an endpoint, which contains the desired * deployment strategy and rollback configurations.

*/ inline UpdateEndpointRequest& WithDeploymentConfig(DeploymentConfig&& value) { SetDeploymentConfig(std::move(value)); return *this;} /** *

Specifies whether to reuse the last deployment configuration. The default * value is false (the configuration is not reused).

*/ inline bool GetRetainDeploymentConfig() const{ return m_retainDeploymentConfig; } /** *

Specifies whether to reuse the last deployment configuration. The default * value is false (the configuration is not reused).

*/ inline bool RetainDeploymentConfigHasBeenSet() const { return m_retainDeploymentConfigHasBeenSet; } /** *

Specifies whether to reuse the last deployment configuration. The default * value is false (the configuration is not reused).

*/ inline void SetRetainDeploymentConfig(bool value) { m_retainDeploymentConfigHasBeenSet = true; m_retainDeploymentConfig = value; } /** *

Specifies whether to reuse the last deployment configuration. The default * value is false (the configuration is not reused).

*/ inline UpdateEndpointRequest& WithRetainDeploymentConfig(bool value) { SetRetainDeploymentConfig(value); return *this;} private: Aws::String m_endpointName; bool m_endpointNameHasBeenSet = false; Aws::String m_endpointConfigName; bool m_endpointConfigNameHasBeenSet = false; bool m_retainAllVariantProperties; bool m_retainAllVariantPropertiesHasBeenSet = false; Aws::Vector m_excludeRetainedVariantProperties; bool m_excludeRetainedVariantPropertiesHasBeenSet = false; DeploymentConfig m_deploymentConfig; bool m_deploymentConfigHasBeenSet = false; bool m_retainDeploymentConfig; bool m_retainDeploymentConfigHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws