AWS SDK for C++  1.9.104
AWS SDK for C++
GetJobOutputResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <aws/core/utils/Array.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Glacier
19 {
20 namespace Model
21 {
29  {
30  public:
32  //We have to define these because Microsoft doesn't auto generate them
35  //we delete these because Microsoft doesn't handle move generation correctly
36  //and we therefore don't trust them to get it right here either.
39 
40 
43 
44 
45 
49  inline Aws::IOStream& GetBody() { return m_body.GetUnderlyingStream(); }
50 
54  inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
55 
56 
71  inline const Aws::String& GetChecksum() const{ return m_checksum; }
72 
87  inline void SetChecksum(const Aws::String& value) { m_checksum = value; }
88 
103  inline void SetChecksum(Aws::String&& value) { m_checksum = std::move(value); }
104 
119  inline void SetChecksum(const char* value) { m_checksum.assign(value); }
120 
135  inline GetJobOutputResult& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
136 
151  inline GetJobOutputResult& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
152 
167  inline GetJobOutputResult& WithChecksum(const char* value) { SetChecksum(value); return *this;}
168 
169 
174  inline int GetStatus() const{ return m_status; }
175 
180  inline void SetStatus(int value) { m_status = value; }
181 
186  inline GetJobOutputResult& WithStatus(int value) { SetStatus(value); return *this;}
187 
188 
194  inline const Aws::String& GetContentRange() const{ return m_contentRange; }
195 
201  inline void SetContentRange(const Aws::String& value) { m_contentRange = value; }
202 
208  inline void SetContentRange(Aws::String&& value) { m_contentRange = std::move(value); }
209 
215  inline void SetContentRange(const char* value) { m_contentRange.assign(value); }
216 
222  inline GetJobOutputResult& WithContentRange(const Aws::String& value) { SetContentRange(value); return *this;}
223 
229  inline GetJobOutputResult& WithContentRange(Aws::String&& value) { SetContentRange(std::move(value)); return *this;}
230 
236  inline GetJobOutputResult& WithContentRange(const char* value) { SetContentRange(value); return *this;}
237 
238 
243  inline const Aws::String& GetAcceptRanges() const{ return m_acceptRanges; }
244 
249  inline void SetAcceptRanges(const Aws::String& value) { m_acceptRanges = value; }
250 
255  inline void SetAcceptRanges(Aws::String&& value) { m_acceptRanges = std::move(value); }
256 
261  inline void SetAcceptRanges(const char* value) { m_acceptRanges.assign(value); }
262 
267  inline GetJobOutputResult& WithAcceptRanges(const Aws::String& value) { SetAcceptRanges(value); return *this;}
268 
273  inline GetJobOutputResult& WithAcceptRanges(Aws::String&& value) { SetAcceptRanges(std::move(value)); return *this;}
274 
279  inline GetJobOutputResult& WithAcceptRanges(const char* value) { SetAcceptRanges(value); return *this;}
280 
281 
289  inline const Aws::String& GetContentType() const{ return m_contentType; }
290 
298  inline void SetContentType(const Aws::String& value) { m_contentType = value; }
299 
307  inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
308 
316  inline void SetContentType(const char* value) { m_contentType.assign(value); }
317 
325  inline GetJobOutputResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
326 
334  inline GetJobOutputResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
335 
343  inline GetJobOutputResult& WithContentType(const char* value) { SetContentType(value); return *this;}
344 
345 
349  inline const Aws::String& GetArchiveDescription() const{ return m_archiveDescription; }
350 
354  inline void SetArchiveDescription(const Aws::String& value) { m_archiveDescription = value; }
355 
359  inline void SetArchiveDescription(Aws::String&& value) { m_archiveDescription = std::move(value); }
360 
364  inline void SetArchiveDescription(const char* value) { m_archiveDescription.assign(value); }
365 
369  inline GetJobOutputResult& WithArchiveDescription(const Aws::String& value) { SetArchiveDescription(value); return *this;}
370 
374  inline GetJobOutputResult& WithArchiveDescription(Aws::String&& value) { SetArchiveDescription(std::move(value)); return *this;}
375 
379  inline GetJobOutputResult& WithArchiveDescription(const char* value) { SetArchiveDescription(value); return *this;}
380 
381  private:
382 
384 
385  Aws::String m_checksum;
386 
387  int m_status;
388 
389  Aws::String m_contentRange;
390 
391  Aws::String m_acceptRanges;
392 
393  Aws::String m_contentType;
394 
395  Aws::String m_archiveDescription;
396  };
397 
398 } // namespace Model
399 } // namespace Glacier
400 } // namespace Aws
Aws::Glacier::Model::GetJobOutputResult::SetChecksum
void SetChecksum(const Aws::String &value)
Definition: GetJobOutputResult.h:87
Aws::IOStream
std::basic_iostream< char, std::char_traits< char > > IOStream
Definition: AWSStreamFwd.h:22
Aws::Glacier::Model::GetJobOutputResult::WithChecksum
GetJobOutputResult & WithChecksum(const char *value)
Definition: GetJobOutputResult.h:167
Aws::Glacier::Model::GetJobOutputResult::SetChecksum
void SetChecksum(const char *value)
Definition: GetJobOutputResult.h:119
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Utils::Stream::ResponseStream
Definition: ResponseStream.h:22
Aws::Glacier::Model::GetJobOutputResult::SetAcceptRanges
void SetAcceptRanges(const char *value)
Definition: GetJobOutputResult.h:261
Aws::Glacier::Model::GetJobOutputResult::GetJobOutputResult
GetJobOutputResult(const GetJobOutputResult &)=delete
Aws::Glacier::Model::GetJobOutputResult::WithChecksum
GetJobOutputResult & WithChecksum(Aws::String &&value)
Definition: GetJobOutputResult.h:151
Aws::Glacier::Model::GetJobOutputResult::GetAcceptRanges
const Aws::String & GetAcceptRanges() const
Definition: GetJobOutputResult.h:243
Aws::Glacier::Model::GetJobOutputResult::GetBody
Aws::IOStream & GetBody()
Definition: GetJobOutputResult.h:49
Aws::Glacier::Model::GetJobOutputResult::WithContentType
GetJobOutputResult & WithContentType(const Aws::String &value)
Definition: GetJobOutputResult.h:325
Aws::Glacier::Model::GetJobOutputResult::WithContentType
GetJobOutputResult & WithContentType(Aws::String &&value)
Definition: GetJobOutputResult.h:334
Aws::Glacier::Model::GetJobOutputResult::WithArchiveDescription
GetJobOutputResult & WithArchiveDescription(const Aws::String &value)
Definition: GetJobOutputResult.h:369
Aws::Glacier::Model::GetJobOutputResult::GetJobOutputResult
GetJobOutputResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::Glacier::Model::GetJobOutputResult::WithArchiveDescription
GetJobOutputResult & WithArchiveDescription(const char *value)
Definition: GetJobOutputResult.h:379
Aws::Glacier::Model::GetJobOutputResult::WithStatus
GetJobOutputResult & WithStatus(int value)
Definition: GetJobOutputResult.h:186
Aws::Glacier::Model::GetJobOutputResult::SetContentType
void SetContentType(Aws::String &&value)
Definition: GetJobOutputResult.h:307
Aws::Glacier::Model::GetJobOutputResult::SetArchiveDescription
void SetArchiveDescription(const char *value)
Definition: GetJobOutputResult.h:364
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::GetJobOutputResult::GetJobOutputResult
GetJobOutputResult()
Aws::Glacier::Model::GetJobOutputResult::WithAcceptRanges
GetJobOutputResult & WithAcceptRanges(const char *value)
Definition: GetJobOutputResult.h:279
Aws::Glacier::Model::GetJobOutputResult::GetContentRange
const Aws::String & GetContentRange() const
Definition: GetJobOutputResult.h:194
Aws::Glacier::Model::GetJobOutputResult::WithContentRange
GetJobOutputResult & WithContentRange(Aws::String &&value)
Definition: GetJobOutputResult.h:229
Aws::Glacier::Model::GetJobOutputResult::GetContentType
const Aws::String & GetContentType() const
Definition: GetJobOutputResult.h:289
Aws::Glacier::Model::GetJobOutputResult::WithAcceptRanges
GetJobOutputResult & WithAcceptRanges(const Aws::String &value)
Definition: GetJobOutputResult.h:267
AWSString.h
Aws::Glacier::Model::GetJobOutputResult::ReplaceBody
void ReplaceBody(Aws::IOStream *body)
Definition: GetJobOutputResult.h:54
Aws::Glacier::Model::GetJobOutputResult::SetChecksum
void SetChecksum(Aws::String &&value)
Definition: GetJobOutputResult.h:103
Aws::Glacier::Model::GetJobOutputResult::WithContentRange
GetJobOutputResult & WithContentRange(const Aws::String &value)
Definition: GetJobOutputResult.h:222
Aws::Glacier::Model::GetJobOutputResult::operator=
GetJobOutputResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::Glacier::Model::GetJobOutputResult::SetAcceptRanges
void SetAcceptRanges(const Aws::String &value)
Definition: GetJobOutputResult.h:249
Aws::Glacier::Model::GetJobOutputResult::WithContentType
GetJobOutputResult & WithContentType(const char *value)
Definition: GetJobOutputResult.h:343
Aws::Glacier::Model::GetJobOutputResult::SetContentRange
void SetContentRange(Aws::String &&value)
Definition: GetJobOutputResult.h:208
Aws::Glacier::Model::GetJobOutputResult::GetStatus
int GetStatus() const
Definition: GetJobOutputResult.h:174
Aws::Glacier::Model::GetJobOutputResult::SetArchiveDescription
void SetArchiveDescription(Aws::String &&value)
Definition: GetJobOutputResult.h:359
Aws::Glacier::Model::GetJobOutputResult::SetStatus
void SetStatus(int value)
Definition: GetJobOutputResult.h:180
Aws::Glacier::Model::GetJobOutputResult::SetAcceptRanges
void SetAcceptRanges(Aws::String &&value)
Definition: GetJobOutputResult.h:255
Aws::Glacier::Model::GetJobOutputResult::operator=
GetJobOutputResult & operator=(const GetJobOutputResult &)=delete
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::GetJobOutputResult::WithChecksum
GetJobOutputResult & WithChecksum(const Aws::String &value)
Definition: GetJobOutputResult.h:135
Array.h
Aws::Glacier::Model::GetJobOutputResult::GetArchiveDescription
const Aws::String & GetArchiveDescription() const
Definition: GetJobOutputResult.h:349
Aws::Glacier::Model::GetJobOutputResult::SetContentType
void SetContentType(const Aws::String &value)
Definition: GetJobOutputResult.h:298
Aws::Glacier::Model::GetJobOutputResult::WithContentRange
GetJobOutputResult & WithContentRange(const char *value)
Definition: GetJobOutputResult.h:236
Aws::Glacier::Model::GetJobOutputResult::SetContentRange
void SetContentRange(const Aws::String &value)
Definition: GetJobOutputResult.h:201
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::GetJobOutputResult::WithAcceptRanges
GetJobOutputResult & WithAcceptRanges(Aws::String &&value)
Definition: GetJobOutputResult.h:273
Aws::Glacier::Model::GetJobOutputResult::GetChecksum
const Aws::String & GetChecksum() const
Definition: GetJobOutputResult.h:71
ResponseStream.h
Aws::Glacier::Model::GetJobOutputResult::WithArchiveDescription
GetJobOutputResult & WithArchiveDescription(Aws::String &&value)
Definition: GetJobOutputResult.h:374
Aws::Glacier::Model::GetJobOutputResult::SetContentType
void SetContentType(const char *value)
Definition: GetJobOutputResult.h:316
Aws::Glacier::Model::GetJobOutputResult
Definition: GetJobOutputResult.h:29
Aws::Glacier::Model::GetJobOutputResult::SetContentRange
void SetContentRange(const char *value)
Definition: GetJobOutputResult.h:215
Aws::Glacier::Model::GetJobOutputResult::GetJobOutputResult
GetJobOutputResult(GetJobOutputResult &&)
Aws::Glacier::Model::GetJobOutputResult::SetArchiveDescription
void SetArchiveDescription(const Aws::String &value)
Definition: GetJobOutputResult.h:354
Glacier_EXPORTS.h
Aws::Glacier::Model::GetJobOutputResult::operator=
GetJobOutputResult & operator=(GetJobOutputResult &&)