AWS SDK for C++

AWS SDK for C++ Version 1.11.780

Loading...
Searching...
No Matches
CreateGroupResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
11#include <aws/resource-groups/model/Group.h>
12#include <aws/resource-groups/model/GroupConfiguration.h>
13#include <aws/resource-groups/model/ResourceQuery.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace ResourceGroups {
27namespace Model {
29 public:
30 AWS_RESOURCEGROUPS_API CreateGroupResult() = default;
33
35
38 inline const Group& GetGroup() const { return m_group; }
39 template <typename GroupT = Group>
40 void SetGroup(GroupT&& value) {
41 m_groupHasBeenSet = true;
42 m_group = std::forward<GroupT>(value);
43 }
44 template <typename GroupT = Group>
45 CreateGroupResult& WithGroup(GroupT&& value) {
46 SetGroup(std::forward<GroupT>(value));
47 return *this;
48 }
50
52
58 inline const ResourceQuery& GetResourceQuery() const { return m_resourceQuery; }
59 template <typename ResourceQueryT = ResourceQuery>
60 void SetResourceQuery(ResourceQueryT&& value) {
61 m_resourceQueryHasBeenSet = true;
62 m_resourceQuery = std::forward<ResourceQueryT>(value);
63 }
64 template <typename ResourceQueryT = ResourceQuery>
65 CreateGroupResult& WithResourceQuery(ResourceQueryT&& value) {
66 SetResourceQuery(std::forward<ResourceQueryT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
76 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
77 void SetTags(TagsT&& value) {
78 m_tagsHasBeenSet = true;
79 m_tags = std::forward<TagsT>(value);
80 }
81 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
82 CreateGroupResult& WithTags(TagsT&& value) {
83 SetTags(std::forward<TagsT>(value));
84 return *this;
85 }
86 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
87 CreateGroupResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
88 m_tagsHasBeenSet = true;
89 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
90 return *this;
91 }
93
95
101 inline const GroupConfiguration& GetGroupConfiguration() const { return m_groupConfiguration; }
102 template <typename GroupConfigurationT = GroupConfiguration>
103 void SetGroupConfiguration(GroupConfigurationT&& value) {
104 m_groupConfigurationHasBeenSet = true;
105 m_groupConfiguration = std::forward<GroupConfigurationT>(value);
106 }
107 template <typename GroupConfigurationT = GroupConfiguration>
108 CreateGroupResult& WithGroupConfiguration(GroupConfigurationT&& value) {
109 SetGroupConfiguration(std::forward<GroupConfigurationT>(value));
110 return *this;
111 }
113
115
116 inline const Aws::String& GetRequestId() const { return m_requestId; }
117 template <typename RequestIdT = Aws::String>
118 void SetRequestId(RequestIdT&& value) {
119 m_requestIdHasBeenSet = true;
120 m_requestId = std::forward<RequestIdT>(value);
121 }
122 template <typename RequestIdT = Aws::String>
123 CreateGroupResult& WithRequestId(RequestIdT&& value) {
124 SetRequestId(std::forward<RequestIdT>(value));
125 return *this;
126 }
128 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
129
130 private:
131 Group m_group;
132
133 ResourceQuery m_resourceQuery;
134
136
137 GroupConfiguration m_groupConfiguration;
138
139 Aws::String m_requestId;
140 Aws::Http::HttpResponseCode m_HttpResponseCode;
141 bool m_groupHasBeenSet = false;
142 bool m_resourceQueryHasBeenSet = false;
143 bool m_tagsHasBeenSet = false;
144 bool m_groupConfigurationHasBeenSet = false;
145 bool m_requestIdHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace ResourceGroups
150} // namespace Aws
CreateGroupResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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