AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CompositeComponentRequest.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 CompositeComponentRequest() = default;
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>
51 SetDescription(std::forward<DescriptionT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Map<Aws::String, PropertyRequest>& GetProperties() const { return m_properties; }
62 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
63 template <typename PropertiesT = Aws::Map<Aws::String, PropertyRequest>>
64 void SetProperties(PropertiesT&& value) {
65 m_propertiesHasBeenSet = true;
66 m_properties = std::forward<PropertiesT>(value);
67 }
68 template <typename PropertiesT = Aws::Map<Aws::String, PropertyRequest>>
70 SetProperties(std::forward<PropertiesT>(value));
71 return *this;
72 }
73 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = PropertyRequest>
74 CompositeComponentRequest& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
75 m_propertiesHasBeenSet = true;
76 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Map<Aws::String, ComponentPropertyGroupRequest>& GetPropertyGroups() const { return m_propertyGroups; }
86 inline bool PropertyGroupsHasBeenSet() const { return m_propertyGroupsHasBeenSet; }
87 template <typename PropertyGroupsT = Aws::Map<Aws::String, ComponentPropertyGroupRequest>>
88 void SetPropertyGroups(PropertyGroupsT&& value) {
89 m_propertyGroupsHasBeenSet = true;
90 m_propertyGroups = std::forward<PropertyGroupsT>(value);
91 }
92 template <typename PropertyGroupsT = Aws::Map<Aws::String, ComponentPropertyGroupRequest>>
94 SetPropertyGroups(std::forward<PropertyGroupsT>(value));
95 return *this;
96 }
97 template <typename PropertyGroupsKeyT = Aws::String, typename PropertyGroupsValueT = ComponentPropertyGroupRequest>
98 CompositeComponentRequest& AddPropertyGroups(PropertyGroupsKeyT&& key, PropertyGroupsValueT&& value) {
99 m_propertyGroupsHasBeenSet = true;
100 m_propertyGroups.emplace(std::forward<PropertyGroupsKeyT>(key), std::forward<PropertyGroupsValueT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_description;
106
108
110 bool m_descriptionHasBeenSet = false;
111 bool m_propertiesHasBeenSet = false;
112 bool m_propertyGroupsHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace IoTTwinMaker
117} // namespace Aws
CompositeComponentRequest & WithProperties(PropertiesT &&value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, PropertyRequest > & GetProperties() const
CompositeComponentRequest & WithDescription(DescriptionT &&value)
AWS_IOTTWINMAKER_API CompositeComponentRequest()=default
CompositeComponentRequest & WithPropertyGroups(PropertyGroupsT &&value)
AWS_IOTTWINMAKER_API CompositeComponentRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTWINMAKER_API CompositeComponentRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
CompositeComponentRequest & AddPropertyGroups(PropertyGroupsKeyT &&key, PropertyGroupsValueT &&value)
const Aws::Map< Aws::String, ComponentPropertyGroupRequest > & GetPropertyGroups() const
CompositeComponentRequest & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&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