/** * 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 CreateEndpointRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API CreateEndpointRequest(); // 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 "CreateEndpoint"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the endpoint.The name must be unique within an Amazon Web * Services Region in your Amazon Web Services account. The name is * case-insensitive in CreateEndpoint, but the case is preserved and * must be matched in InvokeEndpoint.

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

The name of the endpoint.The name must be unique within an Amazon Web * Services Region in your Amazon Web Services account. The name is * case-insensitive in CreateEndpoint, but the case is preserved and * must be matched in InvokeEndpoint.

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

The name of the endpoint.The name must be unique within an Amazon Web * Services Region in your Amazon Web Services account. The name is * case-insensitive in CreateEndpoint, but the case is preserved and * must be matched in InvokeEndpoint.

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

The name of the endpoint.The name must be unique within an Amazon Web * Services Region in your Amazon Web Services account. The name is * case-insensitive in CreateEndpoint, but the case is preserved and * must be matched in InvokeEndpoint.

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

The name of the endpoint.The name must be unique within an Amazon Web * Services Region in your Amazon Web Services account. The name is * case-insensitive in CreateEndpoint, but the case is preserved and * must be matched in InvokeEndpoint.

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

The name of the endpoint.The name must be unique within an Amazon Web * Services Region in your Amazon Web Services account. The name is * case-insensitive in CreateEndpoint, but the case is preserved and * must be matched in InvokeEndpoint.

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

The name of the endpoint.The name must be unique within an Amazon Web * Services Region in your Amazon Web Services account. The name is * case-insensitive in CreateEndpoint, but the case is preserved and * must be matched in InvokeEndpoint.

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

The name of the endpoint.The name must be unique within an Amazon Web * Services Region in your Amazon Web Services account. The name is * case-insensitive in CreateEndpoint, but the case is preserved and * must be matched in InvokeEndpoint.

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

The name of an endpoint configuration. For more information, see CreateEndpointConfig. *

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

The name of an endpoint configuration. For more information, see CreateEndpointConfig. *

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

The name of an endpoint configuration. For more information, see CreateEndpointConfig. *

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

The name of an endpoint configuration. For more information, see CreateEndpointConfig. *

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

The name of an endpoint configuration. For more information, see CreateEndpointConfig. *

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

The name of an endpoint configuration. For more information, see CreateEndpointConfig. *

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

The name of an endpoint configuration. For more information, see CreateEndpointConfig. *

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

The name of an endpoint configuration. For more information, see CreateEndpointConfig. *

*/ inline CreateEndpointRequest& WithEndpointConfigName(const char* value) { SetEndpointConfigName(value); return *this;} inline const DeploymentConfig& GetDeploymentConfig() const{ return m_deploymentConfig; } inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; } inline void SetDeploymentConfig(const DeploymentConfig& value) { m_deploymentConfigHasBeenSet = true; m_deploymentConfig = value; } inline void SetDeploymentConfig(DeploymentConfig&& value) { m_deploymentConfigHasBeenSet = true; m_deploymentConfig = std::move(value); } inline CreateEndpointRequest& WithDeploymentConfig(const DeploymentConfig& value) { SetDeploymentConfig(value); return *this;} inline CreateEndpointRequest& WithDeploymentConfig(DeploymentConfig&& value) { SetDeploymentConfig(std::move(value)); return *this;} /** *

An array of key-value pairs. You can use tags to categorize your Amazon Web * Services resources in different ways, for example, by purpose, owner, or * environment. For more information, see Tagging * Amazon Web Services Resources.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

An array of key-value pairs. You can use tags to categorize your Amazon Web * Services resources in different ways, for example, by purpose, owner, or * environment. For more information, see Tagging * Amazon Web Services Resources.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

An array of key-value pairs. You can use tags to categorize your Amazon Web * Services resources in different ways, for example, by purpose, owner, or * environment. For more information, see Tagging * Amazon Web Services Resources.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

An array of key-value pairs. You can use tags to categorize your Amazon Web * Services resources in different ways, for example, by purpose, owner, or * environment. For more information, see Tagging * Amazon Web Services Resources.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

An array of key-value pairs. You can use tags to categorize your Amazon Web * Services resources in different ways, for example, by purpose, owner, or * environment. For more information, see Tagging * Amazon Web Services Resources.

*/ inline CreateEndpointRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

An array of key-value pairs. You can use tags to categorize your Amazon Web * Services resources in different ways, for example, by purpose, owner, or * environment. For more information, see Tagging * Amazon Web Services Resources.

*/ inline CreateEndpointRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

An array of key-value pairs. You can use tags to categorize your Amazon Web * Services resources in different ways, for example, by purpose, owner, or * environment. For more information, see Tagging * Amazon Web Services Resources.

*/ inline CreateEndpointRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

An array of key-value pairs. You can use tags to categorize your Amazon Web * Services resources in different ways, for example, by purpose, owner, or * environment. For more information, see Tagging * Amazon Web Services Resources.

*/ inline CreateEndpointRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_endpointName; bool m_endpointNameHasBeenSet = false; Aws::String m_endpointConfigName; bool m_endpointConfigNameHasBeenSet = false; DeploymentConfig m_deploymentConfig; bool m_deploymentConfigHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws