AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
47
50 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
51 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
52
54
56
70 inline const Aws::String& GetChecksum() const{ return m_checksum; }
71 inline void SetChecksum(const Aws::String& value) { m_checksum = value; }
72 inline void SetChecksum(Aws::String&& value) { m_checksum = std::move(value); }
73 inline void SetChecksum(const char* value) { m_checksum.assign(value); }
74 inline GetJobOutputResult& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
75 inline GetJobOutputResult& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
76 inline GetJobOutputResult& WithChecksum(const char* value) { SetChecksum(value); return *this;}
78
80
84 inline int GetStatus() const{ return m_status; }
85 inline void SetStatus(int value) { m_status = value; }
86 inline GetJobOutputResult& WithStatus(int value) { SetStatus(value); return *this;}
88
90
95 inline const Aws::String& GetContentRange() const{ return m_contentRange; }
96 inline void SetContentRange(const Aws::String& value) { m_contentRange = value; }
97 inline void SetContentRange(Aws::String&& value) { m_contentRange = std::move(value); }
98 inline void SetContentRange(const char* value) { m_contentRange.assign(value); }
99 inline GetJobOutputResult& WithContentRange(const Aws::String& value) { SetContentRange(value); return *this;}
100 inline GetJobOutputResult& WithContentRange(Aws::String&& value) { SetContentRange(std::move(value)); return *this;}
101 inline GetJobOutputResult& WithContentRange(const char* value) { SetContentRange(value); return *this;}
103
105
109 inline const Aws::String& GetAcceptRanges() const{ return m_acceptRanges; }
110 inline void SetAcceptRanges(const Aws::String& value) { m_acceptRanges = value; }
111 inline void SetAcceptRanges(Aws::String&& value) { m_acceptRanges = std::move(value); }
112 inline void SetAcceptRanges(const char* value) { m_acceptRanges.assign(value); }
113 inline GetJobOutputResult& WithAcceptRanges(const Aws::String& value) { SetAcceptRanges(value); return *this;}
114 inline GetJobOutputResult& WithAcceptRanges(Aws::String&& value) { SetAcceptRanges(std::move(value)); return *this;}
115 inline GetJobOutputResult& WithAcceptRanges(const char* value) { SetAcceptRanges(value); return *this;}
117
119
126 inline const Aws::String& GetContentType() const{ return m_contentType; }
127 inline void SetContentType(const Aws::String& value) { m_contentType = value; }
128 inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
129 inline void SetContentType(const char* value) { m_contentType.assign(value); }
130 inline GetJobOutputResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
131 inline GetJobOutputResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
132 inline GetJobOutputResult& WithContentType(const char* value) { SetContentType(value); return *this;}
134
136
139 inline const Aws::String& GetArchiveDescription() const{ return m_archiveDescription; }
140 inline void SetArchiveDescription(const Aws::String& value) { m_archiveDescription = value; }
141 inline void SetArchiveDescription(Aws::String&& value) { m_archiveDescription = std::move(value); }
142 inline void SetArchiveDescription(const char* value) { m_archiveDescription.assign(value); }
143 inline GetJobOutputResult& WithArchiveDescription(const Aws::String& value) { SetArchiveDescription(value); return *this;}
144 inline GetJobOutputResult& WithArchiveDescription(Aws::String&& value) { SetArchiveDescription(std::move(value)); return *this;}
145 inline GetJobOutputResult& WithArchiveDescription(const char* value) { SetArchiveDescription(value); return *this;}
147
149
150 inline const Aws::String& GetRequestId() const{ return m_requestId; }
151 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
152 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
153 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
154 inline GetJobOutputResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
155 inline GetJobOutputResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
156 inline GetJobOutputResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
158 private:
159
161
162 Aws::String m_checksum;
163
164 int m_status;
165
166 Aws::String m_contentRange;
167
168 Aws::String m_acceptRanges;
169
170 Aws::String m_contentType;
171
172 Aws::String m_archiveDescription;
173
174 Aws::String m_requestId;
175 };
176
177} // namespace Model
178} // namespace Glacier
179} // namespace Aws
void SetArchiveDescription(const Aws::String &value)
const Aws::String & GetContentType() const
AWS_GLACIER_API GetJobOutputResult(GetJobOutputResult &&)
GetJobOutputResult & WithRequestId(const Aws::String &value)
GetJobOutputResult & WithChecksum(const Aws::String &value)
GetJobOutputResult & WithAcceptRanges(Aws::String &&value)
const Aws::String & GetArchiveDescription() const
GetJobOutputResult & WithContentRange(Aws::String &&value)
GetJobOutputResult & WithArchiveDescription(const Aws::String &value)
void SetAcceptRanges(const Aws::String &value)
GetJobOutputResult & operator=(const GetJobOutputResult &)=delete
GetJobOutputResult & WithArchiveDescription(const char *value)
AWS_GLACIER_API GetJobOutputResult & operator=(GetJobOutputResult &&)
GetJobOutputResult & WithChecksum(Aws::String &&value)
GetJobOutputResult & WithArchiveDescription(Aws::String &&value)
const Aws::String & GetContentRange() const
void SetArchiveDescription(Aws::String &&value)
GetJobOutputResult & WithRequestId(const char *value)
const Aws::String & GetChecksum() const
GetJobOutputResult & WithChecksum(const char *value)
GetJobOutputResult & WithStatus(int value)
const Aws::String & GetAcceptRanges() const
GetJobOutputResult & WithRequestId(Aws::String &&value)
void SetContentRange(const Aws::String &value)
AWS_GLACIER_API GetJobOutputResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetJobOutputResult & WithContentType(const Aws::String &value)
GetJobOutputResult & WithContentRange(const char *value)
GetJobOutputResult & WithContentType(Aws::String &&value)
GetJobOutputResult & WithContentType(const char *value)
GetJobOutputResult(const GetJobOutputResult &)=delete
GetJobOutputResult & WithContentRange(const Aws::String &value)
GetJobOutputResult & WithAcceptRanges(const char *value)
GetJobOutputResult & WithAcceptRanges(const Aws::String &value)
void SetChecksum(const Aws::String &value)
AWS_GLACIER_API GetJobOutputResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
void SetContentType(const Aws::String &value)
void SetRequestId(const Aws::String &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