AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateGroupRequest.h
1
6#pragma once
7#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
8#include <aws/resource-groups/ResourceGroupsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resource-groups/model/ResourceQuery.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/resource-groups/model/GroupConfigurationItem.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ResourceGroups
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_RESOURCEGROUPS_API CreateGroupRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateGroup"; }
35
36 AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override;
37
38
40
49 inline const Aws::String& GetName() const { return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 CreateGroupRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
56
58
62 inline const Aws::String& GetDescription() const { return m_description; }
63 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
64 template<typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
66 template<typename DescriptionT = Aws::String>
67 CreateGroupRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
69
71
79 inline const ResourceQuery& GetResourceQuery() const { return m_resourceQuery; }
80 inline bool ResourceQueryHasBeenSet() const { return m_resourceQueryHasBeenSet; }
81 template<typename ResourceQueryT = ResourceQuery>
82 void SetResourceQuery(ResourceQueryT&& value) { m_resourceQueryHasBeenSet = true; m_resourceQuery = std::forward<ResourceQueryT>(value); }
83 template<typename ResourceQueryT = ResourceQuery>
84 CreateGroupRequest& WithResourceQuery(ResourceQueryT&& value) { SetResourceQuery(std::forward<ResourceQueryT>(value)); return *this;}
86
88
91 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
94 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
95 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 CreateGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
97 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
98 CreateGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
99 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
100 }
102
104
114 inline const Aws::Vector<GroupConfigurationItem>& GetConfiguration() const { return m_configuration; }
115 inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; }
116 template<typename ConfigurationT = Aws::Vector<GroupConfigurationItem>>
117 void SetConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration = std::forward<ConfigurationT>(value); }
118 template<typename ConfigurationT = Aws::Vector<GroupConfigurationItem>>
119 CreateGroupRequest& WithConfiguration(ConfigurationT&& value) { SetConfiguration(std::forward<ConfigurationT>(value)); return *this;}
120 template<typename ConfigurationT = GroupConfigurationItem>
121 CreateGroupRequest& AddConfiguration(ConfigurationT&& value) { m_configurationHasBeenSet = true; m_configuration.emplace_back(std::forward<ConfigurationT>(value)); return *this; }
123
125
129 inline int GetCriticality() const { return m_criticality; }
130 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
131 inline void SetCriticality(int value) { m_criticalityHasBeenSet = true; m_criticality = value; }
132 inline CreateGroupRequest& WithCriticality(int value) { SetCriticality(value); return *this;}
134
136
140 inline const Aws::String& GetOwner() const { return m_owner; }
141 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
142 template<typename OwnerT = Aws::String>
143 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
144 template<typename OwnerT = Aws::String>
145 CreateGroupRequest& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
147
149
152 inline const Aws::String& GetDisplayName() const { return m_displayName; }
153 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
154 template<typename DisplayNameT = Aws::String>
155 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
156 template<typename DisplayNameT = Aws::String>
157 CreateGroupRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
159 private:
160
161 Aws::String m_name;
162 bool m_nameHasBeenSet = false;
163
164 Aws::String m_description;
165 bool m_descriptionHasBeenSet = false;
166
167 ResourceQuery m_resourceQuery;
168 bool m_resourceQueryHasBeenSet = false;
169
171 bool m_tagsHasBeenSet = false;
172
174 bool m_configurationHasBeenSet = false;
175
176 int m_criticality{0};
177 bool m_criticalityHasBeenSet = false;
178
179 Aws::String m_owner;
180 bool m_ownerHasBeenSet = false;
181
182 Aws::String m_displayName;
183 bool m_displayNameHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace ResourceGroups
188} // namespace Aws
AWS_RESOURCEGROUPS_API CreateGroupRequest()=default
CreateGroupRequest & WithCriticality(int value)
virtual const char * GetServiceRequestName() const override
CreateGroupRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_RESOURCEGROUPS_API Aws::String SerializePayload() const override
CreateGroupRequest & WithConfiguration(ConfigurationT &&value)
CreateGroupRequest & WithDisplayName(DisplayNameT &&value)
CreateGroupRequest & WithName(NameT &&value)
CreateGroupRequest & WithOwner(OwnerT &&value)
CreateGroupRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateGroupRequest & WithResourceQuery(ResourceQueryT &&value)
CreateGroupRequest & AddConfiguration(ConfigurationT &&value)
const Aws::Vector< GroupConfigurationItem > & GetConfiguration() const
CreateGroupRequest & 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
std::vector< T, Aws::Allocator< T > > Vector