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

The name of the context to update.

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

The name of the context to update.

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

The name of the context to update.

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

The name of the context to update.

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

The name of the context to update.

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

The name of the context to update.

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

The name of the context to update.

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

The name of the context to update.

*/ inline UpdateContextRequest& WithContextName(const char* value) { SetContextName(value); return *this;} /** *

The new description for the context.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The new description for the context.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The new description for the context.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The new description for the context.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The new description for the context.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The new description for the context.

*/ inline UpdateContextRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The new description for the context.

*/ inline UpdateContextRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The new description for the context.

*/ inline UpdateContextRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The new list of properties. Overwrites the current property list.

*/ inline const Aws::Map& GetProperties() const{ return m_properties; } /** *

The new list of properties. Overwrites the current property list.

*/ inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; } /** *

The new list of properties. Overwrites the current property list.

*/ inline void SetProperties(const Aws::Map& value) { m_propertiesHasBeenSet = true; m_properties = value; } /** *

The new list of properties. Overwrites the current property list.

*/ inline void SetProperties(Aws::Map&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); } /** *

The new list of properties. Overwrites the current property list.

*/ inline UpdateContextRequest& WithProperties(const Aws::Map& value) { SetProperties(value); return *this;} /** *

The new list of properties. Overwrites the current property list.

*/ inline UpdateContextRequest& WithProperties(Aws::Map&& value) { SetProperties(std::move(value)); return *this;} /** *

The new list of properties. Overwrites the current property list.

*/ inline UpdateContextRequest& AddProperties(const Aws::String& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; } /** *

The new list of properties. Overwrites the current property list.

*/ inline UpdateContextRequest& AddProperties(Aws::String&& key, const Aws::String& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; } /** *

The new list of properties. Overwrites the current property list.

*/ inline UpdateContextRequest& AddProperties(const Aws::String& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; } /** *

The new list of properties. Overwrites the current property list.

*/ inline UpdateContextRequest& AddProperties(Aws::String&& key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), std::move(value)); return *this; } /** *

The new list of properties. Overwrites the current property list.

*/ inline UpdateContextRequest& AddProperties(const char* key, Aws::String&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; } /** *

The new list of properties. Overwrites the current property list.

*/ inline UpdateContextRequest& AddProperties(Aws::String&& key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; } /** *

The new list of properties. Overwrites the current property list.

*/ inline UpdateContextRequest& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; } /** *

A list of properties to remove.

*/ inline const Aws::Vector& GetPropertiesToRemove() const{ return m_propertiesToRemove; } /** *

A list of properties to remove.

*/ inline bool PropertiesToRemoveHasBeenSet() const { return m_propertiesToRemoveHasBeenSet; } /** *

A list of properties to remove.

*/ inline void SetPropertiesToRemove(const Aws::Vector& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove = value; } /** *

A list of properties to remove.

*/ inline void SetPropertiesToRemove(Aws::Vector&& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove = std::move(value); } /** *

A list of properties to remove.

*/ inline UpdateContextRequest& WithPropertiesToRemove(const Aws::Vector& value) { SetPropertiesToRemove(value); return *this;} /** *

A list of properties to remove.

*/ inline UpdateContextRequest& WithPropertiesToRemove(Aws::Vector&& value) { SetPropertiesToRemove(std::move(value)); return *this;} /** *

A list of properties to remove.

*/ inline UpdateContextRequest& AddPropertiesToRemove(const Aws::String& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove.push_back(value); return *this; } /** *

A list of properties to remove.

*/ inline UpdateContextRequest& AddPropertiesToRemove(Aws::String&& value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove.push_back(std::move(value)); return *this; } /** *

A list of properties to remove.

*/ inline UpdateContextRequest& AddPropertiesToRemove(const char* value) { m_propertiesToRemoveHasBeenSet = true; m_propertiesToRemove.push_back(value); return *this; } private: Aws::String m_contextName; bool m_contextNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Map m_properties; bool m_propertiesHasBeenSet = false; Aws::Vector m_propertiesToRemove; bool m_propertiesToRemoveHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws