AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PropertyRequest.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/iottwinmaker/model/PropertyDefinitionRequest.h>
9#include <aws/iottwinmaker/model/DataValue.h>
10#include <aws/iottwinmaker/model/PropertyUpdateType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTTwinMaker
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IOTTWINMAKER_API PropertyRequest();
38 AWS_IOTTWINMAKER_API PropertyRequest(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTTWINMAKER_API PropertyRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const PropertyDefinitionRequest& GetDefinition() const{ return m_definition; }
48 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
49 inline void SetDefinition(const PropertyDefinitionRequest& value) { m_definitionHasBeenSet = true; m_definition = value; }
50 inline void SetDefinition(PropertyDefinitionRequest&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
51 inline PropertyRequest& WithDefinition(const PropertyDefinitionRequest& value) { SetDefinition(value); return *this;}
52 inline PropertyRequest& WithDefinition(PropertyDefinitionRequest&& value) { SetDefinition(std::move(value)); return *this;}
54
56
59 inline const DataValue& GetValue() const{ return m_value; }
60 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
61 inline void SetValue(const DataValue& value) { m_valueHasBeenSet = true; m_value = value; }
62 inline void SetValue(DataValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
63 inline PropertyRequest& WithValue(const DataValue& value) { SetValue(value); return *this;}
64 inline PropertyRequest& WithValue(DataValue&& value) { SetValue(std::move(value)); return *this;}
66
68
71 inline const PropertyUpdateType& GetUpdateType() const{ return m_updateType; }
72 inline bool UpdateTypeHasBeenSet() const { return m_updateTypeHasBeenSet; }
73 inline void SetUpdateType(const PropertyUpdateType& value) { m_updateTypeHasBeenSet = true; m_updateType = value; }
74 inline void SetUpdateType(PropertyUpdateType&& value) { m_updateTypeHasBeenSet = true; m_updateType = std::move(value); }
75 inline PropertyRequest& WithUpdateType(const PropertyUpdateType& value) { SetUpdateType(value); return *this;}
76 inline PropertyRequest& WithUpdateType(PropertyUpdateType&& value) { SetUpdateType(std::move(value)); return *this;}
78 private:
79
80 PropertyDefinitionRequest m_definition;
81 bool m_definitionHasBeenSet = false;
82
83 DataValue m_value;
84 bool m_valueHasBeenSet = false;
85
86 PropertyUpdateType m_updateType;
87 bool m_updateTypeHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace IoTTwinMaker
92} // namespace Aws
PropertyRequest & WithDefinition(PropertyDefinitionRequest &&value)
PropertyRequest & WithUpdateType(PropertyUpdateType &&value)
void SetValue(const DataValue &value)
PropertyRequest & WithDefinition(const PropertyDefinitionRequest &value)
void SetUpdateType(const PropertyUpdateType &value)
const PropertyDefinitionRequest & GetDefinition() const
PropertyRequest & WithValue(DataValue &&value)
AWS_IOTTWINMAKER_API PropertyRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
PropertyRequest & WithUpdateType(const PropertyUpdateType &value)
void SetDefinition(const PropertyDefinitionRequest &value)
void SetUpdateType(PropertyUpdateType &&value)
const PropertyUpdateType & GetUpdateType() const
PropertyRequest & WithValue(const DataValue &value)
void SetDefinition(PropertyDefinitionRequest &&value)
AWS_IOTTWINMAKER_API PropertyRequest(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue