AWS SDK for C++  1.9.108
AWS SDK for C++
ListJobsRequest.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 "ListJobs"; }
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 ListJobsRequest& 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 ListJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
99 
105  inline ListJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
106 
112  inline ListJobsRequest& 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::ListJobsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListJobsRequest.h:77
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Snowball::Model::ListJobsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListJobsRequest.h:45
Aws::Snowball::Model::ListJobsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListJobsRequest.h:91
Aws::Snowball::Model::ListJobsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListJobsRequest.h:84
Aws::Snowball::Model::ListJobsRequest::WithNextToken
ListJobsRequest & WithNextToken(const Aws::String &value)
Definition: ListJobsRequest.h:98
AWS_SNOWBALL_API
#define AWS_SNOWBALL_API
Definition: Snowball_EXPORTS.h:28
Aws::Snowball::Model::ListJobsRequest::WithNextToken
ListJobsRequest & WithNextToken(const char *value)
Definition: ListJobsRequest.h:112
SnowballRequest.h
Aws::Snowball::Model::ListJobsRequest::ListJobsRequest
ListJobsRequest()
Aws::Snowball::Model::ListJobsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Snowball::Model::ListJobsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListJobsRequest.h:40
Aws::Snowball::Model::ListJobsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListJobsRequest.h:50
Aws::Snowball::Model::ListJobsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListJobsRequest.h:70
AWSString.h
Aws::Snowball::Model::ListJobsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Snowball::SnowballRequest
Definition: SnowballRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::Snowball::Model::ListJobsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListJobsRequest.h:30
Aws::Snowball::Model::ListJobsRequest::WithMaxResults
ListJobsRequest & WithMaxResults(int value)
Definition: ListJobsRequest.h:55
Aws::Snowball::Model::ListJobsRequest::WithNextToken
ListJobsRequest & WithNextToken(Aws::String &&value)
Definition: ListJobsRequest.h:105
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Snowball::Model::ListJobsRequest
Definition: ListJobsRequest.h:22
Snowball_EXPORTS.h
Aws::Snowball::Model::ListJobsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListJobsRequest.h:63