AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeSessionsRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/ssm/model/SessionState.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ssm/model/SessionFilter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SSM
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DescribeSessions"; }
34
35 AWS_SSM_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const SessionState& GetState() const{ return m_state; }
46 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
47 inline void SetState(const SessionState& value) { m_stateHasBeenSet = true; m_state = value; }
48 inline void SetState(SessionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
49 inline DescribeSessionsRequest& WithState(const SessionState& value) { SetState(value); return *this;}
50 inline DescribeSessionsRequest& WithState(SessionState&& value) { SetState(std::move(value)); return *this;}
52
54
59 inline int GetMaxResults() const{ return m_maxResults; }
60 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
61 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
62 inline DescribeSessionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
64
66
70 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
71 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
72 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
73 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
74 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
75 inline DescribeSessionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
76 inline DescribeSessionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
77 inline DescribeSessionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
79
81
85 inline const Aws::Vector<SessionFilter>& GetFilters() const{ return m_filters; }
86 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
87 inline void SetFilters(const Aws::Vector<SessionFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
88 inline void SetFilters(Aws::Vector<SessionFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
89 inline DescribeSessionsRequest& WithFilters(const Aws::Vector<SessionFilter>& value) { SetFilters(value); return *this;}
90 inline DescribeSessionsRequest& WithFilters(Aws::Vector<SessionFilter>&& value) { SetFilters(std::move(value)); return *this;}
91 inline DescribeSessionsRequest& AddFilters(const SessionFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
92 inline DescribeSessionsRequest& AddFilters(SessionFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
94 private:
95
96 SessionState m_state;
97 bool m_stateHasBeenSet = false;
98
99 int m_maxResults;
100 bool m_maxResultsHasBeenSet = false;
101
102 Aws::String m_nextToken;
103 bool m_nextTokenHasBeenSet = false;
104
106 bool m_filtersHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace SSM
111} // namespace Aws
DescribeSessionsRequest & WithFilters(Aws::Vector< SessionFilter > &&value)
DescribeSessionsRequest & WithNextToken(Aws::String &&value)
DescribeSessionsRequest & WithState(SessionState &&value)
DescribeSessionsRequest & WithState(const SessionState &value)
virtual const char * GetServiceRequestName() const override
DescribeSessionsRequest & WithNextToken(const Aws::String &value)
DescribeSessionsRequest & WithMaxResults(int value)
DescribeSessionsRequest & AddFilters(SessionFilter &&value)
const Aws::Vector< SessionFilter > & GetFilters() const
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetFilters(const Aws::Vector< SessionFilter > &value)
DescribeSessionsRequest & WithNextToken(const char *value)
void SetFilters(Aws::Vector< SessionFilter > &&value)
DescribeSessionsRequest & WithFilters(const Aws::Vector< SessionFilter > &value)
DescribeSessionsRequest & AddFilters(const SessionFilter &value)
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