/** * 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 #include #include #include namespace Aws { namespace SageMaker { namespace Model { /** */ class CreateActionRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API CreateActionRequest(); // 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 "CreateAction"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the action. Must be unique to your account in an Amazon Web * Services Region.

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

The name of the action. Must be unique to your account in an Amazon Web * Services Region.

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

The name of the action. Must be unique to your account in an Amazon Web * Services Region.

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

The name of the action. Must be unique to your account in an Amazon Web * Services Region.

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

The name of the action. Must be unique to your account in an Amazon Web * Services Region.

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

The name of the action. Must be unique to your account in an Amazon Web * Services Region.

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

The name of the action. Must be unique to your account in an Amazon Web * Services Region.

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

The name of the action. Must be unique to your account in an Amazon Web * Services Region.

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

The source type, ID, and URI.

*/ inline const ActionSource& GetSource() const{ return m_source; } /** *

The source type, ID, and URI.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The source type, ID, and URI.

*/ inline void SetSource(const ActionSource& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The source type, ID, and URI.

*/ inline void SetSource(ActionSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The source type, ID, and URI.

*/ inline CreateActionRequest& WithSource(const ActionSource& value) { SetSource(value); return *this;} /** *

The source type, ID, and URI.

*/ inline CreateActionRequest& WithSource(ActionSource&& value) { SetSource(std::move(value)); return *this;} /** *

The action type.

*/ inline const Aws::String& GetActionType() const{ return m_actionType; } /** *

The action type.

*/ inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; } /** *

The action type.

*/ inline void SetActionType(const Aws::String& value) { m_actionTypeHasBeenSet = true; m_actionType = value; } /** *

The action type.

*/ inline void SetActionType(Aws::String&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); } /** *

The action type.

*/ inline void SetActionType(const char* value) { m_actionTypeHasBeenSet = true; m_actionType.assign(value); } /** *

The action type.

*/ inline CreateActionRequest& WithActionType(const Aws::String& value) { SetActionType(value); return *this;} /** *

The action type.

*/ inline CreateActionRequest& WithActionType(Aws::String&& value) { SetActionType(std::move(value)); return *this;} /** *

The action type.

*/ inline CreateActionRequest& WithActionType(const char* value) { SetActionType(value); return *this;} /** *

The description of the action.

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

The description of the action.

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

The description of the action.

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

The description of the action.

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

The description of the action.

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

The description of the action.

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

The description of the action.

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

The description of the action.

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

The status of the action.

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

The status of the action.

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

The status of the action.

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

The status of the action.

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

The status of the action.

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

The status of the action.

*/ inline CreateActionRequest& WithStatus(ActionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

A list of properties to add to the action.

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

A list of properties to add to the action.

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

A list of properties to add to the action.

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

A list of properties to add to the action.

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

A list of properties to add to the action.

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

A list of properties to add to the action.

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

A list of properties to add to the action.

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

A list of properties to add to the action.

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

A list of properties to add to the action.

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

A list of properties to add to the action.

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

A list of properties to add to the action.

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

A list of properties to add to the action.

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

A list of properties to add to the action.

*/ inline CreateActionRequest& AddProperties(const char* key, const char* value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; } inline const MetadataProperties& GetMetadataProperties() const{ return m_metadataProperties; } inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; } inline void SetMetadataProperties(const MetadataProperties& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = value; } inline void SetMetadataProperties(MetadataProperties&& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = std::move(value); } inline CreateActionRequest& WithMetadataProperties(const MetadataProperties& value) { SetMetadataProperties(value); return *this;} inline CreateActionRequest& WithMetadataProperties(MetadataProperties&& value) { SetMetadataProperties(std::move(value)); return *this;} /** *

A list of tags to apply to the action.

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

A list of tags to apply to the action.

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

A list of tags to apply to the action.

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

A list of tags to apply to the action.

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

A list of tags to apply to the action.

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

A list of tags to apply to the action.

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

A list of tags to apply to the action.

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

A list of tags to apply to the action.

*/ inline CreateActionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_actionName; bool m_actionNameHasBeenSet = false; ActionSource m_source; bool m_sourceHasBeenSet = false; Aws::String m_actionType; bool m_actionTypeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; ActionStatus m_status; bool m_statusHasBeenSet = false; Aws::Map m_properties; bool m_propertiesHasBeenSet = false; MetadataProperties m_metadataProperties; bool m_metadataPropertiesHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws