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

The name of the user interface you are creating.

*/ inline const Aws::String& GetHumanTaskUiName() const{ return m_humanTaskUiName; } /** *

The name of the user interface you are creating.

*/ inline bool HumanTaskUiNameHasBeenSet() const { return m_humanTaskUiNameHasBeenSet; } /** *

The name of the user interface you are creating.

*/ inline void SetHumanTaskUiName(const Aws::String& value) { m_humanTaskUiNameHasBeenSet = true; m_humanTaskUiName = value; } /** *

The name of the user interface you are creating.

*/ inline void SetHumanTaskUiName(Aws::String&& value) { m_humanTaskUiNameHasBeenSet = true; m_humanTaskUiName = std::move(value); } /** *

The name of the user interface you are creating.

*/ inline void SetHumanTaskUiName(const char* value) { m_humanTaskUiNameHasBeenSet = true; m_humanTaskUiName.assign(value); } /** *

The name of the user interface you are creating.

*/ inline CreateHumanTaskUiRequest& WithHumanTaskUiName(const Aws::String& value) { SetHumanTaskUiName(value); return *this;} /** *

The name of the user interface you are creating.

*/ inline CreateHumanTaskUiRequest& WithHumanTaskUiName(Aws::String&& value) { SetHumanTaskUiName(std::move(value)); return *this;} /** *

The name of the user interface you are creating.

*/ inline CreateHumanTaskUiRequest& WithHumanTaskUiName(const char* value) { SetHumanTaskUiName(value); return *this;} inline const UiTemplate& GetUiTemplate() const{ return m_uiTemplate; } inline bool UiTemplateHasBeenSet() const { return m_uiTemplateHasBeenSet; } inline void SetUiTemplate(const UiTemplate& value) { m_uiTemplateHasBeenSet = true; m_uiTemplate = value; } inline void SetUiTemplate(UiTemplate&& value) { m_uiTemplateHasBeenSet = true; m_uiTemplate = std::move(value); } inline CreateHumanTaskUiRequest& WithUiTemplate(const UiTemplate& value) { SetUiTemplate(value); return *this;} inline CreateHumanTaskUiRequest& WithUiTemplate(UiTemplate&& value) { SetUiTemplate(std::move(value)); return *this;} /** *

An array of key-value pairs that contain metadata to help you categorize and * organize a human review workflow user interface. Each tag consists of a key and * a value, both of which you define.

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

An array of key-value pairs that contain metadata to help you categorize and * organize a human review workflow user interface. Each tag consists of a key and * a value, both of which you define.

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

An array of key-value pairs that contain metadata to help you categorize and * organize a human review workflow user interface. Each tag consists of a key and * a value, both of which you define.

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

An array of key-value pairs that contain metadata to help you categorize and * organize a human review workflow user interface. Each tag consists of a key and * a value, both of which you define.

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

An array of key-value pairs that contain metadata to help you categorize and * organize a human review workflow user interface. Each tag consists of a key and * a value, both of which you define.

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

An array of key-value pairs that contain metadata to help you categorize and * organize a human review workflow user interface. Each tag consists of a key and * a value, both of which you define.

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

An array of key-value pairs that contain metadata to help you categorize and * organize a human review workflow user interface. Each tag consists of a key and * a value, both of which you define.

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

An array of key-value pairs that contain metadata to help you categorize and * organize a human review workflow user interface. Each tag consists of a key and * a value, both of which you define.

*/ inline CreateHumanTaskUiRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_humanTaskUiName; bool m_humanTaskUiNameHasBeenSet = false; UiTemplate m_uiTemplate; bool m_uiTemplateHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws