AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetJobOutputResult.h
1
6#pragma once
7#include <aws/glacier/Glacier_EXPORTS.h>
8#include <aws/core/utils/stream/ResponseStream.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Glacier
19{
20namespace Model
21{
29 {
30 public:
31 AWS_GLACIER_API GetJobOutputResult() = default;
32 AWS_GLACIER_API GetJobOutputResult(GetJobOutputResult&&) = default;
33 AWS_GLACIER_API GetJobOutputResult& operator=(GetJobOutputResult&&) = default;
34 //we delete these because Microsoft doesn't handle move generation correctly
35 //and we therefore don't trust them to get it right here either.
38
39
42
43
44
46
49 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
50 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
51
53
55
69 inline const Aws::String& GetChecksum() const { return m_checksum; }
70 template<typename ChecksumT = Aws::String>
71 void SetChecksum(ChecksumT&& value) { m_checksumHasBeenSet = true; m_checksum = std::forward<ChecksumT>(value); }
72 template<typename ChecksumT = Aws::String>
73 GetJobOutputResult& WithChecksum(ChecksumT&& value) { SetChecksum(std::forward<ChecksumT>(value)); return *this;}
75
77
81 inline int GetStatus() const { return m_status; }
82 inline void SetStatus(int value) { m_statusHasBeenSet = true; m_status = value; }
83 inline GetJobOutputResult& WithStatus(int value) { SetStatus(value); return *this;}
85
87
92 inline const Aws::String& GetContentRange() const { return m_contentRange; }
93 template<typename ContentRangeT = Aws::String>
94 void SetContentRange(ContentRangeT&& value) { m_contentRangeHasBeenSet = true; m_contentRange = std::forward<ContentRangeT>(value); }
95 template<typename ContentRangeT = Aws::String>
96 GetJobOutputResult& WithContentRange(ContentRangeT&& value) { SetContentRange(std::forward<ContentRangeT>(value)); return *this;}
98
100
104 inline const Aws::String& GetAcceptRanges() const { return m_acceptRanges; }
105 template<typename AcceptRangesT = Aws::String>
106 void SetAcceptRanges(AcceptRangesT&& value) { m_acceptRangesHasBeenSet = true; m_acceptRanges = std::forward<AcceptRangesT>(value); }
107 template<typename AcceptRangesT = Aws::String>
108 GetJobOutputResult& WithAcceptRanges(AcceptRangesT&& value) { SetAcceptRanges(std::forward<AcceptRangesT>(value)); return *this;}
110
112
119 inline const Aws::String& GetContentType() const { return m_contentType; }
120 template<typename ContentTypeT = Aws::String>
121 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
122 template<typename ContentTypeT = Aws::String>
123 GetJobOutputResult& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
125
127
130 inline const Aws::String& GetArchiveDescription() const { return m_archiveDescription; }
131 template<typename ArchiveDescriptionT = Aws::String>
132 void SetArchiveDescription(ArchiveDescriptionT&& value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription = std::forward<ArchiveDescriptionT>(value); }
133 template<typename ArchiveDescriptionT = Aws::String>
134 GetJobOutputResult& WithArchiveDescription(ArchiveDescriptionT&& value) { SetArchiveDescription(std::forward<ArchiveDescriptionT>(value)); return *this;}
136
138
139 inline const Aws::String& GetRequestId() const { return m_requestId; }
140 template<typename RequestIdT = Aws::String>
141 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
142 template<typename RequestIdT = Aws::String>
143 GetJobOutputResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
145 private:
146
148 bool m_bodyHasBeenSet = false;
149
150 Aws::String m_checksum;
151 bool m_checksumHasBeenSet = false;
152
153 int m_status{0};
154 bool m_statusHasBeenSet = false;
155
156 Aws::String m_contentRange;
157 bool m_contentRangeHasBeenSet = false;
158
159 Aws::String m_acceptRanges;
160 bool m_acceptRangesHasBeenSet = false;
161
162 Aws::String m_contentType;
163 bool m_contentTypeHasBeenSet = false;
164
165 Aws::String m_archiveDescription;
166 bool m_archiveDescriptionHasBeenSet = false;
167
168 Aws::String m_requestId;
169 bool m_requestIdHasBeenSet = false;
170 };
171
172} // namespace Model
173} // namespace Glacier
174} // 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