AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
PropertyRequest.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/iottwinmaker/model/DataValue.h>
9#include <aws/iottwinmaker/model/PropertyDefinitionRequest.h>
10#include <aws/iottwinmaker/model/PropertyUpdateType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTTwinMaker {
22namespace Model {
23
31 public:
32 AWS_IOTTWINMAKER_API PropertyRequest() = default;
33 AWS_IOTTWINMAKER_API PropertyRequest(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTTWINMAKER_API PropertyRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const PropertyDefinitionRequest& GetDefinition() const { return m_definition; }
42 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
43 template <typename DefinitionT = PropertyDefinitionRequest>
44 void SetDefinition(DefinitionT&& value) {
45 m_definitionHasBeenSet = true;
46 m_definition = std::forward<DefinitionT>(value);
47 }
48 template <typename DefinitionT = PropertyDefinitionRequest>
49 PropertyRequest& WithDefinition(DefinitionT&& value) {
50 SetDefinition(std::forward<DefinitionT>(value));
51 return *this;
52 }
54
56
59 inline const DataValue& GetValue() const { return m_value; }
60 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
61 template <typename ValueT = DataValue>
62 void SetValue(ValueT&& value) {
63 m_valueHasBeenSet = true;
64 m_value = std::forward<ValueT>(value);
65 }
66 template <typename ValueT = DataValue>
67 PropertyRequest& WithValue(ValueT&& value) {
68 SetValue(std::forward<ValueT>(value));
69 return *this;
70 }
72
74
77 inline PropertyUpdateType GetUpdateType() const { return m_updateType; }
78 inline bool UpdateTypeHasBeenSet() const { return m_updateTypeHasBeenSet; }
79 inline void SetUpdateType(PropertyUpdateType value) {
80 m_updateTypeHasBeenSet = true;
81 m_updateType = value;
82 }
84 SetUpdateType(value);
85 return *this;
86 }
88 private:
89 PropertyDefinitionRequest m_definition;
90
91 DataValue m_value;
92
94 bool m_definitionHasBeenSet = false;
95 bool m_valueHasBeenSet = false;
96 bool m_updateTypeHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace IoTTwinMaker
101} // namespace Aws
void SetUpdateType(PropertyUpdateType value)
const PropertyDefinitionRequest & GetDefinition() const
PropertyRequest & WithDefinition(DefinitionT &&value)
AWS_IOTTWINMAKER_API PropertyRequest()=default
PropertyUpdateType GetUpdateType() const
PropertyRequest & WithValue(ValueT &&value)
AWS_IOTTWINMAKER_API PropertyRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
PropertyRequest & WithUpdateType(PropertyUpdateType value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTTWINMAKER_API PropertyRequest(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue