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

The name of the context to delete.

*/ inline const Aws::String& GetContextName() const{ return m_contextName; } /** *

The name of the context to delete.

*/ inline bool ContextNameHasBeenSet() const { return m_contextNameHasBeenSet; } /** *

The name of the context to delete.

*/ inline void SetContextName(const Aws::String& value) { m_contextNameHasBeenSet = true; m_contextName = value; } /** *

The name of the context to delete.

*/ inline void SetContextName(Aws::String&& value) { m_contextNameHasBeenSet = true; m_contextName = std::move(value); } /** *

The name of the context to delete.

*/ inline void SetContextName(const char* value) { m_contextNameHasBeenSet = true; m_contextName.assign(value); } /** *

The name of the context to delete.

*/ inline DeleteContextRequest& WithContextName(const Aws::String& value) { SetContextName(value); return *this;} /** *

The name of the context to delete.

*/ inline DeleteContextRequest& WithContextName(Aws::String&& value) { SetContextName(std::move(value)); return *this;} /** *

The name of the context to delete.

*/ inline DeleteContextRequest& WithContextName(const char* value) { SetContextName(value); return *this;} private: Aws::String m_contextName; bool m_contextNameHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws