AWS SDK for C++

AWS SDK for C++ Version 1.11.764

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/glacier/Glacier_EXPORTS.h>
11#include <aws/glacier/model/GlacierJobDescription.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Glacier {
25namespace Model {
33 public:
34 AWS_GLACIER_API ListJobsResult() = default;
37
39
43 inline const Aws::Vector<GlacierJobDescription>& GetJobList() const { return m_jobList; }
44 template <typename JobListT = Aws::Vector<GlacierJobDescription>>
45 void SetJobList(JobListT&& value) {
46 m_jobListHasBeenSet = true;
47 m_jobList = std::forward<JobListT>(value);
48 }
49 template <typename JobListT = Aws::Vector<GlacierJobDescription>>
50 ListJobsResult& WithJobList(JobListT&& value) {
51 SetJobList(std::forward<JobListT>(value));
52 return *this;
53 }
54 template <typename JobListT = GlacierJobDescription>
55 ListJobsResult& AddJobList(JobListT&& value) {
56 m_jobListHasBeenSet = true;
57 m_jobList.emplace_back(std::forward<JobListT>(value));
58 return *this;
59 }
61
63
70 inline const Aws::String& GetMarker() const { return m_marker; }
71 template <typename MarkerT = Aws::String>
72 void SetMarker(MarkerT&& value) {
73 m_markerHasBeenSet = true;
74 m_marker = std::forward<MarkerT>(value);
75 }
76 template <typename MarkerT = Aws::String>
77 ListJobsResult& WithMarker(MarkerT&& value) {
78 SetMarker(std::forward<MarkerT>(value));
79 return *this;
80 }
82
84
85 inline const Aws::String& GetRequestId() const { return m_requestId; }
86 template <typename RequestIdT = Aws::String>
87 void SetRequestId(RequestIdT&& value) {
88 m_requestIdHasBeenSet = true;
89 m_requestId = std::forward<RequestIdT>(value);
90 }
91 template <typename RequestIdT = Aws::String>
92 ListJobsResult& WithRequestId(RequestIdT&& value) {
93 SetRequestId(std::forward<RequestIdT>(value));
94 return *this;
95 }
97 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
98
99 private:
101
102 Aws::String m_marker;
103
104 Aws::String m_requestId;
105 Aws::Http::HttpResponseCode m_HttpResponseCode;
106 bool m_jobListHasBeenSet = false;
107 bool m_markerHasBeenSet = false;
108 bool m_requestIdHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace Glacier
113} // namespace Aws
AWS_GLACIER_API ListJobsResult()=default
const Aws::String & GetRequestId() const
ListJobsResult & WithJobList(JobListT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ListJobsResult & WithMarker(MarkerT &&value)
const Aws::Vector< GlacierJobDescription > & GetJobList() const
ListJobsResult & AddJobList(JobListT &&value)
AWS_GLACIER_API ListJobsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetJobList(JobListT &&value)
ListJobsResult & WithRequestId(RequestIdT &&value)
void SetRequestId(RequestIdT &&value)
AWS_GLACIER_API ListJobsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetMarker() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue