AWS SDK for C++  1.9.16
AWS SDK for C++
GetObjectResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <aws/core/utils/Array.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace MediaStoreData
20 {
21 namespace Model
22 {
24  {
25  public:
27  //We have to define these because Microsoft doesn't auto generate them
30  //we delete these because Microsoft doesn't handle move generation correctly
31  //and we therefore don't trust them to get it right here either.
32  GetObjectResult(const GetObjectResult&) = delete;
34 
35 
38 
39 
40 
44  inline Aws::IOStream& GetBody() { return m_body.GetUnderlyingStream(); }
45 
49  inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
50 
51 
59  inline const Aws::String& GetCacheControl() const{ return m_cacheControl; }
60 
68  inline void SetCacheControl(const Aws::String& value) { m_cacheControl = value; }
69 
77  inline void SetCacheControl(Aws::String&& value) { m_cacheControl = std::move(value); }
78 
86  inline void SetCacheControl(const char* value) { m_cacheControl.assign(value); }
87 
95  inline GetObjectResult& WithCacheControl(const Aws::String& value) { SetCacheControl(value); return *this;}
96 
104  inline GetObjectResult& WithCacheControl(Aws::String&& value) { SetCacheControl(std::move(value)); return *this;}
105 
113  inline GetObjectResult& WithCacheControl(const char* value) { SetCacheControl(value); return *this;}
114 
115 
119  inline const Aws::String& GetContentRange() const{ return m_contentRange; }
120 
124  inline void SetContentRange(const Aws::String& value) { m_contentRange = value; }
125 
129  inline void SetContentRange(Aws::String&& value) { m_contentRange = std::move(value); }
130 
134  inline void SetContentRange(const char* value) { m_contentRange.assign(value); }
135 
139  inline GetObjectResult& WithContentRange(const Aws::String& value) { SetContentRange(value); return *this;}
140 
144  inline GetObjectResult& WithContentRange(Aws::String&& value) { SetContentRange(std::move(value)); return *this;}
145 
149  inline GetObjectResult& WithContentRange(const char* value) { SetContentRange(value); return *this;}
150 
151 
155  inline long long GetContentLength() const{ return m_contentLength; }
156 
160  inline void SetContentLength(long long value) { m_contentLength = value; }
161 
165  inline GetObjectResult& WithContentLength(long long value) { SetContentLength(value); return *this;}
166 
167 
171  inline const Aws::String& GetContentType() const{ return m_contentType; }
172 
176  inline void SetContentType(const Aws::String& value) { m_contentType = value; }
177 
181  inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
182 
186  inline void SetContentType(const char* value) { m_contentType.assign(value); }
187 
191  inline GetObjectResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
192 
196  inline GetObjectResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
197 
201  inline GetObjectResult& WithContentType(const char* value) { SetContentType(value); return *this;}
202 
203 
207  inline const Aws::String& GetETag() const{ return m_eTag; }
208 
212  inline void SetETag(const Aws::String& value) { m_eTag = value; }
213 
217  inline void SetETag(Aws::String&& value) { m_eTag = std::move(value); }
218 
222  inline void SetETag(const char* value) { m_eTag.assign(value); }
223 
227  inline GetObjectResult& WithETag(const Aws::String& value) { SetETag(value); return *this;}
228 
232  inline GetObjectResult& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
233 
237  inline GetObjectResult& WithETag(const char* value) { SetETag(value); return *this;}
238 
239 
243  inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
244 
248  inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModified = value; }
249 
253  inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModified = std::move(value); }
254 
258  inline GetObjectResult& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
259 
263  inline GetObjectResult& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
264 
265 
271  inline int GetStatusCode() const{ return m_statusCode; }
272 
278  inline void SetStatusCode(int value) { m_statusCode = value; }
279 
285  inline GetObjectResult& WithStatusCode(int value) { SetStatusCode(value); return *this;}
286 
287  private:
288 
290 
291  Aws::String m_cacheControl;
292 
293  Aws::String m_contentRange;
294 
295  long long m_contentLength;
296 
297  Aws::String m_contentType;
298 
299  Aws::String m_eTag;
300 
301  Aws::Utils::DateTime m_lastModified;
302 
303  int m_statusCode;
304  };
305 
306 } // namespace Model
307 } // namespace MediaStoreData
308 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IOStream
std::basic_iostream< char, std::char_traits< char > > IOStream
Definition: AWSStreamFwd.h:22
Aws::MediaStoreData::Model::GetObjectResult::WithContentRange
GetObjectResult & WithContentRange(Aws::String &&value)
Definition: GetObjectResult.h:144
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Utils::Stream::ResponseStream
Definition: ResponseStream.h:22
MediaStoreData_EXPORTS.h
Aws::MediaStoreData::Model::GetObjectResult::GetObjectResult
GetObjectResult(const GetObjectResult &)=delete
Aws::MediaStoreData::Model::GetObjectResult::SetETag
void SetETag(const char *value)
Definition: GetObjectResult.h:222
Aws::MediaStoreData::Model::GetObjectResult::SetContentType
void SetContentType(Aws::String &&value)
Definition: GetObjectResult.h:181
Aws::MediaStoreData::Model::GetObjectResult::GetObjectResult
GetObjectResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::MediaStoreData::Model::GetObjectResult::WithCacheControl
GetObjectResult & WithCacheControl(const char *value)
Definition: GetObjectResult.h:113
Aws::MediaStoreData::Model::GetObjectResult::WithContentLength
GetObjectResult & WithContentLength(long long value)
Definition: GetObjectResult.h:165
Aws::MediaStoreData::Model::GetObjectResult::SetContentRange
void SetContentRange(const char *value)
Definition: GetObjectResult.h:134
DateTime.h
AWS_MEDIASTOREDATA_API
#define AWS_MEDIASTOREDATA_API
Definition: MediaStoreData_EXPORTS.h:28
Aws::MediaStoreData::Model::GetObjectResult::GetContentRange
const Aws::String & GetContentRange() const
Definition: GetObjectResult.h:119
Aws::MediaStoreData::Model::GetObjectResult::SetContentType
void SetContentType(const char *value)
Definition: GetObjectResult.h:186
Aws::MediaStoreData::Model::GetObjectResult::WithContentType
GetObjectResult & WithContentType(const char *value)
Definition: GetObjectResult.h:201
Aws::MediaStoreData::Model::GetObjectResult::GetCacheControl
const Aws::String & GetCacheControl() const
Definition: GetObjectResult.h:59
Aws::MediaStoreData::Model::GetObjectResult::WithContentRange
GetObjectResult & WithContentRange(const char *value)
Definition: GetObjectResult.h:149
Aws::MediaStoreData::Model::GetObjectResult::WithLastModified
GetObjectResult & WithLastModified(Aws::Utils::DateTime &&value)
Definition: GetObjectResult.h:263
Aws::MediaStoreData::Model::GetObjectResult::WithContentType
GetObjectResult & WithContentType(Aws::String &&value)
Definition: GetObjectResult.h:196
Aws::MediaStoreData::Model::GetObjectResult::GetObjectResult
GetObjectResult(GetObjectResult &&)
Aws::MediaStoreData::Model::GetObjectResult::SetStatusCode
void SetStatusCode(int value)
Definition: GetObjectResult.h:278
Aws::MediaStoreData::Model::GetObjectResult::GetBody
Aws::IOStream & GetBody()
Definition: GetObjectResult.h:44
Aws::MediaStoreData::Model::GetObjectResult::SetLastModified
void SetLastModified(Aws::Utils::DateTime &&value)
Definition: GetObjectResult.h:253
Aws::MediaStoreData::Model::GetObjectResult::GetObjectResult
GetObjectResult()
Aws::MediaStoreData::Model::GetObjectResult::SetLastModified
void SetLastModified(const Aws::Utils::DateTime &value)
Definition: GetObjectResult.h:248
Aws::MediaStoreData::Model::GetObjectResult::operator=
GetObjectResult & operator=(GetObjectResult &&)
Aws::MediaStoreData::Model::GetObjectResult::SetETag
void SetETag(Aws::String &&value)
Definition: GetObjectResult.h:217
Aws::MediaStoreData::Model::GetObjectResult::SetETag
void SetETag(const Aws::String &value)
Definition: GetObjectResult.h:212
Aws::MediaStoreData::Model::GetObjectResult::WithContentType
GetObjectResult & WithContentType(const Aws::String &value)
Definition: GetObjectResult.h:191
Aws::MediaStoreData::Model::GetObjectResult::GetStatusCode
int GetStatusCode() const
Definition: GetObjectResult.h:271
Aws::MediaStoreData::Model::GetObjectResult::GetETag
const Aws::String & GetETag() const
Definition: GetObjectResult.h:207
Aws::MediaStoreData::Model::GetObjectResult::WithETag
GetObjectResult & WithETag(const Aws::String &value)
Definition: GetObjectResult.h:227
AWSString.h
Aws::MediaStoreData::Model::GetObjectResult::WithCacheControl
GetObjectResult & WithCacheControl(const Aws::String &value)
Definition: GetObjectResult.h:95
Aws::MediaStoreData::Model::GetObjectResult::SetCacheControl
void SetCacheControl(const char *value)
Definition: GetObjectResult.h:86
Aws::MediaStoreData::Model::GetObjectResult::WithCacheControl
GetObjectResult & WithCacheControl(Aws::String &&value)
Definition: GetObjectResult.h:104
Aws::MediaStoreData::Model::GetObjectResult::WithContentRange
GetObjectResult & WithContentRange(const Aws::String &value)
Definition: GetObjectResult.h:139
Aws::MediaStoreData::Model::GetObjectResult::GetLastModified
const Aws::Utils::DateTime & GetLastModified() const
Definition: GetObjectResult.h:243
Aws::MediaStoreData::Model::GetObjectResult::WithETag
GetObjectResult & WithETag(Aws::String &&value)
Definition: GetObjectResult.h:232
Aws::MediaStoreData::Model::GetObjectResult::SetCacheControl
void SetCacheControl(Aws::String &&value)
Definition: GetObjectResult.h:77
Aws::MediaStoreData::Model::GetObjectResult::GetContentLength
long long GetContentLength() const
Definition: GetObjectResult.h:155
Aws::MediaStoreData::Model::GetObjectResult::WithStatusCode
GetObjectResult & WithStatusCode(int value)
Definition: GetObjectResult.h:285
Aws::MediaStoreData::Model::GetObjectResult
Definition: GetObjectResult.h:24
Aws::MediaStoreData::Model::GetObjectResult::WithETag
GetObjectResult & WithETag(const char *value)
Definition: GetObjectResult.h:237
Aws::MediaStoreData::Model::GetObjectResult::SetContentType
void SetContentType(const Aws::String &value)
Definition: GetObjectResult.h:176
Aws::MediaStoreData::Model::GetObjectResult::SetContentRange
void SetContentRange(const Aws::String &value)
Definition: GetObjectResult.h:124
Aws::MediaStoreData::Model::GetObjectResult::WithLastModified
GetObjectResult & WithLastModified(const Aws::Utils::DateTime &value)
Definition: GetObjectResult.h:258
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::MediaStoreData::Model::GetObjectResult::operator=
GetObjectResult & operator=(const GetObjectResult &)=delete
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaStoreData::Model::GetObjectResult::SetContentRange
void SetContentRange(Aws::String &&value)
Definition: GetObjectResult.h:129
Aws::MediaStoreData::Model::GetObjectResult::operator=
GetObjectResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
Aws::MediaStoreData::Model::GetObjectResult::SetContentLength
void SetContentLength(long long value)
Definition: GetObjectResult.h:160
Aws::MediaStoreData::Model::GetObjectResult::SetCacheControl
void SetCacheControl(const Aws::String &value)
Definition: GetObjectResult.h:68
Aws::MediaStoreData::Model::GetObjectResult::ReplaceBody
void ReplaceBody(Aws::IOStream *body)
Definition: GetObjectResult.h:49
ResponseStream.h
Aws::MediaStoreData::Model::GetObjectResult::GetContentType
const Aws::String & GetContentType() const
Definition: GetObjectResult.h:171