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

The name of the action to update.

*/ inline const Aws::String& GetActionName() const{ return m_actionName; } /** *

The name of the action to update.

*/ inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; } /** *

The name of the action to update.

*/ inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; } /** *

The name of the action to update.

*/ inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); } /** *

The name of the action to update.

*/ inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); } /** *

The name of the action to update.

*/ inline UpdateActionRequest& WithActionName(const Aws::String& value) { SetActionName(value); return *this;} /** *

The name of the action to update.

*/ inline UpdateActionRequest& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;} /** *

The name of the action to update.

*/ inline UpdateActionRequest& WithActionName(const char* value) { SetActionName(value); return *this;} /** *

The new description for the action.

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

The new description for the action.

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

The new description for the action.

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

The new description for the action.

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

The new description for the action.

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

The new description for the action.

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

The new description for the action.

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

The new description for the action.

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

The new status for the action.

*/ inline const ActionStatus& GetStatus() const{ return m_status; } /** *

The new status for the action.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The new status for the action.

*/ inline void SetStatus(const ActionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The new status for the action.

*/ inline void SetStatus(ActionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The new status for the action.

*/ inline UpdateActionRequest& WithStatus(const ActionStatus& value) { SetStatus(value); return *this;} /** *

The new status for the action.

*/ inline UpdateActionRequest& WithStatus(ActionStatus&& value) { SetStatus(std::move(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 UpdateActionRequest& WithProperties(const Aws::Map& value) { SetProperties(value); return *this;} /** *

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

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

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

*/ inline UpdateActionRequest& 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 UpdateActionRequest& 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 UpdateActionRequest& 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 UpdateActionRequest& 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 UpdateActionRequest& 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 UpdateActionRequest& 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 UpdateActionRequest& 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 UpdateActionRequest& WithPropertiesToRemove(const Aws::Vector& value) { SetPropertiesToRemove(value); return *this;} /** *

A list of properties to remove.

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

A list of properties to remove.

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

A list of properties to remove.

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

A list of properties to remove.

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