AWS SDK for C++  1.9.105
AWS SDK for C++
ListWorkGroupsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Athena
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "ListWorkGroups"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
43  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
44 
51  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
52 
59  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
60 
67  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
68 
75  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
76 
83  inline ListWorkGroupsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
84 
91  inline ListWorkGroupsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
92 
99  inline ListWorkGroupsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
100 
101 
105  inline int GetMaxResults() const{ return m_maxResults; }
106 
110  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
111 
115  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
116 
120  inline ListWorkGroupsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
121 
122  private:
123 
124  Aws::String m_nextToken;
125  bool m_nextTokenHasBeenSet;
126 
127  int m_maxResults;
128  bool m_maxResultsHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace Athena
133 } // namespace Aws
Aws::Athena::Model::ListWorkGroupsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListWorkGroupsRequest.h:115
Aws::Athena::Model::ListWorkGroupsRequest::ListWorkGroupsRequest
ListWorkGroupsRequest()
Aws::Athena::Model::ListWorkGroupsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListWorkGroupsRequest.h:110
Aws::Athena::Model::ListWorkGroupsRequest::WithNextToken
ListWorkGroupsRequest & WithNextToken(const char *value)
Definition: ListWorkGroupsRequest.h:99
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Athena::Model::ListWorkGroupsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListWorkGroupsRequest.h:43
AWS_ATHENA_API
#define AWS_ATHENA_API
Definition: Athena_EXPORTS.h:28
Aws::Athena::AthenaRequest
Definition: AthenaRequest.h:17
Aws::Athena::Model::ListWorkGroupsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListWorkGroupsRequest.h:75
Aws::Athena::Model::ListWorkGroupsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListWorkGroupsRequest.h:67
Aws::Athena::Model::ListWorkGroupsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListWorkGroupsRequest.h:51
Aws::Athena::Model::ListWorkGroupsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Athena::Model::ListWorkGroupsRequest::WithNextToken
ListWorkGroupsRequest & WithNextToken(const Aws::String &value)
Definition: ListWorkGroupsRequest.h:83
Aws::Athena::Model::ListWorkGroupsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Athena::Model::ListWorkGroupsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListWorkGroupsRequest.h:105
Aws::Athena::Model::ListWorkGroupsRequest::WithNextToken
ListWorkGroupsRequest & WithNextToken(Aws::String &&value)
Definition: ListWorkGroupsRequest.h:91
Aws::Athena::Model::ListWorkGroupsRequest
Definition: ListWorkGroupsRequest.h:22
AWSString.h
Athena_EXPORTS.h
Aws::Athena::Model::ListWorkGroupsRequest::WithMaxResults
ListWorkGroupsRequest & WithMaxResults(int value)
Definition: ListWorkGroupsRequest.h:120
Aws::Athena::Model::ListWorkGroupsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListWorkGroupsRequest.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Athena::Model::ListWorkGroupsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListWorkGroupsRequest.h:59
AthenaRequest.h