AWS SDK for C++  1.9.109
AWS SDK for C++
ListClustersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Snowball
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 "ListClusters"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline int GetMaxResults() const{ return m_maxResults; }
41 
45  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
46 
50  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
51 
55  inline ListClustersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
56 
57 
63  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
64 
70  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
71 
77  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
78 
84  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
85 
91  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
92 
98  inline ListClustersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
99 
105  inline ListClustersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
106 
112  inline ListClustersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
113 
114  private:
115 
116  int m_maxResults;
117  bool m_maxResultsHasBeenSet;
118 
119  Aws::String m_nextToken;
120  bool m_nextTokenHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace Snowball
125 } // namespace Aws
Aws::Snowball::Model::ListClustersRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListClustersRequest.h:91
Aws::Snowball::Model::ListClustersRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Snowball::Model::ListClustersRequest::WithMaxResults
ListClustersRequest & WithMaxResults(int value)
Definition: ListClustersRequest.h:55
Aws::Snowball::Model::ListClustersRequest
Definition: ListClustersRequest.h:22
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Snowball::Model::ListClustersRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListClustersRequest.h:77
Aws::Snowball::Model::ListClustersRequest::WithNextToken
ListClustersRequest & WithNextToken(const Aws::String &value)
Definition: ListClustersRequest.h:98
Aws::Snowball::Model::ListClustersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListClustersRequest.h:30
AWS_SNOWBALL_API
#define AWS_SNOWBALL_API
Definition: Snowball_EXPORTS.h:28
SnowballRequest.h
Aws::Snowball::Model::ListClustersRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListClustersRequest.h:84
Aws::Snowball::Model::ListClustersRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListClustersRequest.h:63
AWSString.h
Aws::Snowball::Model::ListClustersRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListClustersRequest.h:70
Aws::Snowball::Model::ListClustersRequest::GetMaxResults
int GetMaxResults() const
Definition: ListClustersRequest.h:40
Aws::Snowball::Model::ListClustersRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListClustersRequest.h:45
Aws::Snowball::SnowballRequest
Definition: SnowballRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::Snowball::Model::ListClustersRequest::WithNextToken
ListClustersRequest & WithNextToken(Aws::String &&value)
Definition: ListClustersRequest.h:105
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Snowball::Model::ListClustersRequest::WithNextToken
ListClustersRequest & WithNextToken(const char *value)
Definition: ListClustersRequest.h:112
Aws::Snowball::Model::ListClustersRequest::ListClustersRequest
ListClustersRequest()
Aws::Snowball::Model::ListClustersRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListClustersRequest.h:50
Aws::Snowball::Model::ListClustersRequest::SerializePayload
Aws::String SerializePayload() const override
Snowball_EXPORTS.h