AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateGroupResult.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/resource-groups/ResourceGroups_EXPORTS.h>
10#include <aws/resource-groups/model/Group.h>
11#include <aws/resource-groups/model/GroupConfiguration.h>
12#include <aws/resource-groups/model/ResourceQuery.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace ResourceGroups {
26namespace Model {
28 public:
29 AWS_RESOURCEGROUPS_API CreateGroupResult() = default;
32
34
37 inline const Group& GetGroup() const { return m_group; }
38 template <typename GroupT = Group>
39 void SetGroup(GroupT&& value) {
40 m_groupHasBeenSet = true;
41 m_group = std::forward<GroupT>(value);
42 }
43 template <typename GroupT = Group>
44 CreateGroupResult& WithGroup(GroupT&& value) {
45 SetGroup(std::forward<GroupT>(value));
46 return *this;
47 }
49
51
57 inline const ResourceQuery& GetResourceQuery() const { return m_resourceQuery; }
58 template <typename ResourceQueryT = ResourceQuery>
59 void SetResourceQuery(ResourceQueryT&& value) {
60 m_resourceQueryHasBeenSet = true;
61 m_resourceQuery = std::forward<ResourceQueryT>(value);
62 }
63 template <typename ResourceQueryT = ResourceQuery>
64 CreateGroupResult& WithResourceQuery(ResourceQueryT&& value) {
65 SetResourceQuery(std::forward<ResourceQueryT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
75 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
76 void SetTags(TagsT&& value) {
77 m_tagsHasBeenSet = true;
78 m_tags = std::forward<TagsT>(value);
79 }
80 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
81 CreateGroupResult& WithTags(TagsT&& value) {
82 SetTags(std::forward<TagsT>(value));
83 return *this;
84 }
85 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
86 CreateGroupResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
87 m_tagsHasBeenSet = true;
88 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
89 return *this;
90 }
92
94
100 inline const GroupConfiguration& GetGroupConfiguration() const { return m_groupConfiguration; }
101 template <typename GroupConfigurationT = GroupConfiguration>
102 void SetGroupConfiguration(GroupConfigurationT&& value) {
103 m_groupConfigurationHasBeenSet = true;
104 m_groupConfiguration = std::forward<GroupConfigurationT>(value);
105 }
106 template <typename GroupConfigurationT = GroupConfiguration>
107 CreateGroupResult& WithGroupConfiguration(GroupConfigurationT&& value) {
108 SetGroupConfiguration(std::forward<GroupConfigurationT>(value));
109 return *this;
110 }
112
114
115 inline const Aws::String& GetRequestId() const { return m_requestId; }
116 template <typename RequestIdT = Aws::String>
117 void SetRequestId(RequestIdT&& value) {
118 m_requestIdHasBeenSet = true;
119 m_requestId = std::forward<RequestIdT>(value);
120 }
121 template <typename RequestIdT = Aws::String>
122 CreateGroupResult& WithRequestId(RequestIdT&& value) {
123 SetRequestId(std::forward<RequestIdT>(value));
124 return *this;
125 }
127 private:
128 Group m_group;
129
130 ResourceQuery m_resourceQuery;
131
133
134 GroupConfiguration m_groupConfiguration;
135
136 Aws::String m_requestId;
137 bool m_groupHasBeenSet = false;
138 bool m_resourceQueryHasBeenSet = false;
139 bool m_tagsHasBeenSet = false;
140 bool m_groupConfigurationHasBeenSet = false;
141 bool m_requestIdHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace ResourceGroups
146} // namespace Aws
CreateGroupResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const GroupConfiguration & GetGroupConfiguration() const
CreateGroupResult & WithGroupConfiguration(GroupConfigurationT &&value)
AWS_RESOURCEGROUPS_API CreateGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateGroupResult & WithRequestId(RequestIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_RESOURCEGROUPS_API CreateGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const ResourceQuery & GetResourceQuery() const
void SetGroupConfiguration(GroupConfigurationT &&value)
CreateGroupResult & WithGroup(GroupT &&value)
CreateGroupResult & WithTags(TagsT &&value)
CreateGroupResult & WithResourceQuery(ResourceQueryT &&value)
AWS_RESOURCEGROUPS_API CreateGroupResult()=default
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