AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListJobsResult.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3control/model/JobListDescriptor.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Xml
21{
22 class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace S3Control
26{
27namespace Model
28{
30 {
31 public:
32 AWS_S3CONTROL_API ListJobsResult() = default;
35
36
38
43 inline const Aws::String& GetNextToken() const { return m_nextToken; }
44 template<typename NextTokenT = Aws::String>
45 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
46 template<typename NextTokenT = Aws::String>
47 ListJobsResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
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) { m_jobsHasBeenSet = true; m_jobs = std::forward<JobsT>(value); }
58 template<typename JobsT = Aws::Vector<JobListDescriptor>>
59 ListJobsResult& WithJobs(JobsT&& value) { SetJobs(std::forward<JobsT>(value)); return *this;}
60 template<typename JobsT = JobListDescriptor>
61 ListJobsResult& AddJobs(JobsT&& value) { m_jobsHasBeenSet = true; m_jobs.emplace_back(std::forward<JobsT>(value)); return *this; }
63
65
68 inline const Aws::String& GetRequestId() const { return m_requestId; }
69 template<typename RequestIdT = Aws::String>
70 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
71 template<typename RequestIdT = Aws::String>
72 ListJobsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
74
76
79 inline const Aws::String& GetHostId() const { return m_hostId; }
80 template<typename HostIdT = Aws::String>
81 void SetHostId(HostIdT&& value) { m_hostIdHasBeenSet = true; m_hostId = std::forward<HostIdT>(value); }
82 template<typename HostIdT = Aws::String>
83 ListJobsResult& WithHostId(HostIdT&& value) { SetHostId(std::forward<HostIdT>(value)); return *this;}
85 private:
86
87 Aws::String m_nextToken;
88 bool m_nextTokenHasBeenSet = false;
89
91 bool m_jobsHasBeenSet = false;
92
93 Aws::String m_requestId;
94 bool m_requestIdHasBeenSet = false;
95
96 Aws::String m_hostId;
97 bool m_hostIdHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace S3Control
102} // 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