AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComponentUpdateRequest.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/iottwinmaker/model/ComponentUpdateType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/iottwinmaker/model/PropertyRequest.h>
12#include <aws/iottwinmaker/model/ComponentPropertyGroupRequest.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace IoTTwinMaker
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_IOTTWINMAKER_API ComponentUpdateRequest();
39 AWS_IOTTWINMAKER_API ComponentUpdateRequest(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const ComponentUpdateType& GetUpdateType() const{ return m_updateType; }
49 inline bool UpdateTypeHasBeenSet() const { return m_updateTypeHasBeenSet; }
50 inline void SetUpdateType(const ComponentUpdateType& value) { m_updateTypeHasBeenSet = true; m_updateType = value; }
51 inline void SetUpdateType(ComponentUpdateType&& value) { m_updateTypeHasBeenSet = true; m_updateType = std::move(value); }
52 inline ComponentUpdateRequest& WithUpdateType(const ComponentUpdateType& value) { SetUpdateType(value); return *this;}
53 inline ComponentUpdateRequest& WithUpdateType(ComponentUpdateType&& value) { SetUpdateType(std::move(value)); return *this;}
55
57
60 inline const Aws::String& GetDescription() const{ return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
63 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
64 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
65 inline ComponentUpdateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
66 inline ComponentUpdateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
67 inline ComponentUpdateRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
69
71
74 inline const Aws::String& GetComponentTypeId() const{ return m_componentTypeId; }
75 inline bool ComponentTypeIdHasBeenSet() const { return m_componentTypeIdHasBeenSet; }
76 inline void SetComponentTypeId(const Aws::String& value) { m_componentTypeIdHasBeenSet = true; m_componentTypeId = value; }
77 inline void SetComponentTypeId(Aws::String&& value) { m_componentTypeIdHasBeenSet = true; m_componentTypeId = std::move(value); }
78 inline void SetComponentTypeId(const char* value) { m_componentTypeIdHasBeenSet = true; m_componentTypeId.assign(value); }
79 inline ComponentUpdateRequest& WithComponentTypeId(const Aws::String& value) { SetComponentTypeId(value); return *this;}
80 inline ComponentUpdateRequest& WithComponentTypeId(Aws::String&& value) { SetComponentTypeId(std::move(value)); return *this;}
81 inline ComponentUpdateRequest& WithComponentTypeId(const char* value) { SetComponentTypeId(value); return *this;}
83
85
89 inline const Aws::Map<Aws::String, PropertyRequest>& GetPropertyUpdates() const{ return m_propertyUpdates; }
90 inline bool PropertyUpdatesHasBeenSet() const { return m_propertyUpdatesHasBeenSet; }
91 inline void SetPropertyUpdates(const Aws::Map<Aws::String, PropertyRequest>& value) { m_propertyUpdatesHasBeenSet = true; m_propertyUpdates = value; }
92 inline void SetPropertyUpdates(Aws::Map<Aws::String, PropertyRequest>&& value) { m_propertyUpdatesHasBeenSet = true; m_propertyUpdates = std::move(value); }
95 inline ComponentUpdateRequest& AddPropertyUpdates(const Aws::String& key, const PropertyRequest& value) { m_propertyUpdatesHasBeenSet = true; m_propertyUpdates.emplace(key, value); return *this; }
96 inline ComponentUpdateRequest& AddPropertyUpdates(Aws::String&& key, const PropertyRequest& value) { m_propertyUpdatesHasBeenSet = true; m_propertyUpdates.emplace(std::move(key), value); return *this; }
97 inline ComponentUpdateRequest& AddPropertyUpdates(const Aws::String& key, PropertyRequest&& value) { m_propertyUpdatesHasBeenSet = true; m_propertyUpdates.emplace(key, std::move(value)); return *this; }
98 inline ComponentUpdateRequest& AddPropertyUpdates(Aws::String&& key, PropertyRequest&& value) { m_propertyUpdatesHasBeenSet = true; m_propertyUpdates.emplace(std::move(key), std::move(value)); return *this; }
99 inline ComponentUpdateRequest& AddPropertyUpdates(const char* key, PropertyRequest&& value) { m_propertyUpdatesHasBeenSet = true; m_propertyUpdates.emplace(key, std::move(value)); return *this; }
100 inline ComponentUpdateRequest& AddPropertyUpdates(const char* key, const PropertyRequest& value) { m_propertyUpdatesHasBeenSet = true; m_propertyUpdates.emplace(key, value); return *this; }
102
104
107 inline const Aws::Map<Aws::String, ComponentPropertyGroupRequest>& GetPropertyGroupUpdates() const{ return m_propertyGroupUpdates; }
108 inline bool PropertyGroupUpdatesHasBeenSet() const { return m_propertyGroupUpdatesHasBeenSet; }
109 inline void SetPropertyGroupUpdates(const Aws::Map<Aws::String, ComponentPropertyGroupRequest>& value) { m_propertyGroupUpdatesHasBeenSet = true; m_propertyGroupUpdates = value; }
110 inline void SetPropertyGroupUpdates(Aws::Map<Aws::String, ComponentPropertyGroupRequest>&& value) { m_propertyGroupUpdatesHasBeenSet = true; m_propertyGroupUpdates = std::move(value); }
113 inline ComponentUpdateRequest& AddPropertyGroupUpdates(const Aws::String& key, const ComponentPropertyGroupRequest& value) { m_propertyGroupUpdatesHasBeenSet = true; m_propertyGroupUpdates.emplace(key, value); return *this; }
114 inline ComponentUpdateRequest& AddPropertyGroupUpdates(Aws::String&& key, const ComponentPropertyGroupRequest& value) { m_propertyGroupUpdatesHasBeenSet = true; m_propertyGroupUpdates.emplace(std::move(key), value); return *this; }
115 inline ComponentUpdateRequest& AddPropertyGroupUpdates(const Aws::String& key, ComponentPropertyGroupRequest&& value) { m_propertyGroupUpdatesHasBeenSet = true; m_propertyGroupUpdates.emplace(key, std::move(value)); return *this; }
116 inline ComponentUpdateRequest& AddPropertyGroupUpdates(Aws::String&& key, ComponentPropertyGroupRequest&& value) { m_propertyGroupUpdatesHasBeenSet = true; m_propertyGroupUpdates.emplace(std::move(key), std::move(value)); return *this; }
117 inline ComponentUpdateRequest& AddPropertyGroupUpdates(const char* key, ComponentPropertyGroupRequest&& value) { m_propertyGroupUpdatesHasBeenSet = true; m_propertyGroupUpdates.emplace(key, std::move(value)); return *this; }
118 inline ComponentUpdateRequest& AddPropertyGroupUpdates(const char* key, const ComponentPropertyGroupRequest& value) { m_propertyGroupUpdatesHasBeenSet = true; m_propertyGroupUpdates.emplace(key, value); return *this; }
120 private:
121
122 ComponentUpdateType m_updateType;
123 bool m_updateTypeHasBeenSet = false;
124
125 Aws::String m_description;
126 bool m_descriptionHasBeenSet = false;
127
128 Aws::String m_componentTypeId;
129 bool m_componentTypeIdHasBeenSet = false;
130
132 bool m_propertyUpdatesHasBeenSet = false;
133
135 bool m_propertyGroupUpdatesHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace IoTTwinMaker
140} // namespace Aws
ComponentUpdateRequest & WithUpdateType(ComponentUpdateType &&value)
ComponentUpdateRequest & WithPropertyUpdates(const Aws::Map< Aws::String, PropertyRequest > &value)
void SetUpdateType(const ComponentUpdateType &value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentUpdateRequest & AddPropertyUpdates(const Aws::String &key, PropertyRequest &&value)
ComponentUpdateRequest & AddPropertyUpdates(const char *key, const PropertyRequest &value)
ComponentUpdateRequest & WithComponentTypeId(const char *value)
ComponentUpdateRequest & AddPropertyUpdates(Aws::String &&key, PropertyRequest &&value)
ComponentUpdateRequest & WithPropertyGroupUpdates(const Aws::Map< Aws::String, ComponentPropertyGroupRequest > &value)
const Aws::Map< Aws::String, ComponentPropertyGroupRequest > & GetPropertyGroupUpdates() const
ComponentUpdateRequest & WithDescription(const Aws::String &value)
const Aws::Map< Aws::String, PropertyRequest > & GetPropertyUpdates() const
ComponentUpdateRequest & AddPropertyGroupUpdates(Aws::String &&key, const ComponentPropertyGroupRequest &value)
ComponentUpdateRequest & AddPropertyGroupUpdates(Aws::String &&key, ComponentPropertyGroupRequest &&value)
ComponentUpdateRequest & WithDescription(const char *value)
ComponentUpdateRequest & AddPropertyGroupUpdates(const Aws::String &key, ComponentPropertyGroupRequest &&value)
ComponentUpdateRequest & WithDescription(Aws::String &&value)
ComponentUpdateRequest & WithPropertyUpdates(Aws::Map< Aws::String, PropertyRequest > &&value)
ComponentUpdateRequest & WithPropertyGroupUpdates(Aws::Map< Aws::String, ComponentPropertyGroupRequest > &&value)
ComponentUpdateRequest & AddPropertyUpdates(const char *key, PropertyRequest &&value)
ComponentUpdateRequest & WithUpdateType(const ComponentUpdateType &value)
AWS_IOTTWINMAKER_API ComponentUpdateRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
ComponentUpdateRequest & AddPropertyUpdates(const Aws::String &key, const PropertyRequest &value)
void SetPropertyUpdates(const Aws::Map< Aws::String, PropertyRequest > &value)
void SetPropertyGroupUpdates(Aws::Map< Aws::String, ComponentPropertyGroupRequest > &&value)
ComponentUpdateRequest & WithComponentTypeId(const Aws::String &value)
ComponentUpdateRequest & AddPropertyGroupUpdates(const char *key, ComponentPropertyGroupRequest &&value)
ComponentUpdateRequest & AddPropertyGroupUpdates(const Aws::String &key, const ComponentPropertyGroupRequest &value)
void SetPropertyUpdates(Aws::Map< Aws::String, PropertyRequest > &&value)
AWS_IOTTWINMAKER_API ComponentUpdateRequest(Aws::Utils::Json::JsonView jsonValue)
ComponentUpdateRequest & WithComponentTypeId(Aws::String &&value)
ComponentUpdateRequest & AddPropertyGroupUpdates(const char *key, const ComponentPropertyGroupRequest &value)
const ComponentUpdateType & GetUpdateType() const
ComponentUpdateRequest & AddPropertyUpdates(Aws::String &&key, const PropertyRequest &value)
void SetPropertyGroupUpdates(const Aws::Map< Aws::String, ComponentPropertyGroupRequest > &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