AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListSessionsRequest.h
1
6#pragma once
7#include <aws/mpa/MPA_EXPORTS.h>
8#include <aws/mpa/MPARequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mpa/model/Filter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace MPA
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_MPA_API ListSessionsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListSessions"; }
33
34 AWS_MPA_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetApprovalTeamArn() const { return m_approvalTeamArn; }
42 inline bool ApprovalTeamArnHasBeenSet() const { return m_approvalTeamArnHasBeenSet; }
43 template<typename ApprovalTeamArnT = Aws::String>
44 void SetApprovalTeamArn(ApprovalTeamArnT&& value) { m_approvalTeamArnHasBeenSet = true; m_approvalTeamArn = std::forward<ApprovalTeamArnT>(value); }
45 template<typename ApprovalTeamArnT = Aws::String>
46 ListSessionsRequest& WithApprovalTeamArn(ApprovalTeamArnT&& value) { SetApprovalTeamArn(std::forward<ApprovalTeamArnT>(value)); return *this;}
48
50
55 inline int GetMaxResults() const { return m_maxResults; }
56 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
57 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
58 inline ListSessionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
60
62
68 inline const Aws::String& GetNextToken() const { return m_nextToken; }
69 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
70 template<typename NextTokenT = Aws::String>
71 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
72 template<typename NextTokenT = Aws::String>
73 ListSessionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
75
77
81 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
82 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
83 template<typename FiltersT = Aws::Vector<Filter>>
84 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
85 template<typename FiltersT = Aws::Vector<Filter>>
86 ListSessionsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
87 template<typename FiltersT = Filter>
88 ListSessionsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
90 private:
91
92 Aws::String m_approvalTeamArn;
93 bool m_approvalTeamArnHasBeenSet = false;
94
95 int m_maxResults{0};
96 bool m_maxResultsHasBeenSet = false;
97
98 Aws::String m_nextToken;
99 bool m_nextTokenHasBeenSet = false;
100
101 Aws::Vector<Filter> m_filters;
102 bool m_filtersHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace MPA
107} // 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