AWS SDK for C++

AWS SDK for C++ Version 1.11.746

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/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/Group.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 QuickSight {
24namespace Model {
26 public:
27 AWS_QUICKSIGHT_API ListGroupsResult() = default;
30
32
35 inline const Aws::Vector<Group>& GetGroupList() const { return m_groupList; }
36 template <typename GroupListT = Aws::Vector<Group>>
37 void SetGroupList(GroupListT&& value) {
38 m_groupListHasBeenSet = true;
39 m_groupList = std::forward<GroupListT>(value);
40 }
41 template <typename GroupListT = Aws::Vector<Group>>
42 ListGroupsResult& WithGroupList(GroupListT&& value) {
43 SetGroupList(std::forward<GroupListT>(value));
44 return *this;
45 }
46 template <typename GroupListT = Group>
47 ListGroupsResult& AddGroupList(GroupListT&& value) {
48 m_groupListHasBeenSet = true;
49 m_groupList.emplace_back(std::forward<GroupListT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetNextToken() const { return m_nextToken; }
59 template <typename NextTokenT = Aws::String>
60 void SetNextToken(NextTokenT&& value) {
61 m_nextTokenHasBeenSet = true;
62 m_nextToken = std::forward<NextTokenT>(value);
63 }
64 template <typename NextTokenT = Aws::String>
65 ListGroupsResult& WithNextToken(NextTokenT&& value) {
66 SetNextToken(std::forward<NextTokenT>(value));
67 return *this;
68 }
70
72
73 inline const Aws::String& GetRequestId() const { return m_requestId; }
74 template <typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) {
76 m_requestIdHasBeenSet = true;
77 m_requestId = std::forward<RequestIdT>(value);
78 }
79 template <typename RequestIdT = Aws::String>
80 ListGroupsResult& WithRequestId(RequestIdT&& value) {
81 SetRequestId(std::forward<RequestIdT>(value));
82 return *this;
83 }
85
87
90 inline int GetStatus() const { return m_status; }
91 inline void SetStatus(int value) {
92 m_statusHasBeenSet = true;
93 m_status = value;
94 }
95 inline ListGroupsResult& WithStatus(int value) {
96 SetStatus(value);
97 return *this;
98 }
100 private:
101 Aws::Vector<Group> m_groupList;
102
103 Aws::String m_nextToken;
104
105 Aws::String m_requestId;
106
107 int m_status{0};
108 bool m_groupListHasBeenSet = false;
109 bool m_nextTokenHasBeenSet = false;
110 bool m_requestIdHasBeenSet = false;
111 bool m_statusHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace QuickSight
116} // namespace Aws
const Aws::Vector< Group > & GetGroupList() const
const Aws::String & GetNextToken() const
ListGroupsResult & WithNextToken(NextTokenT &&value)
const Aws::String & GetRequestId() const
ListGroupsResult & AddGroupList(GroupListT &&value)
AWS_QUICKSIGHT_API ListGroupsResult()=default
ListGroupsResult & WithStatus(int value)
AWS_QUICKSIGHT_API ListGroupsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListGroupsResult & WithGroupList(GroupListT &&value)
ListGroupsResult & WithRequestId(RequestIdT &&value)
AWS_QUICKSIGHT_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