AWS SDK for C++  1.9.97
AWS SDK for C++
ListPackagesForDomainRequest.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 ElasticsearchService
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 "ListPackagesForDomain"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
48  inline const Aws::String& GetDomainName() const{ return m_domainName; }
49 
53  inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
54 
58  inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
59 
63  inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
64 
68  inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
69 
73  inline ListPackagesForDomainRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
74 
78  inline ListPackagesForDomainRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
79 
83  inline ListPackagesForDomainRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
84 
85 
89  inline int GetMaxResults() const{ return m_maxResults; }
90 
94  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
95 
99  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
100 
104  inline ListPackagesForDomainRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
105 
106 
111  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
112 
117  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
118 
123  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
124 
129  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
130 
135  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
136 
141  inline ListPackagesForDomainRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
142 
147  inline ListPackagesForDomainRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
148 
153  inline ListPackagesForDomainRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
154 
155  private:
156 
157  Aws::String m_domainName;
158  bool m_domainNameHasBeenSet;
159 
160  int m_maxResults;
161  bool m_maxResultsHasBeenSet;
162 
163  Aws::String m_nextToken;
164  bool m_nextTokenHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace ElasticsearchService
169 } // namespace Aws
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Http::URI
Definition: URI.h:32
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListPackagesForDomainRequest.h:94
Aws::ElasticsearchService::ElasticsearchServiceRequest
Definition: ElasticsearchServiceRequest.h:17
ElasticsearchServiceRequest.h
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::ListPackagesForDomainRequest
ListPackagesForDomainRequest()
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::WithMaxResults
ListPackagesForDomainRequest & WithMaxResults(int value)
Definition: ListPackagesForDomainRequest.h:104
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::WithNextToken
ListPackagesForDomainRequest & WithNextToken(const Aws::String &value)
Definition: ListPackagesForDomainRequest.h:141
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPackagesForDomainRequest.h:111
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::SetDomainName
void SetDomainName(Aws::String &&value)
Definition: ListPackagesForDomainRequest.h:63
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListPackagesForDomainRequest.h:99
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::SetDomainName
void SetDomainName(const char *value)
Definition: ListPackagesForDomainRequest.h:68
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest
Definition: ListPackagesForDomainRequest.h:30
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::WithNextToken
ListPackagesForDomainRequest & WithNextToken(Aws::String &&value)
Definition: ListPackagesForDomainRequest.h:147
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::WithDomainName
ListPackagesForDomainRequest & WithDomainName(const char *value)
Definition: ListPackagesForDomainRequest.h:83
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListPackagesForDomainRequest.h:135
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPackagesForDomainRequest.h:129
AWSString.h
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::GetDomainName
const Aws::String & GetDomainName() const
Definition: ListPackagesForDomainRequest.h:48
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::WithNextToken
ListPackagesForDomainRequest & WithNextToken(const char *value)
Definition: ListPackagesForDomainRequest.h:153
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::WithDomainName
ListPackagesForDomainRequest & WithDomainName(Aws::String &&value)
Definition: ListPackagesForDomainRequest.h:78
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPackagesForDomainRequest.h:123
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListPackagesForDomainRequest.h:117
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListPackagesForDomainRequest.h:38
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::DomainNameHasBeenSet
bool DomainNameHasBeenSet() const
Definition: ListPackagesForDomainRequest.h:53
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::WithDomainName
ListPackagesForDomainRequest & WithDomainName(const Aws::String &value)
Definition: ListPackagesForDomainRequest.h:73
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::GetMaxResults
int GetMaxResults() const
Definition: ListPackagesForDomainRequest.h:89
Aws::ElasticsearchService::Model::ListPackagesForDomainRequest::SetDomainName
void SetDomainName(const Aws::String &value)
Definition: ListPackagesForDomainRequest.h:58