AWS SDK for C++  1.9.116
AWS SDK for C++
ListWorkspacesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace PrometheusService
19 {
20 namespace Model
21 {
22 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "ListWorkspaces"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
49  inline const Aws::String& GetAlias() const{ return m_alias; }
50 
55  inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
56 
61  inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
62 
67  inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
68 
73  inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
74 
79  inline ListWorkspacesRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
80 
85  inline ListWorkspacesRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
86 
91  inline ListWorkspacesRequest& WithAlias(const char* value) { SetAlias(value); return *this;}
92 
93 
97  inline int GetMaxResults() const{ return m_maxResults; }
98 
102  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
103 
107  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
108 
112  inline ListWorkspacesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
113 
114 
119  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
120 
125  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
126 
131  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
132 
137  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
138 
143  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
144 
149  inline ListWorkspacesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
150 
155  inline ListWorkspacesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
156 
161  inline ListWorkspacesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
162 
163  private:
164 
165  Aws::String m_alias;
166  bool m_aliasHasBeenSet;
167 
168  int m_maxResults;
169  bool m_maxResultsHasBeenSet;
170 
171  Aws::String m_nextToken;
172  bool m_nextTokenHasBeenSet;
173  };
174 
175 } // namespace Model
176 } // namespace PrometheusService
177 } // namespace Aws
Aws::PrometheusService::Model::ListWorkspacesRequest::SetAlias
void SetAlias(const char *value)
Definition: ListWorkspacesRequest.h:73
Aws::PrometheusService::Model::ListWorkspacesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListWorkspacesRequest.h:143
Aws::PrometheusService::Model::ListWorkspacesRequest::WithAlias
ListWorkspacesRequest & WithAlias(const Aws::String &value)
Definition: ListWorkspacesRequest.h:79
Aws::PrometheusService::PrometheusServiceRequest
Definition: PrometheusServiceRequest.h:17
Aws::Http::URI
Definition: URI.h:32
Aws::PrometheusService::Model::ListWorkspacesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListWorkspacesRequest.h:97
Aws::PrometheusService::Model::ListWorkspacesRequest::WithNextToken
ListWorkspacesRequest & WithNextToken(Aws::String &&value)
Definition: ListWorkspacesRequest.h:155
Aws::PrometheusService::Model::ListWorkspacesRequest::SetAlias
void SetAlias(Aws::String &&value)
Definition: ListWorkspacesRequest.h:67
Aws::PrometheusService::Model::ListWorkspacesRequest::WithNextToken
ListWorkspacesRequest & WithNextToken(const char *value)
Definition: ListWorkspacesRequest.h:161
Aws::PrometheusService::Model::ListWorkspacesRequest::SetAlias
void SetAlias(const Aws::String &value)
Definition: ListWorkspacesRequest.h:61
Aws::PrometheusService::Model::ListWorkspacesRequest::GetAlias
const Aws::String & GetAlias() const
Definition: ListWorkspacesRequest.h:49
AWS_PROMETHEUSSERVICE_API
#define AWS_PROMETHEUSSERVICE_API
Definition: PrometheusService_EXPORTS.h:28
Aws::PrometheusService::Model::ListWorkspacesRequest::ListWorkspacesRequest
ListWorkspacesRequest()
Aws::PrometheusService::Model::ListWorkspacesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListWorkspacesRequest.h:102
Aws::PrometheusService::Model::ListWorkspacesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::PrometheusService::Model::ListWorkspacesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListWorkspacesRequest.h:131
Aws::PrometheusService::Model::ListWorkspacesRequest
Definition: ListWorkspacesRequest.h:30
Aws::PrometheusService::Model::ListWorkspacesRequest::AliasHasBeenSet
bool AliasHasBeenSet() const
Definition: ListWorkspacesRequest.h:55
Aws::PrometheusService::Model::ListWorkspacesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListWorkspacesRequest.h:125
Aws::PrometheusService::Model::ListWorkspacesRequest::SerializePayload
Aws::String SerializePayload() const override
PrometheusServiceRequest.h
AWSString.h
Aws::PrometheusService::Model::ListWorkspacesRequest::WithAlias
ListWorkspacesRequest & WithAlias(Aws::String &&value)
Definition: ListWorkspacesRequest.h:85
PrometheusService_EXPORTS.h
Aws::PrometheusService::Model::ListWorkspacesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListWorkspacesRequest.h:38
Aws::PrometheusService::Model::ListWorkspacesRequest::WithMaxResults
ListWorkspacesRequest & WithMaxResults(int value)
Definition: ListWorkspacesRequest.h:112
Aws
Definition: AccessManagementClient.h:15
Aws::PrometheusService::Model::ListWorkspacesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListWorkspacesRequest.h:107
Aws::PrometheusService::Model::ListWorkspacesRequest::WithNextToken
ListWorkspacesRequest & WithNextToken(const Aws::String &value)
Definition: ListWorkspacesRequest.h:149
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::PrometheusService::Model::ListWorkspacesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListWorkspacesRequest.h:137
Aws::PrometheusService::Model::ListWorkspacesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListWorkspacesRequest.h:119
Aws::PrometheusService::Model::ListWorkspacesRequest::WithAlias
ListWorkspacesRequest & WithAlias(const char *value)
Definition: ListWorkspacesRequest.h:91