AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename AccountIdT = Aws::String>
57 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
58 template<typename AccountIdT = Aws::String>
59 ListJobsRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
61
63
67 inline const Aws::Vector<JobStatus>& GetJobStatuses() const { return m_jobStatuses; }
68 inline bool JobStatusesHasBeenSet() const { return m_jobStatusesHasBeenSet; }
69 template<typename JobStatusesT = Aws::Vector<JobStatus>>
70 void SetJobStatuses(JobStatusesT&& value) { m_jobStatusesHasBeenSet = true; m_jobStatuses = std::forward<JobStatusesT>(value); }
71 template<typename JobStatusesT = Aws::Vector<JobStatus>>
72 ListJobsRequest& WithJobStatuses(JobStatusesT&& value) { SetJobStatuses(std::forward<JobStatusesT>(value)); return *this;}
73 inline ListJobsRequest& AddJobStatuses(JobStatus value) { m_jobStatusesHasBeenSet = true; m_jobStatuses.push_back(value); return *this; }
75
77
83 inline const Aws::String& GetNextToken() const { return m_nextToken; }
84 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
85 template<typename NextTokenT = Aws::String>
86 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
87 template<typename NextTokenT = Aws::String>
88 ListJobsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
90
92
98 inline int GetMaxResults() const { return m_maxResults; }
99 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
100 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
101 inline ListJobsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
103 private:
104
105 Aws::String m_accountId;
106 bool m_accountIdHasBeenSet = false;
107
108 Aws::Vector<JobStatus> m_jobStatuses;
109 bool m_jobStatusesHasBeenSet = false;
110
111 Aws::String m_nextToken;
112 bool m_nextTokenHasBeenSet = false;
113
114 int m_maxResults{0};
115 bool m_maxResultsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace S3Control
120} // namespace Aws
virtual const char * GetServiceRequestName() const override
const Aws::Vector< JobStatus > & GetJobStatuses() const
void SetJobStatuses(JobStatusesT &&value)
AWS_S3CONTROL_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListJobsRequest & WithAccountId(AccountIdT &&value)
AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override
ListJobsRequest & WithJobStatuses(JobStatusesT &&value)
AWS_S3CONTROL_API Aws::String SerializePayload() const override
void SetNextToken(NextTokenT &&value)
AWS_S3CONTROL_API ListJobsRequest()=default
AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetAccountId(AccountIdT &&value)
ListJobsRequest & WithMaxResults(int value)
const Aws::String & GetNextToken() const
const Aws::String & GetAccountId() const
ListJobsRequest & WithNextToken(NextTokenT &&value)
ListJobsRequest & AddJobStatuses(JobStatus 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