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

The latest value of the property.

See Also:

AWS * API Reference

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

An object that specifies information about a property.

*/ inline const EntityPropertyReference& GetPropertyReference() const{ return m_propertyReference; } /** *

An object that specifies information about a property.

*/ inline bool PropertyReferenceHasBeenSet() const { return m_propertyReferenceHasBeenSet; } /** *

An object that specifies information about a property.

*/ inline void SetPropertyReference(const EntityPropertyReference& value) { m_propertyReferenceHasBeenSet = true; m_propertyReference = value; } /** *

An object that specifies information about a property.

*/ inline void SetPropertyReference(EntityPropertyReference&& value) { m_propertyReferenceHasBeenSet = true; m_propertyReference = std::move(value); } /** *

An object that specifies information about a property.

*/ inline PropertyLatestValue& WithPropertyReference(const EntityPropertyReference& value) { SetPropertyReference(value); return *this;} /** *

An object that specifies information about a property.

*/ inline PropertyLatestValue& WithPropertyReference(EntityPropertyReference&& value) { SetPropertyReference(std::move(value)); return *this;} /** *

The value of the property.

*/ inline const DataValue& GetPropertyValue() const{ return m_propertyValue; } /** *

The value of the property.

*/ inline bool PropertyValueHasBeenSet() const { return m_propertyValueHasBeenSet; } /** *

The value of the property.

*/ inline void SetPropertyValue(const DataValue& value) { m_propertyValueHasBeenSet = true; m_propertyValue = value; } /** *

The value of the property.

*/ inline void SetPropertyValue(DataValue&& value) { m_propertyValueHasBeenSet = true; m_propertyValue = std::move(value); } /** *

The value of the property.

*/ inline PropertyLatestValue& WithPropertyValue(const DataValue& value) { SetPropertyValue(value); return *this;} /** *

The value of the property.

*/ inline PropertyLatestValue& WithPropertyValue(DataValue&& value) { SetPropertyValue(std::move(value)); return *this;} private: EntityPropertyReference m_propertyReference; bool m_propertyReferenceHasBeenSet = false; DataValue m_propertyValue; bool m_propertyValueHasBeenSet = false; }; } // namespace Model } // namespace IoTTwinMaker } // namespace Aws