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

A Template object containing the worker UI template to * render.

*/ inline const UiTemplate& GetUiTemplate() const{ return m_uiTemplate; } /** *

A Template object containing the worker UI template to * render.

*/ inline bool UiTemplateHasBeenSet() const { return m_uiTemplateHasBeenSet; } /** *

A Template object containing the worker UI template to * render.

*/ inline void SetUiTemplate(const UiTemplate& value) { m_uiTemplateHasBeenSet = true; m_uiTemplate = value; } /** *

A Template object containing the worker UI template to * render.

*/ inline void SetUiTemplate(UiTemplate&& value) { m_uiTemplateHasBeenSet = true; m_uiTemplate = std::move(value); } /** *

A Template object containing the worker UI template to * render.

*/ inline RenderUiTemplateRequest& WithUiTemplate(const UiTemplate& value) { SetUiTemplate(value); return *this;} /** *

A Template object containing the worker UI template to * render.

*/ inline RenderUiTemplateRequest& WithUiTemplate(UiTemplate&& value) { SetUiTemplate(std::move(value)); return *this;} /** *

A RenderableTask object containing a representative task to * render.

*/ inline const RenderableTask& GetTask() const{ return m_task; } /** *

A RenderableTask object containing a representative task to * render.

*/ inline bool TaskHasBeenSet() const { return m_taskHasBeenSet; } /** *

A RenderableTask object containing a representative task to * render.

*/ inline void SetTask(const RenderableTask& value) { m_taskHasBeenSet = true; m_task = value; } /** *

A RenderableTask object containing a representative task to * render.

*/ inline void SetTask(RenderableTask&& value) { m_taskHasBeenSet = true; m_task = std::move(value); } /** *

A RenderableTask object containing a representative task to * render.

*/ inline RenderUiTemplateRequest& WithTask(const RenderableTask& value) { SetTask(value); return *this;} /** *

A RenderableTask object containing a representative task to * render.

*/ inline RenderUiTemplateRequest& WithTask(RenderableTask&& value) { SetTask(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) that has access to the S3 objects that are * used by the template.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) that has access to the S3 objects that are * used by the template.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) that has access to the S3 objects that are * used by the template.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) that has access to the S3 objects that are * used by the template.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) that has access to the S3 objects that are * used by the template.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) that has access to the S3 objects that are * used by the template.

*/ inline RenderUiTemplateRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) that has access to the S3 objects that are * used by the template.

*/ inline RenderUiTemplateRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) that has access to the S3 objects that are * used by the template.

*/ inline RenderUiTemplateRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The HumanTaskUiArn of the worker UI that you want to render. Do * not provide a HumanTaskUiArn if you use the UiTemplate * parameter.

See a list of available Human Ui Amazon Resource Names (ARNs) * in UiConfig.

*/ inline const Aws::String& GetHumanTaskUiArn() const{ return m_humanTaskUiArn; } /** *

The HumanTaskUiArn of the worker UI that you want to render. Do * not provide a HumanTaskUiArn if you use the UiTemplate * parameter.

See a list of available Human Ui Amazon Resource Names (ARNs) * in UiConfig.

*/ inline bool HumanTaskUiArnHasBeenSet() const { return m_humanTaskUiArnHasBeenSet; } /** *

The HumanTaskUiArn of the worker UI that you want to render. Do * not provide a HumanTaskUiArn if you use the UiTemplate * parameter.

See a list of available Human Ui Amazon Resource Names (ARNs) * in UiConfig.

*/ inline void SetHumanTaskUiArn(const Aws::String& value) { m_humanTaskUiArnHasBeenSet = true; m_humanTaskUiArn = value; } /** *

The HumanTaskUiArn of the worker UI that you want to render. Do * not provide a HumanTaskUiArn if you use the UiTemplate * parameter.

See a list of available Human Ui Amazon Resource Names (ARNs) * in UiConfig.

*/ inline void SetHumanTaskUiArn(Aws::String&& value) { m_humanTaskUiArnHasBeenSet = true; m_humanTaskUiArn = std::move(value); } /** *

The HumanTaskUiArn of the worker UI that you want to render. Do * not provide a HumanTaskUiArn if you use the UiTemplate * parameter.

See a list of available Human Ui Amazon Resource Names (ARNs) * in UiConfig.

*/ inline void SetHumanTaskUiArn(const char* value) { m_humanTaskUiArnHasBeenSet = true; m_humanTaskUiArn.assign(value); } /** *

The HumanTaskUiArn of the worker UI that you want to render. Do * not provide a HumanTaskUiArn if you use the UiTemplate * parameter.

See a list of available Human Ui Amazon Resource Names (ARNs) * in UiConfig.

*/ inline RenderUiTemplateRequest& WithHumanTaskUiArn(const Aws::String& value) { SetHumanTaskUiArn(value); return *this;} /** *

The HumanTaskUiArn of the worker UI that you want to render. Do * not provide a HumanTaskUiArn if you use the UiTemplate * parameter.

See a list of available Human Ui Amazon Resource Names (ARNs) * in UiConfig.

*/ inline RenderUiTemplateRequest& WithHumanTaskUiArn(Aws::String&& value) { SetHumanTaskUiArn(std::move(value)); return *this;} /** *

The HumanTaskUiArn of the worker UI that you want to render. Do * not provide a HumanTaskUiArn if you use the UiTemplate * parameter.

See a list of available Human Ui Amazon Resource Names (ARNs) * in UiConfig.

*/ inline RenderUiTemplateRequest& WithHumanTaskUiArn(const char* value) { SetHumanTaskUiArn(value); return *this;} private: UiTemplate m_uiTemplate; bool m_uiTemplateHasBeenSet = false; RenderableTask m_task; bool m_taskHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_humanTaskUiArn; bool m_humanTaskUiArnHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws