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

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

See * Also:

AWS * API Reference

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

Asset property data of type string (sequence of characters).

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

Asset property data of type string (sequence of characters).

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

Asset property data of type string (sequence of characters).

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

Asset property data of type string (sequence of characters).

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

Asset property data of type string (sequence of characters).

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

Asset property data of type string (sequence of characters).

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

Asset property data of type string (sequence of characters).

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

Asset property data of type string (sequence of characters).

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

Asset property data of type integer (whole number).

*/ inline int GetIntegerValue() const{ return m_integerValue; } /** *

Asset property data of type integer (whole number).

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

Asset property data of type integer (whole number).

*/ inline void SetIntegerValue(int value) { m_integerValueHasBeenSet = true; m_integerValue = value; } /** *

Asset property data of type integer (whole number).

*/ inline Variant& WithIntegerValue(int value) { SetIntegerValue(value); return *this;} /** *

Asset property data of type double (floating point number).

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

Asset property data of type double (floating point number).

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

Asset property data of type double (floating point number).

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

Asset property data of type double (floating point number).

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

Asset property data of type Boolean (true or false).

*/ inline bool GetBooleanValue() const{ return m_booleanValue; } /** *

Asset property data of type Boolean (true or false).

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

Asset property data of type Boolean (true or false).

*/ inline void SetBooleanValue(bool value) { m_booleanValueHasBeenSet = true; m_booleanValue = value; } /** *

Asset property data of type Boolean (true or false).

*/ inline Variant& WithBooleanValue(bool value) { SetBooleanValue(value); return *this;} private: Aws::String m_stringValue; bool m_stringValueHasBeenSet = false; int m_integerValue; bool m_integerValueHasBeenSet = false; double m_doubleValue; bool m_doubleValueHasBeenSet = false; bool m_booleanValue; bool m_booleanValueHasBeenSet = false; }; } // namespace Model } // namespace IoTSiteWise } // namespace Aws