AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
GetJobOutputResult.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/stream/ResponseStream.h>
10#include <aws/glacier/Glacier_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Glacier {
19namespace Model {
27 public:
28 AWS_GLACIER_API GetJobOutputResult() = default;
29 AWS_GLACIER_API GetJobOutputResult(GetJobOutputResult&&) = default;
30 AWS_GLACIER_API GetJobOutputResult& operator=(GetJobOutputResult&&) = default;
31 // we delete these because Microsoft doesn't handle move generation correctly
32 // and we therefore don't trust them to get it right here either.
35
38
40
43 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
44 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
45
47
49
63 inline const Aws::String& GetChecksum() const { return m_checksum; }
64 template <typename ChecksumT = Aws::String>
65 void SetChecksum(ChecksumT&& value) {
66 m_checksumHasBeenSet = true;
67 m_checksum = std::forward<ChecksumT>(value);
68 }
69 template <typename ChecksumT = Aws::String>
70 GetJobOutputResult& WithChecksum(ChecksumT&& value) {
71 SetChecksum(std::forward<ChecksumT>(value));
72 return *this;
73 }
75
77
81 inline int GetStatus() const { return m_status; }
82 inline void SetStatus(int value) {
83 m_statusHasBeenSet = true;
84 m_status = value;
85 }
86 inline GetJobOutputResult& WithStatus(int value) {
87 SetStatus(value);
88 return *this;
89 }
91
93
98 inline const Aws::String& GetContentRange() const { return m_contentRange; }
99 template <typename ContentRangeT = Aws::String>
100 void SetContentRange(ContentRangeT&& value) {
101 m_contentRangeHasBeenSet = true;
102 m_contentRange = std::forward<ContentRangeT>(value);
103 }
104 template <typename ContentRangeT = Aws::String>
105 GetJobOutputResult& WithContentRange(ContentRangeT&& value) {
106 SetContentRange(std::forward<ContentRangeT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetAcceptRanges() const { return m_acceptRanges; }
117 template <typename AcceptRangesT = Aws::String>
118 void SetAcceptRanges(AcceptRangesT&& value) {
119 m_acceptRangesHasBeenSet = true;
120 m_acceptRanges = std::forward<AcceptRangesT>(value);
121 }
122 template <typename AcceptRangesT = Aws::String>
123 GetJobOutputResult& WithAcceptRanges(AcceptRangesT&& value) {
124 SetAcceptRanges(std::forward<AcceptRangesT>(value));
125 return *this;
126 }
128
130
137 inline const Aws::String& GetContentType() const { return m_contentType; }
138 template <typename ContentTypeT = Aws::String>
139 void SetContentType(ContentTypeT&& value) {
140 m_contentTypeHasBeenSet = true;
141 m_contentType = std::forward<ContentTypeT>(value);
142 }
143 template <typename ContentTypeT = Aws::String>
144 GetJobOutputResult& WithContentType(ContentTypeT&& value) {
145 SetContentType(std::forward<ContentTypeT>(value));
146 return *this;
147 }
149
151
154 inline const Aws::String& GetArchiveDescription() const { return m_archiveDescription; }
155 template <typename ArchiveDescriptionT = Aws::String>
156 void SetArchiveDescription(ArchiveDescriptionT&& value) {
157 m_archiveDescriptionHasBeenSet = true;
158 m_archiveDescription = std::forward<ArchiveDescriptionT>(value);
159 }
160 template <typename ArchiveDescriptionT = Aws::String>
161 GetJobOutputResult& WithArchiveDescription(ArchiveDescriptionT&& value) {
162 SetArchiveDescription(std::forward<ArchiveDescriptionT>(value));
163 return *this;
164 }
166
168
169 inline const Aws::String& GetRequestId() const { return m_requestId; }
170 template <typename RequestIdT = Aws::String>
171 void SetRequestId(RequestIdT&& value) {
172 m_requestIdHasBeenSet = true;
173 m_requestId = std::forward<RequestIdT>(value);
174 }
175 template <typename RequestIdT = Aws::String>
176 GetJobOutputResult& WithRequestId(RequestIdT&& value) {
177 SetRequestId(std::forward<RequestIdT>(value));
178 return *this;
179 }
181 private:
183
184 Aws::String m_checksum;
185
186 int m_status{0};
187
188 Aws::String m_contentRange;
189
190 Aws::String m_acceptRanges;
191
192 Aws::String m_contentType;
193
194 Aws::String m_archiveDescription;
195
196 Aws::String m_requestId;
197 bool m_bodyHasBeenSet = false;
198 bool m_checksumHasBeenSet = false;
199 bool m_statusHasBeenSet = false;
200 bool m_contentRangeHasBeenSet = false;
201 bool m_acceptRangesHasBeenSet = false;
202 bool m_contentTypeHasBeenSet = false;
203 bool m_archiveDescriptionHasBeenSet = false;
204 bool m_requestIdHasBeenSet = false;
205};
206
207} // namespace Model
208} // namespace Glacier
209} // namespace Aws
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