/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

Specifies how to generate the endpoint name for an automatic one-click * Autopilot model deployment.

See Also:

AWS * API Reference

*/ class ModelDeployConfig { public: AWS_SAGEMAKER_API ModelDeployConfig(); AWS_SAGEMAKER_API ModelDeployConfig(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API ModelDeployConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Set to True to automatically generate an endpoint name for a * one-click Autopilot model deployment; set to False otherwise. The * default value is False.

If you set * AutoGenerateEndpointName to True, do not specify the * EndpointName; otherwise a 400 error is thrown.

*/ inline bool GetAutoGenerateEndpointName() const{ return m_autoGenerateEndpointName; } /** *

Set to True to automatically generate an endpoint name for a * one-click Autopilot model deployment; set to False otherwise. The * default value is False.

If you set * AutoGenerateEndpointName to True, do not specify the * EndpointName; otherwise a 400 error is thrown.

*/ inline bool AutoGenerateEndpointNameHasBeenSet() const { return m_autoGenerateEndpointNameHasBeenSet; } /** *

Set to True to automatically generate an endpoint name for a * one-click Autopilot model deployment; set to False otherwise. The * default value is False.

If you set * AutoGenerateEndpointName to True, do not specify the * EndpointName; otherwise a 400 error is thrown.

*/ inline void SetAutoGenerateEndpointName(bool value) { m_autoGenerateEndpointNameHasBeenSet = true; m_autoGenerateEndpointName = value; } /** *

Set to True to automatically generate an endpoint name for a * one-click Autopilot model deployment; set to False otherwise. The * default value is False.

If you set * AutoGenerateEndpointName to True, do not specify the * EndpointName; otherwise a 400 error is thrown.

*/ inline ModelDeployConfig& WithAutoGenerateEndpointName(bool value) { SetAutoGenerateEndpointName(value); return *this;} /** *

Specifies the endpoint name to use for a one-click Autopilot model deployment * if the endpoint name is not generated automatically.

Specify the * EndpointName if and only if you set * AutoGenerateEndpointName to False; otherwise a 400 * error is thrown.

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

Specifies the endpoint name to use for a one-click Autopilot model deployment * if the endpoint name is not generated automatically.

Specify the * EndpointName if and only if you set * AutoGenerateEndpointName to False; otherwise a 400 * error is thrown.

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

Specifies the endpoint name to use for a one-click Autopilot model deployment * if the endpoint name is not generated automatically.

Specify the * EndpointName if and only if you set * AutoGenerateEndpointName to False; otherwise a 400 * error is thrown.

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

Specifies the endpoint name to use for a one-click Autopilot model deployment * if the endpoint name is not generated automatically.

Specify the * EndpointName if and only if you set * AutoGenerateEndpointName to False; otherwise a 400 * error is thrown.

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

Specifies the endpoint name to use for a one-click Autopilot model deployment * if the endpoint name is not generated automatically.

Specify the * EndpointName if and only if you set * AutoGenerateEndpointName to False; otherwise a 400 * error is thrown.

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

Specifies the endpoint name to use for a one-click Autopilot model deployment * if the endpoint name is not generated automatically.

Specify the * EndpointName if and only if you set * AutoGenerateEndpointName to False; otherwise a 400 * error is thrown.

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

Specifies the endpoint name to use for a one-click Autopilot model deployment * if the endpoint name is not generated automatically.

Specify the * EndpointName if and only if you set * AutoGenerateEndpointName to False; otherwise a 400 * error is thrown.

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

Specifies the endpoint name to use for a one-click Autopilot model deployment * if the endpoint name is not generated automatically.

Specify the * EndpointName if and only if you set * AutoGenerateEndpointName to False; otherwise a 400 * error is thrown.

*/ inline ModelDeployConfig& WithEndpointName(const char* value) { SetEndpointName(value); return *this;} private: bool m_autoGenerateEndpointName; bool m_autoGenerateEndpointNameHasBeenSet = false; Aws::String m_endpointName; bool m_endpointNameHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws