AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DescribeSessionsRequest.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/ssm/SSMRequest.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/SessionFilter.h>
12#include <aws/ssm/model/SessionState.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SSM {
18namespace Model {
19
23 public:
24 AWS_SSM_API DescribeSessionsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DescribeSessions"; }
31
32 AWS_SSM_API Aws::String SerializePayload() const override;
33
35
37
41 inline SessionState GetState() const { return m_state; }
42 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
43 inline void SetState(SessionState value) {
44 m_stateHasBeenSet = true;
45 m_state = value;
46 }
48 SetState(value);
49 return *this;
50 }
52
54
59 inline int GetMaxResults() const { return m_maxResults; }
60 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
61 inline void SetMaxResults(int value) {
62 m_maxResultsHasBeenSet = true;
63 m_maxResults = value;
64 }
66 SetMaxResults(value);
67 return *this;
68 }
70
72
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>
85 SetNextToken(std::forward<NextTokenT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::Vector<SessionFilter>& GetFilters() const { return m_filters; }
96 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
97 template <typename FiltersT = Aws::Vector<SessionFilter>>
98 void SetFilters(FiltersT&& value) {
99 m_filtersHasBeenSet = true;
100 m_filters = std::forward<FiltersT>(value);
101 }
102 template <typename FiltersT = Aws::Vector<SessionFilter>>
104 SetFilters(std::forward<FiltersT>(value));
105 return *this;
106 }
107 template <typename FiltersT = SessionFilter>
109 m_filtersHasBeenSet = true;
110 m_filters.emplace_back(std::forward<FiltersT>(value));
111 return *this;
112 }
114 private:
116
117 int m_maxResults{0};
118
119 Aws::String m_nextToken;
120
122 bool m_stateHasBeenSet = false;
123 bool m_maxResultsHasBeenSet = false;
124 bool m_nextTokenHasBeenSet = false;
125 bool m_filtersHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace SSM
130} // namespace Aws
DescribeSessionsRequest & AddFilters(FiltersT &&value)
virtual const char * GetServiceRequestName() const override
DescribeSessionsRequest & WithMaxResults(int value)
DescribeSessionsRequest & WithFilters(FiltersT &&value)
DescribeSessionsRequest & WithState(SessionState value)
const Aws::Vector< SessionFilter > & GetFilters() const
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeSessionsRequest & WithNextToken(NextTokenT &&value)
AWS_SSM_API DescribeSessionsRequest()=default
AWS_SSM_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector