AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CompositeComponentUpdateRequest.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
33 public:
34 AWS_IOTTWINMAKER_API CompositeComponentUpdateRequest() = default;
37 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline ComponentUpdateType GetUpdateType() const { return m_updateType; }
44 inline bool UpdateTypeHasBeenSet() const { return m_updateTypeHasBeenSet; }
46 m_updateTypeHasBeenSet = true;
47 m_updateType = value;
48 }
50 SetUpdateType(value);
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Map<Aws::String, PropertyRequest>& GetPropertyUpdates() const { return m_propertyUpdates; }
79 inline bool PropertyUpdatesHasBeenSet() const { return m_propertyUpdatesHasBeenSet; }
80 template <typename PropertyUpdatesT = Aws::Map<Aws::String, PropertyRequest>>
81 void SetPropertyUpdates(PropertyUpdatesT&& value) {
82 m_propertyUpdatesHasBeenSet = true;
83 m_propertyUpdates = std::forward<PropertyUpdatesT>(value);
84 }
85 template <typename PropertyUpdatesT = Aws::Map<Aws::String, PropertyRequest>>
87 SetPropertyUpdates(std::forward<PropertyUpdatesT>(value));
88 return *this;
89 }
90 template <typename PropertyUpdatesKeyT = Aws::String, typename PropertyUpdatesValueT = PropertyRequest>
91 CompositeComponentUpdateRequest& AddPropertyUpdates(PropertyUpdatesKeyT&& key, PropertyUpdatesValueT&& value) {
92 m_propertyUpdatesHasBeenSet = true;
93 m_propertyUpdates.emplace(std::forward<PropertyUpdatesKeyT>(key), std::forward<PropertyUpdatesValueT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Map<Aws::String, ComponentPropertyGroupRequest>& GetPropertyGroupUpdates() const { return m_propertyGroupUpdates; }
103 inline bool PropertyGroupUpdatesHasBeenSet() const { return m_propertyGroupUpdatesHasBeenSet; }
104 template <typename PropertyGroupUpdatesT = Aws::Map<Aws::String, ComponentPropertyGroupRequest>>
105 void SetPropertyGroupUpdates(PropertyGroupUpdatesT&& value) {
106 m_propertyGroupUpdatesHasBeenSet = true;
107 m_propertyGroupUpdates = std::forward<PropertyGroupUpdatesT>(value);
108 }
109 template <typename PropertyGroupUpdatesT = Aws::Map<Aws::String, ComponentPropertyGroupRequest>>
111 SetPropertyGroupUpdates(std::forward<PropertyGroupUpdatesT>(value));
112 return *this;
113 }
114 template <typename PropertyGroupUpdatesKeyT = Aws::String, typename PropertyGroupUpdatesValueT = ComponentPropertyGroupRequest>
115 CompositeComponentUpdateRequest& AddPropertyGroupUpdates(PropertyGroupUpdatesKeyT&& key, PropertyGroupUpdatesValueT&& value) {
116 m_propertyGroupUpdatesHasBeenSet = true;
117 m_propertyGroupUpdates.emplace(std::forward<PropertyGroupUpdatesKeyT>(key), std::forward<PropertyGroupUpdatesValueT>(value));
118 return *this;
119 }
121 private:
123
124 Aws::String m_description;
125
127
129 bool m_updateTypeHasBeenSet = false;
130 bool m_descriptionHasBeenSet = false;
131 bool m_propertyUpdatesHasBeenSet = false;
132 bool m_propertyGroupUpdatesHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace IoTTwinMaker
137} // namespace Aws
CompositeComponentUpdateRequest & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, ComponentPropertyGroupRequest > & GetPropertyGroupUpdates() const
CompositeComponentUpdateRequest & WithUpdateType(ComponentUpdateType value)
CompositeComponentUpdateRequest & AddPropertyUpdates(PropertyUpdatesKeyT &&key, PropertyUpdatesValueT &&value)
CompositeComponentUpdateRequest & AddPropertyGroupUpdates(PropertyGroupUpdatesKeyT &&key, PropertyGroupUpdatesValueT &&value)
CompositeComponentUpdateRequest & WithPropertyGroupUpdates(PropertyGroupUpdatesT &&value)
const Aws::Map< Aws::String, PropertyRequest > & GetPropertyUpdates() const
CompositeComponentUpdateRequest & WithPropertyUpdates(PropertyUpdatesT &&value)
AWS_IOTTWINMAKER_API CompositeComponentUpdateRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTTWINMAKER_API CompositeComponentUpdateRequest()=default
AWS_IOTTWINMAKER_API CompositeComponentUpdateRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
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