AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ComponentRequest.h
1
6#pragma once
7#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/iottwinmaker/model/PropertyRequest.h>
11#include <aws/iottwinmaker/model/ComponentPropertyGroupRequest.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoTTwinMaker
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_IOTTWINMAKER_API ComponentRequest() = default;
39 AWS_IOTTWINMAKER_API ComponentRequest(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTTWINMAKER_API ComponentRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetDescription() const { return m_description; }
49 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
50 template<typename DescriptionT = Aws::String>
51 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
52 template<typename DescriptionT = Aws::String>
53 ComponentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
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) { m_componentTypeIdHasBeenSet = true; m_componentTypeId = std::forward<ComponentTypeIdT>(value); }
64 template<typename ComponentTypeIdT = Aws::String>
65 ComponentRequest& WithComponentTypeId(ComponentTypeIdT&& value) { SetComponentTypeId(std::forward<ComponentTypeIdT>(value)); return *this;}
67
69
73 inline const Aws::Map<Aws::String, PropertyRequest>& GetProperties() const { return m_properties; }
74 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
75 template<typename PropertiesT = Aws::Map<Aws::String, PropertyRequest>>
76 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
77 template<typename PropertiesT = Aws::Map<Aws::String, PropertyRequest>>
78 ComponentRequest& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
79 template<typename PropertiesKeyT = Aws::String, typename PropertiesValueT = PropertyRequest>
80 ComponentRequest& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
81 m_propertiesHasBeenSet = true; m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value)); return *this;
82 }
84
86
89 inline const Aws::Map<Aws::String, ComponentPropertyGroupRequest>& GetPropertyGroups() const { return m_propertyGroups; }
90 inline bool PropertyGroupsHasBeenSet() const { return m_propertyGroupsHasBeenSet; }
91 template<typename PropertyGroupsT = Aws::Map<Aws::String, ComponentPropertyGroupRequest>>
92 void SetPropertyGroups(PropertyGroupsT&& value) { m_propertyGroupsHasBeenSet = true; m_propertyGroups = std::forward<PropertyGroupsT>(value); }
93 template<typename PropertyGroupsT = Aws::Map<Aws::String, ComponentPropertyGroupRequest>>
94 ComponentRequest& WithPropertyGroups(PropertyGroupsT&& value) { SetPropertyGroups(std::forward<PropertyGroupsT>(value)); return *this;}
95 template<typename PropertyGroupsKeyT = Aws::String, typename PropertyGroupsValueT = ComponentPropertyGroupRequest>
96 ComponentRequest& AddPropertyGroups(PropertyGroupsKeyT&& key, PropertyGroupsValueT&& value) {
97 m_propertyGroupsHasBeenSet = true; m_propertyGroups.emplace(std::forward<PropertyGroupsKeyT>(key), std::forward<PropertyGroupsValueT>(value)); return *this;
98 }
100 private:
101
102 Aws::String m_description;
103 bool m_descriptionHasBeenSet = false;
104
105 Aws::String m_componentTypeId;
106 bool m_componentTypeIdHasBeenSet = false;
107
109 bool m_propertiesHasBeenSet = false;
110
112 bool m_propertyGroupsHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace IoTTwinMaker
117} // 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