AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ListJobsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3control/S3Control_EXPORTS.h>
11#include <aws/s3control/model/JobListDescriptor.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace S3Control {
25namespace Model {
27 public:
28 AWS_S3CONTROL_API ListJobsResult() = default;
31
33
38 inline const Aws::String& GetNextToken() const { return m_nextToken; }
39 template <typename NextTokenT = Aws::String>
40 void SetNextToken(NextTokenT&& value) {
41 m_nextTokenHasBeenSet = true;
42 m_nextToken = std::forward<NextTokenT>(value);
43 }
44 template <typename NextTokenT = Aws::String>
45 ListJobsResult& WithNextToken(NextTokenT&& value) {
46 SetNextToken(std::forward<NextTokenT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::Vector<JobListDescriptor>& GetJobs() const { return m_jobs; }
57 template <typename JobsT = Aws::Vector<JobListDescriptor>>
58 void SetJobs(JobsT&& value) {
59 m_jobsHasBeenSet = true;
60 m_jobs = std::forward<JobsT>(value);
61 }
62 template <typename JobsT = Aws::Vector<JobListDescriptor>>
63 ListJobsResult& WithJobs(JobsT&& value) {
64 SetJobs(std::forward<JobsT>(value));
65 return *this;
66 }
67 template <typename JobsT = JobListDescriptor>
68 ListJobsResult& AddJobs(JobsT&& value) {
69 m_jobsHasBeenSet = true;
70 m_jobs.emplace_back(std::forward<JobsT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetRequestId() const { return m_requestId; }
80 template <typename RequestIdT = Aws::String>
81 void SetRequestId(RequestIdT&& value) {
82 m_requestIdHasBeenSet = true;
83 m_requestId = std::forward<RequestIdT>(value);
84 }
85 template <typename RequestIdT = Aws::String>
86 ListJobsResult& WithRequestId(RequestIdT&& value) {
87 SetRequestId(std::forward<RequestIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetHostId() const { return m_hostId; }
97 template <typename HostIdT = Aws::String>
98 void SetHostId(HostIdT&& value) {
99 m_hostIdHasBeenSet = true;
100 m_hostId = std::forward<HostIdT>(value);
101 }
102 template <typename HostIdT = Aws::String>
103 ListJobsResult& WithHostId(HostIdT&& value) {
104 SetHostId(std::forward<HostIdT>(value));
105 return *this;
106 }
108 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
109
110 private:
111 Aws::String m_nextToken;
112
114
115 Aws::String m_requestId;
116
117 Aws::String m_hostId;
118 Aws::Http::HttpResponseCode m_HttpResponseCode;
119 bool m_nextTokenHasBeenSet = false;
120 bool m_jobsHasBeenSet = false;
121 bool m_requestIdHasBeenSet = false;
122 bool m_hostIdHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace S3Control
127} // namespace Aws
AWS_S3CONTROL_API ListJobsResult()=default
const Aws::Vector< JobListDescriptor > & GetJobs() const
const Aws::String & GetRequestId() const
ListJobsResult & AddJobs(JobsT &&value)
ListJobsResult & WithNextToken(NextTokenT &&value)
ListJobsResult & WithJobs(JobsT &&value)
AWS_S3CONTROL_API ListJobsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ListJobsResult & WithRequestId(RequestIdT &&value)
void SetRequestId(RequestIdT &&value)
void SetNextToken(NextTokenT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetHostId() const
ListJobsResult & WithHostId(HostIdT &&value)
const Aws::String & GetNextToken() const
AWS_S3CONTROL_API ListJobsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument