AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListSessionsRequest.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/glue/GlueRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Glue
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_GLUE_API ListSessionsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListSessions"; }
32
33 AWS_GLUE_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetNextToken() const { return m_nextToken; }
44 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
45 template<typename NextTokenT = Aws::String>
46 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
47 template<typename NextTokenT = Aws::String>
48 ListSessionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
50
52
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
65 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
66 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
67 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
68 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
69 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
70 ListSessionsRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
71 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
72 ListSessionsRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
73 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
74 }
76
78
81 inline const Aws::String& GetRequestOrigin() const { return m_requestOrigin; }
82 inline bool RequestOriginHasBeenSet() const { return m_requestOriginHasBeenSet; }
83 template<typename RequestOriginT = Aws::String>
84 void SetRequestOrigin(RequestOriginT&& value) { m_requestOriginHasBeenSet = true; m_requestOrigin = std::forward<RequestOriginT>(value); }
85 template<typename RequestOriginT = Aws::String>
86 ListSessionsRequest& WithRequestOrigin(RequestOriginT&& value) { SetRequestOrigin(std::forward<RequestOriginT>(value)); return *this;}
88 private:
89
90 Aws::String m_nextToken;
91 bool m_nextTokenHasBeenSet = false;
92
93 int m_maxResults{0};
94 bool m_maxResultsHasBeenSet = false;
95
97 bool m_tagsHasBeenSet = false;
98
99 Aws::String m_requestOrigin;
100 bool m_requestOriginHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace Glue
105} // 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