/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SageMaker { namespace Model { /** *

Contains input values for a task.

See Also:

AWS * API Reference

*/ class RenderableTask { public: AWS_SAGEMAKER_API RenderableTask(); AWS_SAGEMAKER_API RenderableTask(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API RenderableTask& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A JSON object that contains values for the variables defined in the template. * It is made available to the template under the substitution variable * task.input. For example, if you define a variable * task.input.text in your template, you can supply the variable in * the JSON object as "text": "sample text".

*/ inline const Aws::String& GetInput() const{ return m_input; } /** *

A JSON object that contains values for the variables defined in the template. * It is made available to the template under the substitution variable * task.input. For example, if you define a variable * task.input.text in your template, you can supply the variable in * the JSON object as "text": "sample text".

*/ inline bool InputHasBeenSet() const { return m_inputHasBeenSet; } /** *

A JSON object that contains values for the variables defined in the template. * It is made available to the template under the substitution variable * task.input. For example, if you define a variable * task.input.text in your template, you can supply the variable in * the JSON object as "text": "sample text".

*/ inline void SetInput(const Aws::String& value) { m_inputHasBeenSet = true; m_input = value; } /** *

A JSON object that contains values for the variables defined in the template. * It is made available to the template under the substitution variable * task.input. For example, if you define a variable * task.input.text in your template, you can supply the variable in * the JSON object as "text": "sample text".

*/ inline void SetInput(Aws::String&& value) { m_inputHasBeenSet = true; m_input = std::move(value); } /** *

A JSON object that contains values for the variables defined in the template. * It is made available to the template under the substitution variable * task.input. For example, if you define a variable * task.input.text in your template, you can supply the variable in * the JSON object as "text": "sample text".

*/ inline void SetInput(const char* value) { m_inputHasBeenSet = true; m_input.assign(value); } /** *

A JSON object that contains values for the variables defined in the template. * It is made available to the template under the substitution variable * task.input. For example, if you define a variable * task.input.text in your template, you can supply the variable in * the JSON object as "text": "sample text".

*/ inline RenderableTask& WithInput(const Aws::String& value) { SetInput(value); return *this;} /** *

A JSON object that contains values for the variables defined in the template. * It is made available to the template under the substitution variable * task.input. For example, if you define a variable * task.input.text in your template, you can supply the variable in * the JSON object as "text": "sample text".

*/ inline RenderableTask& WithInput(Aws::String&& value) { SetInput(std::move(value)); return *this;} /** *

A JSON object that contains values for the variables defined in the template. * It is made available to the template under the substitution variable * task.input. For example, if you define a variable * task.input.text in your template, you can supply the variable in * the JSON object as "text": "sample text".

*/ inline RenderableTask& WithInput(const char* value) { SetInput(value); return *this;} private: Aws::String m_input; bool m_inputHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws