AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename DefinitionT = PropertyDefinitionRequest>
50 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
51 template<typename DefinitionT = PropertyDefinitionRequest>
52 PropertyRequest& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
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) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
63 template<typename ValueT = DataValue>
64 PropertyRequest& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
66
68
71 inline PropertyUpdateType GetUpdateType() const { return m_updateType; }
72 inline bool UpdateTypeHasBeenSet() const { return m_updateTypeHasBeenSet; }
73 inline void SetUpdateType(PropertyUpdateType value) { m_updateTypeHasBeenSet = true; m_updateType = value; }
74 inline PropertyRequest& WithUpdateType(PropertyUpdateType value) { SetUpdateType(value); return *this;}
76 private:
77
78 PropertyDefinitionRequest m_definition;
79 bool m_definitionHasBeenSet = false;
80
81 DataValue m_value;
82 bool m_valueHasBeenSet = false;
83
85 bool m_updateTypeHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace IoTTwinMaker
90} // 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