/** * 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 IoT { namespace Model { /** *

Contains an asset property value (of a single type).

See Also:

* AWS * API Reference

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

Optional. The string value of the value entry. Accepts substitution * templates.

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

Optional. The string value of the value entry. Accepts substitution * templates.

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

Optional. The string value of the value entry. Accepts substitution * templates.

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

Optional. The string value of the value entry. Accepts substitution * templates.

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

Optional. The string value of the value entry. Accepts substitution * templates.

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

Optional. The string value of the value entry. Accepts substitution * templates.

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

Optional. The string value of the value entry. Accepts substitution * templates.

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

Optional. The string value of the value entry. Accepts substitution * templates.

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

Optional. A string that contains the integer value of the value entry. * Accepts substitution templates.

*/ inline const Aws::String& GetIntegerValue() const{ return m_integerValue; } /** *

Optional. A string that contains the integer value of the value entry. * Accepts substitution templates.

*/ inline bool IntegerValueHasBeenSet() const { return m_integerValueHasBeenSet; } /** *

Optional. A string that contains the integer value of the value entry. * Accepts substitution templates.

*/ inline void SetIntegerValue(const Aws::String& value) { m_integerValueHasBeenSet = true; m_integerValue = value; } /** *

Optional. A string that contains the integer value of the value entry. * Accepts substitution templates.

*/ inline void SetIntegerValue(Aws::String&& value) { m_integerValueHasBeenSet = true; m_integerValue = std::move(value); } /** *

Optional. A string that contains the integer value of the value entry. * Accepts substitution templates.

*/ inline void SetIntegerValue(const char* value) { m_integerValueHasBeenSet = true; m_integerValue.assign(value); } /** *

Optional. A string that contains the integer value of the value entry. * Accepts substitution templates.

*/ inline AssetPropertyVariant& WithIntegerValue(const Aws::String& value) { SetIntegerValue(value); return *this;} /** *

Optional. A string that contains the integer value of the value entry. * Accepts substitution templates.

*/ inline AssetPropertyVariant& WithIntegerValue(Aws::String&& value) { SetIntegerValue(std::move(value)); return *this;} /** *

Optional. A string that contains the integer value of the value entry. * Accepts substitution templates.

*/ inline AssetPropertyVariant& WithIntegerValue(const char* value) { SetIntegerValue(value); return *this;} /** *

Optional. A string that contains the double value of the value entry. Accepts * substitution templates.

*/ inline const Aws::String& GetDoubleValue() const{ return m_doubleValue; } /** *

Optional. A string that contains the double value of the value entry. Accepts * substitution templates.

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

Optional. A string that contains the double value of the value entry. Accepts * substitution templates.

*/ inline void SetDoubleValue(const Aws::String& value) { m_doubleValueHasBeenSet = true; m_doubleValue = value; } /** *

Optional. A string that contains the double value of the value entry. Accepts * substitution templates.

*/ inline void SetDoubleValue(Aws::String&& value) { m_doubleValueHasBeenSet = true; m_doubleValue = std::move(value); } /** *

Optional. A string that contains the double value of the value entry. Accepts * substitution templates.

*/ inline void SetDoubleValue(const char* value) { m_doubleValueHasBeenSet = true; m_doubleValue.assign(value); } /** *

Optional. A string that contains the double value of the value entry. Accepts * substitution templates.

*/ inline AssetPropertyVariant& WithDoubleValue(const Aws::String& value) { SetDoubleValue(value); return *this;} /** *

Optional. A string that contains the double value of the value entry. Accepts * substitution templates.

*/ inline AssetPropertyVariant& WithDoubleValue(Aws::String&& value) { SetDoubleValue(std::move(value)); return *this;} /** *

Optional. A string that contains the double value of the value entry. Accepts * substitution templates.

*/ inline AssetPropertyVariant& WithDoubleValue(const char* value) { SetDoubleValue(value); return *this;} /** *

Optional. A string that contains the boolean value (true or * false) of the value entry. Accepts substitution templates.

*/ inline const Aws::String& GetBooleanValue() const{ return m_booleanValue; } /** *

Optional. A string that contains the boolean value (true or * false) of the value entry. Accepts substitution templates.

*/ inline bool BooleanValueHasBeenSet() const { return m_booleanValueHasBeenSet; } /** *

Optional. A string that contains the boolean value (true or * false) of the value entry. Accepts substitution templates.

*/ inline void SetBooleanValue(const Aws::String& value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; } /** *

Optional. A string that contains the boolean value (true or * false) of the value entry. Accepts substitution templates.

*/ inline void SetBooleanValue(Aws::String&& value) { m_booleanValueHasBeenSet = true; m_booleanValue = std::move(value); } /** *

Optional. A string that contains the boolean value (true or * false) of the value entry. Accepts substitution templates.

*/ inline void SetBooleanValue(const char* value) { m_booleanValueHasBeenSet = true; m_booleanValue.assign(value); } /** *

Optional. A string that contains the boolean value (true or * false) of the value entry. Accepts substitution templates.

*/ inline AssetPropertyVariant& WithBooleanValue(const Aws::String& value) { SetBooleanValue(value); return *this;} /** *

Optional. A string that contains the boolean value (true or * false) of the value entry. Accepts substitution templates.

*/ inline AssetPropertyVariant& WithBooleanValue(Aws::String&& value) { SetBooleanValue(std::move(value)); return *this;} /** *

Optional. A string that contains the boolean value (true or * false) of the value entry. Accepts substitution templates.

*/ inline AssetPropertyVariant& WithBooleanValue(const char* value) { SetBooleanValue(value); return *this;} private: Aws::String m_stringValue; bool m_stringValueHasBeenSet = false; Aws::String m_integerValue; bool m_integerValueHasBeenSet = false; Aws::String m_doubleValue; bool m_doubleValueHasBeenSet = false; Aws::String m_booleanValue; bool m_booleanValueHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws