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

An instance of a variable to be passed to the containerAction * execution. Each variable must have a name and a value given by one of * stringValue, datasetContentVersionValue, or * outputFileUriValue.

See Also:

AWS * API Reference

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

The name of the variable.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the variable.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the variable.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the variable.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the variable.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the variable.

*/ inline Variable& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the variable.

*/ inline Variable& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the variable.

*/ inline Variable& WithName(const char* value) { SetName(value); return *this;} /** *

The value of the variable as a string.

*/ inline const Aws::String& GetStringValue() const{ return m_stringValue; } /** *

The value of the variable as a string.

*/ inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; } /** *

The value of the variable as a string.

*/ inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; } /** *

The value of the variable as a string.

*/ inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); } /** *

The value of the variable as a string.

*/ inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); } /** *

The value of the variable as a string.

*/ inline Variable& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;} /** *

The value of the variable as a string.

*/ inline Variable& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;} /** *

The value of the variable as a string.

*/ inline Variable& WithStringValue(const char* value) { SetStringValue(value); return *this;} /** *

The value of the variable as a double (numeric).

*/ inline double GetDoubleValue() const{ return m_doubleValue; } /** *

The value of the variable as a double (numeric).

*/ inline bool DoubleValueHasBeenSet() const { return m_doubleValueHasBeenSet; } /** *

The value of the variable as a double (numeric).

*/ inline void SetDoubleValue(double value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; } /** *

The value of the variable as a double (numeric).

*/ inline Variable& WithDoubleValue(double value) { SetDoubleValue(value); return *this;} /** *

The value of the variable as a structure that specifies a dataset content * version.

*/ inline const DatasetContentVersionValue& GetDatasetContentVersionValue() const{ return m_datasetContentVersionValue; } /** *

The value of the variable as a structure that specifies a dataset content * version.

*/ inline bool DatasetContentVersionValueHasBeenSet() const { return m_datasetContentVersionValueHasBeenSet; } /** *

The value of the variable as a structure that specifies a dataset content * version.

*/ inline void SetDatasetContentVersionValue(const DatasetContentVersionValue& value) { m_datasetContentVersionValueHasBeenSet = true; m_datasetContentVersionValue = value; } /** *

The value of the variable as a structure that specifies a dataset content * version.

*/ inline void SetDatasetContentVersionValue(DatasetContentVersionValue&& value) { m_datasetContentVersionValueHasBeenSet = true; m_datasetContentVersionValue = std::move(value); } /** *

The value of the variable as a structure that specifies a dataset content * version.

*/ inline Variable& WithDatasetContentVersionValue(const DatasetContentVersionValue& value) { SetDatasetContentVersionValue(value); return *this;} /** *

The value of the variable as a structure that specifies a dataset content * version.

*/ inline Variable& WithDatasetContentVersionValue(DatasetContentVersionValue&& value) { SetDatasetContentVersionValue(std::move(value)); return *this;} /** *

The value of the variable as a structure that specifies an output file * URI.

*/ inline const OutputFileUriValue& GetOutputFileUriValue() const{ return m_outputFileUriValue; } /** *

The value of the variable as a structure that specifies an output file * URI.

*/ inline bool OutputFileUriValueHasBeenSet() const { return m_outputFileUriValueHasBeenSet; } /** *

The value of the variable as a structure that specifies an output file * URI.

*/ inline void SetOutputFileUriValue(const OutputFileUriValue& value) { m_outputFileUriValueHasBeenSet = true; m_outputFileUriValue = value; } /** *

The value of the variable as a structure that specifies an output file * URI.

*/ inline void SetOutputFileUriValue(OutputFileUriValue&& value) { m_outputFileUriValueHasBeenSet = true; m_outputFileUriValue = std::move(value); } /** *

The value of the variable as a structure that specifies an output file * URI.

*/ inline Variable& WithOutputFileUriValue(const OutputFileUriValue& value) { SetOutputFileUriValue(value); return *this;} /** *

The value of the variable as a structure that specifies an output file * URI.

*/ inline Variable& WithOutputFileUriValue(OutputFileUriValue&& value) { SetOutputFileUriValue(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_stringValue; bool m_stringValueHasBeenSet = false; double m_doubleValue; bool m_doubleValueHasBeenSet = false; DatasetContentVersionValue m_datasetContentVersionValue; bool m_datasetContentVersionValueHasBeenSet = false; OutputFileUriValue m_outputFileUriValue; bool m_outputFileUriValueHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws