AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
ComponentRequest.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/PropertyRequest.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTTwinMaker {
23namespace Model {
24
32 public:
33 AWS_IOTTWINMAKER_API ComponentRequest() = default;
34 AWS_IOTTWINMAKER_API ComponentRequest(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTTWINMAKER_API ComponentRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetDescription() const { return m_description; }
43 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
44 template <typename DescriptionT = Aws::String>
45 void SetDescription(DescriptionT&& value) {
46 m_descriptionHasBeenSet = true;
47 m_description = std::forward<DescriptionT>(value);
48 }
49 template <typename DescriptionT = Aws::String>
50 ComponentRequest& WithDescription(DescriptionT&& value) {
51 SetDescription(std::forward<DescriptionT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetComponentTypeId() const { return m_componentTypeId; }
61 inline bool ComponentTypeIdHasBeenSet() const { return m_componentTypeIdHasBeenSet; }
62 template <typename ComponentTypeIdT = Aws::String>
63 void SetComponentTypeId(ComponentTypeIdT&& value) {
64 m_componentTypeIdHasBeenSet = true;
65 m_componentTypeId = std::forward<ComponentTypeIdT>(value);
66 }
67 template <typename ComponentTypeIdT = Aws::String>
68 ComponentRequest& WithComponentTypeId(ComponentTypeIdT&& value) {
69 SetComponentTypeId(std::forward<ComponentTypeIdT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::Map<Aws::String, PropertyRequest>& GetProperties() const { return m_properties; }
80 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
81 template <typename PropertiesT = Aws::Map<Aws::String, PropertyRequest>>
82 void SetProperties(PropertiesT&& value) {
83 m_propertiesHasBeenSet = true;
84 m_properties = std::forward<PropertiesT>(value);
85 }
86 template <typename PropertiesT = Aws::Map<Aws::String, PropertyRequest>>
87 ComponentRequest& WithProperties(PropertiesT&& value) {
88 SetProperties(std::forward<PropertiesT>(value));
89 return *this;
90 }
91 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = PropertyRequest>
92 ComponentRequest& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
93 m_propertiesHasBeenSet = true;
94 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Map<Aws::String, ComponentPropertyGroupRequest>& GetPropertyGroups() const { return m_propertyGroups; }
104 inline bool PropertyGroupsHasBeenSet() const { return m_propertyGroupsHasBeenSet; }
105 template <typename PropertyGroupsT = Aws::Map<Aws::String, ComponentPropertyGroupRequest>>
106 void SetPropertyGroups(PropertyGroupsT&& value) {
107 m_propertyGroupsHasBeenSet = true;
108 m_propertyGroups = std::forward<PropertyGroupsT>(value);
109 }
110 template <typename PropertyGroupsT = Aws::Map<Aws::String, ComponentPropertyGroupRequest>>
111 ComponentRequest& WithPropertyGroups(PropertyGroupsT&& value) {
112 SetPropertyGroups(std::forward<PropertyGroupsT>(value));
113 return *this;
114 }
115 template <typename PropertyGroupsKeyT = Aws::String, typename PropertyGroupsValueT = ComponentPropertyGroupRequest>
116 ComponentRequest& AddPropertyGroups(PropertyGroupsKeyT&& key, PropertyGroupsValueT&& value) {
117 m_propertyGroupsHasBeenSet = true;
118 m_propertyGroups.emplace(std::forward<PropertyGroupsKeyT>(key), std::forward<PropertyGroupsValueT>(value));
119 return *this;
120 }
122 private:
123 Aws::String m_description;
124
125 Aws::String m_componentTypeId;
126
128
130 bool m_descriptionHasBeenSet = false;
131 bool m_componentTypeIdHasBeenSet = false;
132 bool m_propertiesHasBeenSet = false;
133 bool m_propertyGroupsHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace IoTTwinMaker
138} // namespace Aws
const Aws::Map< Aws::String, PropertyRequest > & GetProperties() const
AWS_IOTTWINMAKER_API ComponentRequest(Aws::Utils::Json::JsonView jsonValue)
ComponentRequest & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
void SetComponentTypeId(ComponentTypeIdT &&value)
const Aws::String & GetComponentTypeId() const
AWS_IOTTWINMAKER_API ComponentRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentRequest & WithPropertyGroups(PropertyGroupsT &&value)
void SetPropertyGroups(PropertyGroupsT &&value)
ComponentRequest & WithComponentTypeId(ComponentTypeIdT &&value)
const Aws::Map< Aws::String, ComponentPropertyGroupRequest > & GetPropertyGroups() const
ComponentRequest & AddPropertyGroups(PropertyGroupsKeyT &&key, PropertyGroupsValueT &&value)
AWS_IOTTWINMAKER_API ComponentRequest()=default
const Aws::String & GetDescription() const
ComponentRequest & WithProperties(PropertiesT &&value)
ComponentRequest & WithDescription(DescriptionT &&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