AWS SDK for C++

AWS SDK for C++ Version 1.11.689

Loading...
Searching...
No Matches
ListSessionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/GlueRequest.h>
10#include <aws/glue/Glue_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Glue {
16namespace Model {
17
21 public:
22 AWS_GLUE_API ListSessionsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListSessions"; }
29
30 AWS_GLUE_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetNextToken() const { return m_nextToken; }
40 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
41 template <typename NextTokenT = Aws::String>
42 void SetNextToken(NextTokenT&& value) {
43 m_nextTokenHasBeenSet = true;
44 m_nextToken = std::forward<NextTokenT>(value);
45 }
46 template <typename NextTokenT = Aws::String>
47 ListSessionsRequest& WithNextToken(NextTokenT&& value) {
48 SetNextToken(std::forward<NextTokenT>(value));
49 return *this;
50 }
52
54
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
73 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
74 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
75 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
76 void SetTags(TagsT&& value) {
77 m_tagsHasBeenSet = true;
78 m_tags = std::forward<TagsT>(value);
79 }
80 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
81 ListSessionsRequest& WithTags(TagsT&& value) {
82 SetTags(std::forward<TagsT>(value));
83 return *this;
84 }
85 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
86 ListSessionsRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
87 m_tagsHasBeenSet = true;
88 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetRequestOrigin() const { return m_requestOrigin; }
98 inline bool RequestOriginHasBeenSet() const { return m_requestOriginHasBeenSet; }
99 template <typename RequestOriginT = Aws::String>
100 void SetRequestOrigin(RequestOriginT&& value) {
101 m_requestOriginHasBeenSet = true;
102 m_requestOrigin = std::forward<RequestOriginT>(value);
103 }
104 template <typename RequestOriginT = Aws::String>
105 ListSessionsRequest& WithRequestOrigin(RequestOriginT&& value) {
106 SetRequestOrigin(std::forward<RequestOriginT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_nextToken;
112 bool m_nextTokenHasBeenSet = false;
113
114 int m_maxResults{0};
115 bool m_maxResultsHasBeenSet = false;
116
118 bool m_tagsHasBeenSet = false;
119
120 Aws::String m_requestOrigin;
121 bool m_requestOriginHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace Glue
126} // namespace Aws
const Aws::String & GetRequestOrigin() const
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GLUE_API Aws::String SerializePayload() const override
ListSessionsRequest & WithMaxResults(int value)
void SetRequestOrigin(RequestOriginT &&value)
AWS_GLUE_API ListSessionsRequest()=default
ListSessionsRequest & WithRequestOrigin(RequestOriginT &&value)
ListSessionsRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ListSessionsRequest & WithNextToken(NextTokenT &&value)
ListSessionsRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetNextToken() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String