AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
ListGroupsResult.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
8#include <aws/cognito-idp/model/GroupType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.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 CognitoIdentityProvider {
24namespace Model {
26 public:
27 AWS_COGNITOIDENTITYPROVIDER_API ListGroupsResult() = default;
28 AWS_COGNITOIDENTITYPROVIDER_API ListGroupsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
30
32
36 inline const Aws::Vector<GroupType>& GetGroups() const { return m_groups; }
37 template <typename GroupsT = Aws::Vector<GroupType>>
38 void SetGroups(GroupsT&& value) {
39 m_groupsHasBeenSet = true;
40 m_groups = std::forward<GroupsT>(value);
41 }
42 template <typename GroupsT = Aws::Vector<GroupType>>
43 ListGroupsResult& WithGroups(GroupsT&& value) {
44 SetGroups(std::forward<GroupsT>(value));
45 return *this;
46 }
47 template <typename GroupsT = GroupType>
48 ListGroupsResult& AddGroups(GroupsT&& value) {
49 m_groupsHasBeenSet = true;
50 m_groups.emplace_back(std::forward<GroupsT>(value));
51 return *this;
52 }
54
56
62 inline const Aws::String& GetNextToken() const { return m_nextToken; }
63 template <typename NextTokenT = Aws::String>
64 void SetNextToken(NextTokenT&& value) {
65 m_nextTokenHasBeenSet = true;
66 m_nextToken = std::forward<NextTokenT>(value);
67 }
68 template <typename NextTokenT = Aws::String>
69 ListGroupsResult& WithNextToken(NextTokenT&& value) {
70 SetNextToken(std::forward<NextTokenT>(value));
71 return *this;
72 }
74
76
77 inline const Aws::String& GetRequestId() const { return m_requestId; }
78 template <typename RequestIdT = Aws::String>
79 void SetRequestId(RequestIdT&& value) {
80 m_requestIdHasBeenSet = true;
81 m_requestId = std::forward<RequestIdT>(value);
82 }
83 template <typename RequestIdT = Aws::String>
84 ListGroupsResult& WithRequestId(RequestIdT&& value) {
85 SetRequestId(std::forward<RequestIdT>(value));
86 return *this;
87 }
89 private:
91
92 Aws::String m_nextToken;
93
94 Aws::String m_requestId;
95 bool m_groupsHasBeenSet = false;
96 bool m_nextTokenHasBeenSet = false;
97 bool m_requestIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace CognitoIdentityProvider
102} // namespace Aws
AWS_COGNITOIDENTITYPROVIDER_API ListGroupsResult()=default
ListGroupsResult & WithNextToken(NextTokenT &&value)
AWS_COGNITOIDENTITYPROVIDER_API ListGroupsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< GroupType > & GetGroups() const
AWS_COGNITOIDENTITYPROVIDER_API ListGroupsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListGroupsResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue