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

An object that sets information about a property.

See Also:

* AWS * API Reference

*/ class PropertyRequest { public: AWS_IOTTWINMAKER_API PropertyRequest(); AWS_IOTTWINMAKER_API PropertyRequest(Aws::Utils::Json::JsonView jsonValue); AWS_IOTTWINMAKER_API PropertyRequest& 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 PropertyDefinitionRequest& 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 PropertyDefinitionRequest& value) { m_definitionHasBeenSet = true; m_definition = value; } /** *

An object that specifies information about a property.

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

An object that specifies information about a property.

*/ inline PropertyRequest& WithDefinition(const PropertyDefinitionRequest& value) { SetDefinition(value); return *this;} /** *

An object that specifies information about a property.

*/ inline PropertyRequest& WithDefinition(PropertyDefinitionRequest&& 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 PropertyRequest& WithValue(const DataValue& value) { SetValue(value); return *this;} /** *

The value of the property.

*/ inline PropertyRequest& WithValue(DataValue&& value) { SetValue(std::move(value)); return *this;} /** *

The update type of the update property request.

*/ inline const PropertyUpdateType& GetUpdateType() const{ return m_updateType; } /** *

The update type of the update property request.

*/ inline bool UpdateTypeHasBeenSet() const { return m_updateTypeHasBeenSet; } /** *

The update type of the update property request.

*/ inline void SetUpdateType(const PropertyUpdateType& value) { m_updateTypeHasBeenSet = true; m_updateType = value; } /** *

The update type of the update property request.

*/ inline void SetUpdateType(PropertyUpdateType&& value) { m_updateTypeHasBeenSet = true; m_updateType = std::move(value); } /** *

The update type of the update property request.

*/ inline PropertyRequest& WithUpdateType(const PropertyUpdateType& value) { SetUpdateType(value); return *this;} /** *

The update type of the update property request.

*/ inline PropertyRequest& WithUpdateType(PropertyUpdateType&& value) { SetUpdateType(std::move(value)); return *this;} private: PropertyDefinitionRequest m_definition; bool m_definitionHasBeenSet = false; DataValue m_value; bool m_valueHasBeenSet = false; PropertyUpdateType m_updateType; bool m_updateTypeHasBeenSet = false; }; } // namespace Model } // namespace IoTTwinMaker } // namespace Aws