AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ListGroupsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
10#include <aws/resource-groups/model/GroupIdentifier.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace ResourceGroups {
24namespace Model {
26 public:
27 AWS_RESOURCEGROUPS_API ListGroupsResult() = default;
30
32
36 inline const Aws::Vector<GroupIdentifier>& GetGroupIdentifiers() const { return m_groupIdentifiers; }
37 template <typename GroupIdentifiersT = Aws::Vector<GroupIdentifier>>
38 void SetGroupIdentifiers(GroupIdentifiersT&& value) {
39 m_groupIdentifiersHasBeenSet = true;
40 m_groupIdentifiers = std::forward<GroupIdentifiersT>(value);
41 }
42 template <typename GroupIdentifiersT = Aws::Vector<GroupIdentifier>>
43 ListGroupsResult& WithGroupIdentifiers(GroupIdentifiersT&& value) {
44 SetGroupIdentifiers(std::forward<GroupIdentifiersT>(value));
45 return *this;
46 }
47 template <typename GroupIdentifiersT = GroupIdentifier>
48 ListGroupsResult& AddGroupIdentifiers(GroupIdentifiersT&& value) {
49 m_groupIdentifiersHasBeenSet = true;
50 m_groupIdentifiers.emplace_back(std::forward<GroupIdentifiersT>(value));
51 return *this;
52 }
54
56
63 inline const Aws::String& GetNextToken() const { return m_nextToken; }
64 template <typename NextTokenT = Aws::String>
65 void SetNextToken(NextTokenT&& value) {
66 m_nextTokenHasBeenSet = true;
67 m_nextToken = std::forward<NextTokenT>(value);
68 }
69 template <typename NextTokenT = Aws::String>
70 ListGroupsResult& WithNextToken(NextTokenT&& value) {
71 SetNextToken(std::forward<NextTokenT>(value));
72 return *this;
73 }
75
77
78 inline const Aws::String& GetRequestId() const { return m_requestId; }
79 template <typename RequestIdT = Aws::String>
80 void SetRequestId(RequestIdT&& value) {
81 m_requestIdHasBeenSet = true;
82 m_requestId = std::forward<RequestIdT>(value);
83 }
84 template <typename RequestIdT = Aws::String>
85 ListGroupsResult& WithRequestId(RequestIdT&& value) {
86 SetRequestId(std::forward<RequestIdT>(value));
87 return *this;
88 }
90 private:
91 Aws::Vector<GroupIdentifier> m_groupIdentifiers;
92
93 Aws::String m_nextToken;
94
95 Aws::String m_requestId;
96 bool m_groupIdentifiersHasBeenSet = false;
97 bool m_nextTokenHasBeenSet = false;
98 bool m_requestIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace ResourceGroups
103} // namespace Aws
AWS_RESOURCEGROUPS_API ListGroupsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListGroupsResult & AddGroupIdentifiers(GroupIdentifiersT &&value)
ListGroupsResult & WithGroupIdentifiers(GroupIdentifiersT &&value)
ListGroupsResult & WithNextToken(NextTokenT &&value)
AWS_RESOURCEGROUPS_API ListGroupsResult()=default
ListGroupsResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< GroupIdentifier > & GetGroupIdentifiers() const
void SetGroupIdentifiers(GroupIdentifiersT &&value)
AWS_RESOURCEGROUPS_API ListGroupsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue