AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
46 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
47 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
48 inline ListSessionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
49 inline ListSessionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
50 inline ListSessionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
52
54
57 inline int GetMaxResults() const{ return m_maxResults; }
58 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
59 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
60 inline ListSessionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
62
64
67 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
68 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
69 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
70 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
71 inline ListSessionsRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
72 inline ListSessionsRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
73 inline ListSessionsRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
74 inline ListSessionsRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
75 inline ListSessionsRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
76 inline ListSessionsRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
77 inline ListSessionsRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
78 inline ListSessionsRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
79 inline ListSessionsRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
81
83
86 inline const Aws::String& GetRequestOrigin() const{ return m_requestOrigin; }
87 inline bool RequestOriginHasBeenSet() const { return m_requestOriginHasBeenSet; }
88 inline void SetRequestOrigin(const Aws::String& value) { m_requestOriginHasBeenSet = true; m_requestOrigin = value; }
89 inline void SetRequestOrigin(Aws::String&& value) { m_requestOriginHasBeenSet = true; m_requestOrigin = std::move(value); }
90 inline void SetRequestOrigin(const char* value) { m_requestOriginHasBeenSet = true; m_requestOrigin.assign(value); }
91 inline ListSessionsRequest& WithRequestOrigin(const Aws::String& value) { SetRequestOrigin(value); return *this;}
92 inline ListSessionsRequest& WithRequestOrigin(Aws::String&& value) { SetRequestOrigin(std::move(value)); return *this;}
93 inline ListSessionsRequest& WithRequestOrigin(const char* value) { SetRequestOrigin(value); return *this;}
95 private:
96
97 Aws::String m_nextToken;
98 bool m_nextTokenHasBeenSet = false;
99
100 int m_maxResults;
101 bool m_maxResultsHasBeenSet = false;
102
104 bool m_tagsHasBeenSet = false;
105
106 Aws::String m_requestOrigin;
107 bool m_requestOriginHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Glue
112} // namespace Aws
const Aws::String & GetRequestOrigin() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ListSessionsRequest & AddTags(Aws::String &&key, const Aws::String &value)
AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListSessionsRequest & AddTags(const Aws::String &key, const Aws::String &value)
void SetRequestOrigin(Aws::String &&value)
AWS_GLUE_API Aws::String SerializePayload() const override
ListSessionsRequest & WithMaxResults(int value)
ListSessionsRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
ListSessionsRequest & WithRequestOrigin(const char *value)
ListSessionsRequest & WithRequestOrigin(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
ListSessionsRequest & WithNextToken(const char *value)
ListSessionsRequest & WithRequestOrigin(const Aws::String &value)
ListSessionsRequest & AddTags(Aws::String &&key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
ListSessionsRequest & AddTags(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetNextToken(const Aws::String &value)
ListSessionsRequest & AddTags(Aws::String &&key, const char *value)
ListSessionsRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
ListSessionsRequest & AddTags(const Aws::String &key, Aws::String &&value)
ListSessionsRequest & AddTags(const char *key, Aws::String &&value)
const Aws::String & GetNextToken() const
ListSessionsRequest & WithNextToken(const Aws::String &value)
ListSessionsRequest & WithNextToken(Aws::String &&value)
void SetRequestOrigin(const Aws::String &value)
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