AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateGroupResult.h
1
6#pragma once
7#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
8#include <aws/resource-groups/model/Group.h>
9#include <aws/resource-groups/model/ResourceQuery.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/resource-groups/model/GroupConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace ResourceGroups
28{
29namespace Model
30{
32 {
33 public:
34 AWS_RESOURCEGROUPS_API CreateGroupResult() = default;
37
38
40
43 inline const Group& GetGroup() const { return m_group; }
44 template<typename GroupT = Group>
45 void SetGroup(GroupT&& value) { m_groupHasBeenSet = true; m_group = std::forward<GroupT>(value); }
46 template<typename GroupT = Group>
47 CreateGroupResult& WithGroup(GroupT&& value) { SetGroup(std::forward<GroupT>(value)); return *this;}
49
51
57 inline const ResourceQuery& GetResourceQuery() const { return m_resourceQuery; }
58 template<typename ResourceQueryT = ResourceQuery>
59 void SetResourceQuery(ResourceQueryT&& value) { m_resourceQueryHasBeenSet = true; m_resourceQuery = std::forward<ResourceQueryT>(value); }
60 template<typename ResourceQueryT = ResourceQuery>
61 CreateGroupResult& WithResourceQuery(ResourceQueryT&& value) { SetResourceQuery(std::forward<ResourceQueryT>(value)); return *this;}
63
65
68 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
69 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
70 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
71 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
72 CreateGroupResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
73 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
74 CreateGroupResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
75 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
76 }
78
80
86 inline const GroupConfiguration& GetGroupConfiguration() const { return m_groupConfiguration; }
87 template<typename GroupConfigurationT = GroupConfiguration>
88 void SetGroupConfiguration(GroupConfigurationT&& value) { m_groupConfigurationHasBeenSet = true; m_groupConfiguration = std::forward<GroupConfigurationT>(value); }
89 template<typename GroupConfigurationT = GroupConfiguration>
90 CreateGroupResult& WithGroupConfiguration(GroupConfigurationT&& value) { SetGroupConfiguration(std::forward<GroupConfigurationT>(value)); return *this;}
92
94
95 inline const Aws::String& GetRequestId() const { return m_requestId; }
96 template<typename RequestIdT = Aws::String>
97 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
98 template<typename RequestIdT = Aws::String>
99 CreateGroupResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
101 private:
102
103 Group m_group;
104 bool m_groupHasBeenSet = false;
105
106 ResourceQuery m_resourceQuery;
107 bool m_resourceQueryHasBeenSet = false;
108
110 bool m_tagsHasBeenSet = false;
111
112 GroupConfiguration m_groupConfiguration;
113 bool m_groupConfigurationHasBeenSet = false;
114
115 Aws::String m_requestId;
116 bool m_requestIdHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace ResourceGroups
121} // 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