AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListJobsRequest.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/s3control/S3ControlRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/s3control/model/JobStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace S3Control
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_S3CONTROL_API ListJobsRequest();
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListJobs"; }
37
38 AWS_S3CONTROL_API Aws::String SerializePayload() const override;
39
40 AWS_S3CONTROL_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
43
47 AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override;
48
50
54 inline const Aws::String& GetAccountId() const{ return m_accountId; }
55 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
56 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
57 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
58 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
59 inline ListJobsRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
60 inline ListJobsRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
61 inline ListJobsRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
63
65
69 inline const Aws::Vector<JobStatus>& GetJobStatuses() const{ return m_jobStatuses; }
70 inline bool JobStatusesHasBeenSet() const { return m_jobStatusesHasBeenSet; }
71 inline void SetJobStatuses(const Aws::Vector<JobStatus>& value) { m_jobStatusesHasBeenSet = true; m_jobStatuses = value; }
72 inline void SetJobStatuses(Aws::Vector<JobStatus>&& value) { m_jobStatusesHasBeenSet = true; m_jobStatuses = std::move(value); }
73 inline ListJobsRequest& WithJobStatuses(const Aws::Vector<JobStatus>& value) { SetJobStatuses(value); return *this;}
74 inline ListJobsRequest& WithJobStatuses(Aws::Vector<JobStatus>&& value) { SetJobStatuses(std::move(value)); return *this;}
75 inline ListJobsRequest& AddJobStatuses(const JobStatus& value) { m_jobStatusesHasBeenSet = true; m_jobStatuses.push_back(value); return *this; }
76 inline ListJobsRequest& AddJobStatuses(JobStatus&& value) { m_jobStatusesHasBeenSet = true; m_jobStatuses.push_back(std::move(value)); return *this; }
78
80
86 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
87 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
88 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
89 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
90 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
91 inline ListJobsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
92 inline ListJobsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
93 inline ListJobsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
95
97
103 inline int GetMaxResults() const{ return m_maxResults; }
104 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
105 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
106 inline ListJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
108 private:
109
110 Aws::String m_accountId;
111 bool m_accountIdHasBeenSet = false;
112
113 Aws::Vector<JobStatus> m_jobStatuses;
114 bool m_jobStatusesHasBeenSet = false;
115
116 Aws::String m_nextToken;
117 bool m_nextTokenHasBeenSet = false;
118
119 int m_maxResults;
120 bool m_maxResultsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace S3Control
125} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< JobStatus > & GetJobStatuses() const
void SetJobStatuses(Aws::Vector< JobStatus > &&value)
ListJobsRequest & AddJobStatuses(const JobStatus &value)
ListJobsRequest & WithAccountId(const Aws::String &value)
ListJobsRequest & WithAccountId(const char *value)
ListJobsRequest & WithJobStatuses(const Aws::Vector< JobStatus > &value)
AWS_S3CONTROL_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
void SetNextToken(Aws::String &&value)
AWS_S3CONTROL_API Aws::String SerializePayload() const override
ListJobsRequest & WithNextToken(const char *value)
ListJobsRequest & WithAccountId(Aws::String &&value)
ListJobsRequest & WithNextToken(Aws::String &&value)
ListJobsRequest & WithJobStatuses(Aws::Vector< JobStatus > &&value)
void SetJobStatuses(const Aws::Vector< JobStatus > &value)
void SetAccountId(const Aws::String &value)
ListJobsRequest & AddJobStatuses(JobStatus &&value)
void SetNextToken(const Aws::String &value)
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListJobsRequest & WithMaxResults(int value)
const Aws::String & GetNextToken() const
ListJobsRequest & WithNextToken(const Aws::String &value)
const Aws::String & GetAccountId() const
void SetAccountId(Aws::String &&value)
Aws::Endpoint::EndpointParameters EndpointParameters
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector