AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetJobOutputResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/stream/ResponseStream.h>
11#include <aws/glacier/Glacier_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Glacier {
20namespace Model {
28 public:
29 AWS_GLACIER_API GetJobOutputResult() = default;
30 AWS_GLACIER_API GetJobOutputResult(GetJobOutputResult&&) = default;
31 AWS_GLACIER_API GetJobOutputResult& operator=(GetJobOutputResult&&) = default;
32 // we delete these because Microsoft doesn't handle move generation correctly
33 // and we therefore don't trust them to get it right here either.
36
39
41
44 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
45 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
46
48
50
64 inline const Aws::String& GetChecksum() const { return m_checksum; }
65 template <typename ChecksumT = Aws::String>
66 void SetChecksum(ChecksumT&& value) {
67 m_checksumHasBeenSet = true;
68 m_checksum = std::forward<ChecksumT>(value);
69 }
70 template <typename ChecksumT = Aws::String>
71 GetJobOutputResult& WithChecksum(ChecksumT&& value) {
72 SetChecksum(std::forward<ChecksumT>(value));
73 return *this;
74 }
76
78
82 inline int GetStatus() const { return m_status; }
83 inline void SetStatus(int value) {
84 m_statusHasBeenSet = true;
85 m_status = value;
86 }
87 inline GetJobOutputResult& WithStatus(int value) {
88 SetStatus(value);
89 return *this;
90 }
92
94
99 inline const Aws::String& GetContentRange() const { return m_contentRange; }
100 template <typename ContentRangeT = Aws::String>
101 void SetContentRange(ContentRangeT&& value) {
102 m_contentRangeHasBeenSet = true;
103 m_contentRange = std::forward<ContentRangeT>(value);
104 }
105 template <typename ContentRangeT = Aws::String>
106 GetJobOutputResult& WithContentRange(ContentRangeT&& value) {
107 SetContentRange(std::forward<ContentRangeT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::String& GetAcceptRanges() const { return m_acceptRanges; }
118 template <typename AcceptRangesT = Aws::String>
119 void SetAcceptRanges(AcceptRangesT&& value) {
120 m_acceptRangesHasBeenSet = true;
121 m_acceptRanges = std::forward<AcceptRangesT>(value);
122 }
123 template <typename AcceptRangesT = Aws::String>
124 GetJobOutputResult& WithAcceptRanges(AcceptRangesT&& value) {
125 SetAcceptRanges(std::forward<AcceptRangesT>(value));
126 return *this;
127 }
129
131
138 inline const Aws::String& GetContentType() const { return m_contentType; }
139 template <typename ContentTypeT = Aws::String>
140 void SetContentType(ContentTypeT&& value) {
141 m_contentTypeHasBeenSet = true;
142 m_contentType = std::forward<ContentTypeT>(value);
143 }
144 template <typename ContentTypeT = Aws::String>
145 GetJobOutputResult& WithContentType(ContentTypeT&& value) {
146 SetContentType(std::forward<ContentTypeT>(value));
147 return *this;
148 }
150
152
155 inline const Aws::String& GetArchiveDescription() const { return m_archiveDescription; }
156 template <typename ArchiveDescriptionT = Aws::String>
157 void SetArchiveDescription(ArchiveDescriptionT&& value) {
158 m_archiveDescriptionHasBeenSet = true;
159 m_archiveDescription = std::forward<ArchiveDescriptionT>(value);
160 }
161 template <typename ArchiveDescriptionT = Aws::String>
162 GetJobOutputResult& WithArchiveDescription(ArchiveDescriptionT&& value) {
163 SetArchiveDescription(std::forward<ArchiveDescriptionT>(value));
164 return *this;
165 }
167
169
170 inline const Aws::String& GetRequestId() const { return m_requestId; }
171 template <typename RequestIdT = Aws::String>
172 void SetRequestId(RequestIdT&& value) {
173 m_requestIdHasBeenSet = true;
174 m_requestId = std::forward<RequestIdT>(value);
175 }
176 template <typename RequestIdT = Aws::String>
177 GetJobOutputResult& WithRequestId(RequestIdT&& value) {
178 SetRequestId(std::forward<RequestIdT>(value));
179 return *this;
180 }
182 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
183
184 private:
186
187 Aws::String m_checksum;
188
189 int m_status{0};
190
191 Aws::String m_contentRange;
192
193 Aws::String m_acceptRanges;
194
195 Aws::String m_contentType;
196
197 Aws::String m_archiveDescription;
198
199 Aws::String m_requestId;
200 Aws::Http::HttpResponseCode m_HttpResponseCode;
201 bool m_bodyHasBeenSet = false;
202 bool m_checksumHasBeenSet = false;
203 bool m_statusHasBeenSet = false;
204 bool m_contentRangeHasBeenSet = false;
205 bool m_acceptRangesHasBeenSet = false;
206 bool m_contentTypeHasBeenSet = false;
207 bool m_archiveDescriptionHasBeenSet = false;
208 bool m_requestIdHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace Glacier
213} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetContentType() const
const Aws::String & GetArchiveDescription() const
GetJobOutputResult & WithContentRange(ContentRangeT &&value)
AWS_GLACIER_API GetJobOutputResult(GetJobOutputResult &&)=default
GetJobOutputResult & operator=(const GetJobOutputResult &)=delete
GetJobOutputResult & WithContentType(ContentTypeT &&value)
AWS_GLACIER_API GetJobOutputResult()=default
AWS_GLACIER_API GetJobOutputResult & operator=(GetJobOutputResult &&)=default
GetJobOutputResult & WithArchiveDescription(ArchiveDescriptionT &&value)
GetJobOutputResult & WithAcceptRanges(AcceptRangesT &&value)
const Aws::String & GetContentRange() const
const Aws::String & GetChecksum() const
GetJobOutputResult & WithChecksum(ChecksumT &&value)
GetJobOutputResult & WithStatus(int value)
void SetAcceptRanges(AcceptRangesT &&value)
const Aws::String & GetAcceptRanges() const
AWS_GLACIER_API GetJobOutputResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetJobOutputResult & WithRequestId(RequestIdT &&value)
GetJobOutputResult(const GetJobOutputResult &)=delete
void SetArchiveDescription(ArchiveDescriptionT &&value)
AWS_GLACIER_API GetJobOutputResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
void SetContentRange(ContentRangeT &&value)
Aws::IOStream & GetUnderlyingStream() const
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String