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

The name of the model to delete.

*/ inline const Aws::String& GetModelName() const{ return m_modelName; } /** *

The name of the model to delete.

*/ inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; } /** *

The name of the model to delete.

*/ inline void SetModelName(const Aws::String& value) { m_modelNameHasBeenSet = true; m_modelName = value; } /** *

The name of the model to delete.

*/ inline void SetModelName(Aws::String&& value) { m_modelNameHasBeenSet = true; m_modelName = std::move(value); } /** *

The name of the model to delete.

*/ inline void SetModelName(const char* value) { m_modelNameHasBeenSet = true; m_modelName.assign(value); } /** *

The name of the model to delete.

*/ inline DeleteModelRequest& WithModelName(const Aws::String& value) { SetModelName(value); return *this;} /** *

The name of the model to delete.

*/ inline DeleteModelRequest& WithModelName(Aws::String&& value) { SetModelName(std::move(value)); return *this;} /** *

The name of the model to delete.

*/ inline DeleteModelRequest& WithModelName(const char* value) { SetModelName(value); return *this;} private: Aws::String m_modelName; bool m_modelNameHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws