AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ListJobsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/s3control/S3Control_EXPORTS.h>
10#include <aws/s3control/model/JobListDescriptor.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace S3Control {
24namespace Model {
26 public:
27 AWS_S3CONTROL_API ListJobsResult() = default;
30
32
37 inline const Aws::String& GetNextToken() const { return m_nextToken; }
38 template <typename NextTokenT = Aws::String>
39 void SetNextToken(NextTokenT&& value) {
40 m_nextTokenHasBeenSet = true;
41 m_nextToken = std::forward<NextTokenT>(value);
42 }
43 template <typename NextTokenT = Aws::String>
44 ListJobsResult& WithNextToken(NextTokenT&& value) {
45 SetNextToken(std::forward<NextTokenT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::Vector<JobListDescriptor>& GetJobs() const { return m_jobs; }
56 template <typename JobsT = Aws::Vector<JobListDescriptor>>
57 void SetJobs(JobsT&& value) {
58 m_jobsHasBeenSet = true;
59 m_jobs = std::forward<JobsT>(value);
60 }
61 template <typename JobsT = Aws::Vector<JobListDescriptor>>
62 ListJobsResult& WithJobs(JobsT&& value) {
63 SetJobs(std::forward<JobsT>(value));
64 return *this;
65 }
66 template <typename JobsT = JobListDescriptor>
67 ListJobsResult& AddJobs(JobsT&& value) {
68 m_jobsHasBeenSet = true;
69 m_jobs.emplace_back(std::forward<JobsT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetRequestId() const { return m_requestId; }
79 template <typename RequestIdT = Aws::String>
80 void SetRequestId(RequestIdT&& value) {
81 m_requestIdHasBeenSet = true;
82 m_requestId = std::forward<RequestIdT>(value);
83 }
84 template <typename RequestIdT = Aws::String>
85 ListJobsResult& WithRequestId(RequestIdT&& value) {
86 SetRequestId(std::forward<RequestIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetHostId() const { return m_hostId; }
96 template <typename HostIdT = Aws::String>
97 void SetHostId(HostIdT&& value) {
98 m_hostIdHasBeenSet = true;
99 m_hostId = std::forward<HostIdT>(value);
100 }
101 template <typename HostIdT = Aws::String>
102 ListJobsResult& WithHostId(HostIdT&& value) {
103 SetHostId(std::forward<HostIdT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_nextToken;
109
111
112 Aws::String m_requestId;
113
114 Aws::String m_hostId;
115 bool m_nextTokenHasBeenSet = false;
116 bool m_jobsHasBeenSet = false;
117 bool m_requestIdHasBeenSet = false;
118 bool m_hostIdHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace S3Control
123} // 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)
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