/** * 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 { /** *

An object that contains information about a property response.

See * Also:

AWS * API Reference

*/ class PropertyResponse { public: AWS_IOTTWINMAKER_API PropertyResponse(); AWS_IOTTWINMAKER_API PropertyResponse(Aws::Utils::Json::JsonView jsonValue); AWS_IOTTWINMAKER_API PropertyResponse& 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 PropertyDefinitionResponse& GetDefinition() const{ return m_definition; } /** *

An object that specifies information about a property.

*/ inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; } /** *

An object that specifies information about a property.

*/ inline void SetDefinition(const PropertyDefinitionResponse& value) { m_definitionHasBeenSet = true; m_definition = value; } /** *

An object that specifies information about a property.

*/ inline void SetDefinition(PropertyDefinitionResponse&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); } /** *

An object that specifies information about a property.

*/ inline PropertyResponse& WithDefinition(const PropertyDefinitionResponse& value) { SetDefinition(value); return *this;} /** *

An object that specifies information about a property.

*/ inline PropertyResponse& WithDefinition(PropertyDefinitionResponse&& value) { SetDefinition(std::move(value)); return *this;} /** *

The value of the property.

*/ inline const DataValue& GetValue() const{ return m_value; } /** *

The value of the property.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the property.

*/ inline void SetValue(const DataValue& value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the property.

*/ inline void SetValue(DataValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } /** *

The value of the property.

*/ inline PropertyResponse& WithValue(const DataValue& value) { SetValue(value); return *this;} /** *

The value of the property.

*/ inline PropertyResponse& WithValue(DataValue&& value) { SetValue(std::move(value)); return *this;} private: PropertyDefinitionResponse m_definition; bool m_definitionHasBeenSet = false; DataValue m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace IoTTwinMaker } // namespace Aws