AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ListSessionsRequest.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/mpa/MPARequest.h>
10#include <aws/mpa/MPA_EXPORTS.h>
11#include <aws/mpa/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace MPA {
17namespace Model {
18
22 public:
23 AWS_MPA_API ListSessionsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ListSessions"; }
30
31 AWS_MPA_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetApprovalTeamArn() const { return m_approvalTeamArn; }
38 inline bool ApprovalTeamArnHasBeenSet() const { return m_approvalTeamArnHasBeenSet; }
39 template <typename ApprovalTeamArnT = Aws::String>
40 void SetApprovalTeamArn(ApprovalTeamArnT&& value) {
41 m_approvalTeamArnHasBeenSet = true;
42 m_approvalTeamArn = std::forward<ApprovalTeamArnT>(value);
43 }
44 template <typename ApprovalTeamArnT = Aws::String>
45 ListSessionsRequest& WithApprovalTeamArn(ApprovalTeamArnT&& value) {
46 SetApprovalTeamArn(std::forward<ApprovalTeamArnT>(value));
47 return *this;
48 }
50
52
57 inline int GetMaxResults() const { return m_maxResults; }
58 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
59 inline void SetMaxResults(int value) {
60 m_maxResultsHasBeenSet = true;
61 m_maxResults = value;
62 }
64 SetMaxResults(value);
65 return *this;
66 }
68
70
76 inline const Aws::String& GetNextToken() const { return m_nextToken; }
77 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
78 template <typename NextTokenT = Aws::String>
79 void SetNextToken(NextTokenT&& value) {
80 m_nextTokenHasBeenSet = true;
81 m_nextToken = std::forward<NextTokenT>(value);
82 }
83 template <typename NextTokenT = Aws::String>
84 ListSessionsRequest& WithNextToken(NextTokenT&& value) {
85 SetNextToken(std::forward<NextTokenT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
96 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
97 template <typename FiltersT = Aws::Vector<Filter>>
98 void SetFilters(FiltersT&& value) {
99 m_filtersHasBeenSet = true;
100 m_filters = std::forward<FiltersT>(value);
101 }
102 template <typename FiltersT = Aws::Vector<Filter>>
103 ListSessionsRequest& WithFilters(FiltersT&& value) {
104 SetFilters(std::forward<FiltersT>(value));
105 return *this;
106 }
107 template <typename FiltersT = Filter>
108 ListSessionsRequest& AddFilters(FiltersT&& value) {
109 m_filtersHasBeenSet = true;
110 m_filters.emplace_back(std::forward<FiltersT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_approvalTeamArn;
116
117 int m_maxResults{0};
118
119 Aws::String m_nextToken;
120
121 Aws::Vector<Filter> m_filters;
122 bool m_approvalTeamArnHasBeenSet = false;
123 bool m_maxResultsHasBeenSet = false;
124 bool m_nextTokenHasBeenSet = false;
125 bool m_filtersHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace MPA
130} // namespace Aws
ListSessionsRequest & WithNextToken(NextTokenT &&value)
AWS_MPA_API ListSessionsRequest()=default
ListSessionsRequest & WithMaxResults(int value)
const Aws::String & GetNextToken() const
ListSessionsRequest & WithFilters(FiltersT &&value)
const Aws::Vector< Filter > & GetFilters() const
ListSessionsRequest & WithApprovalTeamArn(ApprovalTeamArnT &&value)
void SetApprovalTeamArn(ApprovalTeamArnT &&value)
AWS_MPA_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
const Aws::String & GetApprovalTeamArn() const
ListSessionsRequest & AddFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector