AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ComponentUpdateRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
10#include <aws/iottwinmaker/model/ComponentPropertyGroupRequest.h>
11#include <aws/iottwinmaker/model/ComponentUpdateType.h>
12#include <aws/iottwinmaker/model/PropertyRequest.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoTTwinMaker {
24namespace Model {
25
32 public:
33 AWS_IOTTWINMAKER_API ComponentUpdateRequest() = default;
34 AWS_IOTTWINMAKER_API ComponentUpdateRequest(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline ComponentUpdateType GetUpdateType() const { return m_updateType; }
43 inline bool UpdateTypeHasBeenSet() const { return m_updateTypeHasBeenSet; }
45 m_updateTypeHasBeenSet = true;
46 m_updateType = value;
47 }
49 SetUpdateType(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 ComponentUpdateRequest& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetComponentTypeId() const { return m_componentTypeId; }
77 inline bool ComponentTypeIdHasBeenSet() const { return m_componentTypeIdHasBeenSet; }
78 template <typename ComponentTypeIdT = Aws::String>
79 void SetComponentTypeId(ComponentTypeIdT&& value) {
80 m_componentTypeIdHasBeenSet = true;
81 m_componentTypeId = std::forward<ComponentTypeIdT>(value);
82 }
83 template <typename ComponentTypeIdT = Aws::String>
84 ComponentUpdateRequest& WithComponentTypeId(ComponentTypeIdT&& value) {
85 SetComponentTypeId(std::forward<ComponentTypeIdT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::Map<Aws::String, PropertyRequest>& GetPropertyUpdates() const { return m_propertyUpdates; }
96 inline bool PropertyUpdatesHasBeenSet() const { return m_propertyUpdatesHasBeenSet; }
97 template <typename PropertyUpdatesT = Aws::Map<Aws::String, PropertyRequest>>
98 void SetPropertyUpdates(PropertyUpdatesT&& value) {
99 m_propertyUpdatesHasBeenSet = true;
100 m_propertyUpdates = std::forward<PropertyUpdatesT>(value);
101 }
102 template <typename PropertyUpdatesT = Aws::Map<Aws::String, PropertyRequest>>
103 ComponentUpdateRequest& WithPropertyUpdates(PropertyUpdatesT&& value) {
104 SetPropertyUpdates(std::forward<PropertyUpdatesT>(value));
105 return *this;
106 }
107 template <typename PropertyUpdatesKeyT = Aws::String, typename PropertyUpdatesValueT = PropertyRequest>
108 ComponentUpdateRequest& AddPropertyUpdates(PropertyUpdatesKeyT&& key, PropertyUpdatesValueT&& value) {
109 m_propertyUpdatesHasBeenSet = true;
110 m_propertyUpdates.emplace(std::forward<PropertyUpdatesKeyT>(key), std::forward<PropertyUpdatesValueT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Map<Aws::String, ComponentPropertyGroupRequest>& GetPropertyGroupUpdates() const { return m_propertyGroupUpdates; }
120 inline bool PropertyGroupUpdatesHasBeenSet() const { return m_propertyGroupUpdatesHasBeenSet; }
121 template <typename PropertyGroupUpdatesT = Aws::Map<Aws::String, ComponentPropertyGroupRequest>>
122 void SetPropertyGroupUpdates(PropertyGroupUpdatesT&& value) {
123 m_propertyGroupUpdatesHasBeenSet = true;
124 m_propertyGroupUpdates = std::forward<PropertyGroupUpdatesT>(value);
125 }
126 template <typename PropertyGroupUpdatesT = Aws::Map<Aws::String, ComponentPropertyGroupRequest>>
127 ComponentUpdateRequest& WithPropertyGroupUpdates(PropertyGroupUpdatesT&& value) {
128 SetPropertyGroupUpdates(std::forward<PropertyGroupUpdatesT>(value));
129 return *this;
130 }
131 template <typename PropertyGroupUpdatesKeyT = Aws::String, typename PropertyGroupUpdatesValueT = ComponentPropertyGroupRequest>
132 ComponentUpdateRequest& AddPropertyGroupUpdates(PropertyGroupUpdatesKeyT&& key, PropertyGroupUpdatesValueT&& value) {
133 m_propertyGroupUpdatesHasBeenSet = true;
134 m_propertyGroupUpdates.emplace(std::forward<PropertyGroupUpdatesKeyT>(key), std::forward<PropertyGroupUpdatesValueT>(value));
135 return *this;
136 }
138 private:
140
141 Aws::String m_description;
142
143 Aws::String m_componentTypeId;
144
146
148 bool m_updateTypeHasBeenSet = false;
149 bool m_descriptionHasBeenSet = false;
150 bool m_componentTypeIdHasBeenSet = false;
151 bool m_propertyUpdatesHasBeenSet = false;
152 bool m_propertyGroupUpdatesHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace IoTTwinMaker
157} // namespace Aws
ComponentUpdateRequest & WithPropertyUpdates(PropertyUpdatesT &&value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, ComponentPropertyGroupRequest > & GetPropertyGroupUpdates() const
ComponentUpdateRequest & AddPropertyUpdates(PropertyUpdatesKeyT &&key, PropertyUpdatesValueT &&value)
const Aws::Map< Aws::String, PropertyRequest > & GetPropertyUpdates() const
void SetPropertyGroupUpdates(PropertyGroupUpdatesT &&value)
ComponentUpdateRequest & WithDescription(DescriptionT &&value)
ComponentUpdateRequest & WithUpdateType(ComponentUpdateType value)
AWS_IOTTWINMAKER_API ComponentUpdateRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTWINMAKER_API ComponentUpdateRequest()=default
ComponentUpdateRequest & AddPropertyGroupUpdates(PropertyGroupUpdatesKeyT &&key, PropertyGroupUpdatesValueT &&value)
ComponentUpdateRequest & WithPropertyGroupUpdates(PropertyGroupUpdatesT &&value)
AWS_IOTTWINMAKER_API ComponentUpdateRequest(Aws::Utils::Json::JsonView jsonValue)
ComponentUpdateRequest & WithComponentTypeId(ComponentTypeIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue