/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace SageMaker { namespace Model { /** */ class AWS_SAGEMAKER_API UpdateEndpointRequest : public SageMakerRequest { public: 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::String SerializePayload() const override; 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.

*/ 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.

*/ 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.

*/ 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.

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

When you are updating endpoint resources with * UpdateEndpointInput$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 * ExcludeAllVariantProperties, no variant properties are overridden. *

*/ inline const Aws::Vector& GetExcludeRetainedVariantProperties() const{ return m_excludeRetainedVariantProperties; } /** *

When you are updating endpoint resources with * UpdateEndpointInput$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 * ExcludeAllVariantProperties, no variant properties are overridden. *

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

When you are updating endpoint resources with * UpdateEndpointInput$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 * ExcludeAllVariantProperties, 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 * UpdateEndpointInput$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 * ExcludeAllVariantProperties, 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 * UpdateEndpointInput$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 * ExcludeAllVariantProperties, no variant properties are overridden. *

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

When you are updating endpoint resources with * UpdateEndpointInput$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 * ExcludeAllVariantProperties, no variant properties are overridden. *

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

When you are updating endpoint resources with * UpdateEndpointInput$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 * ExcludeAllVariantProperties, 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 * UpdateEndpointInput$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 * ExcludeAllVariantProperties, no variant properties are overridden. *

*/ inline UpdateEndpointRequest& AddExcludeRetainedVariantProperties(VariantProperty&& value) { m_excludeRetainedVariantPropertiesHasBeenSet = true; m_excludeRetainedVariantProperties.push_back(std::move(value)); return *this; } private: Aws::String m_endpointName; bool m_endpointNameHasBeenSet; Aws::String m_endpointConfigName; bool m_endpointConfigNameHasBeenSet; bool m_retainAllVariantProperties; bool m_retainAllVariantPropertiesHasBeenSet; Aws::Vector m_excludeRetainedVariantProperties; bool m_excludeRetainedVariantPropertiesHasBeenSet; }; } // namespace Model } // namespace SageMaker } // namespace Aws