AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 ComponentUpdateType GetUpdateType() const { return m_updateType; }
49 inline bool UpdateTypeHasBeenSet() const { return m_updateTypeHasBeenSet; }
50 inline void SetUpdateType(ComponentUpdateType value) { m_updateTypeHasBeenSet = true; m_updateType = value; }
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 ComponentUpdateRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
70 inline const Aws::String& GetComponentTypeId() const { return m_componentTypeId; }
71 inline bool ComponentTypeIdHasBeenSet() const { return m_componentTypeIdHasBeenSet; }
72 template<typename ComponentTypeIdT = Aws::String>
73 void SetComponentTypeId(ComponentTypeIdT&& value) { m_componentTypeIdHasBeenSet = true; m_componentTypeId = std::forward<ComponentTypeIdT>(value); }
74 template<typename ComponentTypeIdT = Aws::String>
75 ComponentUpdateRequest& WithComponentTypeId(ComponentTypeIdT&& value) { SetComponentTypeId(std::forward<ComponentTypeIdT>(value)); return *this;}
77
79
83 inline const Aws::Map<Aws::String, PropertyRequest>& GetPropertyUpdates() const { return m_propertyUpdates; }
84 inline bool PropertyUpdatesHasBeenSet() const { return m_propertyUpdatesHasBeenSet; }
85 template<typename PropertyUpdatesT = Aws::Map<Aws::String, PropertyRequest>>
86 void SetPropertyUpdates(PropertyUpdatesT&& value) { m_propertyUpdatesHasBeenSet = true; m_propertyUpdates = std::forward<PropertyUpdatesT>(value); }
87 template<typename PropertyUpdatesT = Aws::Map<Aws::String, PropertyRequest>>
88 ComponentUpdateRequest& WithPropertyUpdates(PropertyUpdatesT&& value) { SetPropertyUpdates(std::forward<PropertyUpdatesT>(value)); return *this;}
89 template<typename PropertyUpdatesKeyT = Aws::String, typename PropertyUpdatesValueT = PropertyRequest>
90 ComponentUpdateRequest& AddPropertyUpdates(PropertyUpdatesKeyT&& key, PropertyUpdatesValueT&& value) {
91 m_propertyUpdatesHasBeenSet = true; m_propertyUpdates.emplace(std::forward<PropertyUpdatesKeyT>(key), std::forward<PropertyUpdatesValueT>(value)); return *this;
92 }
94
96
99 inline const Aws::Map<Aws::String, ComponentPropertyGroupRequest>& GetPropertyGroupUpdates() const { return m_propertyGroupUpdates; }
100 inline bool PropertyGroupUpdatesHasBeenSet() const { return m_propertyGroupUpdatesHasBeenSet; }
101 template<typename PropertyGroupUpdatesT = Aws::Map<Aws::String, ComponentPropertyGroupRequest>>
102 void SetPropertyGroupUpdates(PropertyGroupUpdatesT&& value) { m_propertyGroupUpdatesHasBeenSet = true; m_propertyGroupUpdates = std::forward<PropertyGroupUpdatesT>(value); }
103 template<typename PropertyGroupUpdatesT = Aws::Map<Aws::String, ComponentPropertyGroupRequest>>
104 ComponentUpdateRequest& WithPropertyGroupUpdates(PropertyGroupUpdatesT&& value) { SetPropertyGroupUpdates(std::forward<PropertyGroupUpdatesT>(value)); return *this;}
105 template<typename PropertyGroupUpdatesKeyT = Aws::String, typename PropertyGroupUpdatesValueT = ComponentPropertyGroupRequest>
106 ComponentUpdateRequest& AddPropertyGroupUpdates(PropertyGroupUpdatesKeyT&& key, PropertyGroupUpdatesValueT&& value) {
107 m_propertyGroupUpdatesHasBeenSet = true; m_propertyGroupUpdates.emplace(std::forward<PropertyGroupUpdatesKeyT>(key), std::forward<PropertyGroupUpdatesValueT>(value)); return *this;
108 }
110 private:
111
113 bool m_updateTypeHasBeenSet = false;
114
115 Aws::String m_description;
116 bool m_descriptionHasBeenSet = false;
117
118 Aws::String m_componentTypeId;
119 bool m_componentTypeIdHasBeenSet = false;
120
122 bool m_propertyUpdatesHasBeenSet = false;
123
125 bool m_propertyGroupUpdatesHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace IoTTwinMaker
130} // 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