AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetObjectResult.h
1
6#pragma once
7#include <aws/mediastore-data/MediaStoreData_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 <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace MediaStoreData
20{
21namespace Model
22{
24 {
25 public:
26 AWS_MEDIASTOREDATA_API GetObjectResult() = default;
27 AWS_MEDIASTOREDATA_API GetObjectResult(GetObjectResult&&) = default;
28 AWS_MEDIASTOREDATA_API GetObjectResult& operator=(GetObjectResult&&) = default;
29 //we delete these because Microsoft doesn't handle move generation correctly
30 //and we therefore don't trust them to get it right here either.
33
34
37
38
39
41
44 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
45 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
46
48
50
57 inline const Aws::String& GetCacheControl() const { return m_cacheControl; }
58 template<typename CacheControlT = Aws::String>
59 void SetCacheControl(CacheControlT&& value) { m_cacheControlHasBeenSet = true; m_cacheControl = std::forward<CacheControlT>(value); }
60 template<typename CacheControlT = Aws::String>
61 GetObjectResult& WithCacheControl(CacheControlT&& value) { SetCacheControl(std::forward<CacheControlT>(value)); return *this;}
63
65
68 inline const Aws::String& GetContentRange() const { return m_contentRange; }
69 template<typename ContentRangeT = Aws::String>
70 void SetContentRange(ContentRangeT&& value) { m_contentRangeHasBeenSet = true; m_contentRange = std::forward<ContentRangeT>(value); }
71 template<typename ContentRangeT = Aws::String>
72 GetObjectResult& WithContentRange(ContentRangeT&& value) { SetContentRange(std::forward<ContentRangeT>(value)); return *this;}
74
76
79 inline long long GetContentLength() const { return m_contentLength; }
80 inline void SetContentLength(long long value) { m_contentLengthHasBeenSet = true; m_contentLength = value; }
81 inline GetObjectResult& WithContentLength(long long value) { SetContentLength(value); return *this;}
83
85
88 inline const Aws::String& GetContentType() const { return m_contentType; }
89 template<typename ContentTypeT = Aws::String>
90 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
91 template<typename ContentTypeT = Aws::String>
92 GetObjectResult& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
94
96
99 inline const Aws::String& GetETag() const { return m_eTag; }
100 template<typename ETagT = Aws::String>
101 void SetETag(ETagT&& value) { m_eTagHasBeenSet = true; m_eTag = std::forward<ETagT>(value); }
102 template<typename ETagT = Aws::String>
103 GetObjectResult& WithETag(ETagT&& value) { SetETag(std::forward<ETagT>(value)); return *this;}
105
107
110 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
111 template<typename LastModifiedT = Aws::Utils::DateTime>
112 void SetLastModified(LastModifiedT&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::forward<LastModifiedT>(value); }
113 template<typename LastModifiedT = Aws::Utils::DateTime>
114 GetObjectResult& WithLastModified(LastModifiedT&& value) { SetLastModified(std::forward<LastModifiedT>(value)); return *this;}
116
118
123 inline int GetStatusCode() const { return m_statusCode; }
124 inline void SetStatusCode(int value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
125 inline GetObjectResult& WithStatusCode(int value) { SetStatusCode(value); return *this;}
127
129
130 inline const Aws::String& GetRequestId() const { return m_requestId; }
131 template<typename RequestIdT = Aws::String>
132 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
133 template<typename RequestIdT = Aws::String>
134 GetObjectResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
136 private:
137
139 bool m_bodyHasBeenSet = false;
140
141 Aws::String m_cacheControl;
142 bool m_cacheControlHasBeenSet = false;
143
144 Aws::String m_contentRange;
145 bool m_contentRangeHasBeenSet = false;
146
147 long long m_contentLength{0};
148 bool m_contentLengthHasBeenSet = false;
149
150 Aws::String m_contentType;
151 bool m_contentTypeHasBeenSet = false;
152
153 Aws::String m_eTag;
154 bool m_eTagHasBeenSet = false;
155
156 Aws::Utils::DateTime m_lastModified{};
157 bool m_lastModifiedHasBeenSet = false;
158
159 int m_statusCode{0};
160 bool m_statusCodeHasBeenSet = false;
161
162 Aws::String m_requestId;
163 bool m_requestIdHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace MediaStoreData
168} // namespace Aws
void SetContentRange(ContentRangeT &&value)
const Aws::Utils::DateTime & GetLastModified() const
GetObjectResult & WithLastModified(LastModifiedT &&value)
void SetLastModified(LastModifiedT &&value)
AWS_MEDIASTOREDATA_API GetObjectResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetObjectResult & WithStatusCode(int value)
const Aws::String & GetContentType() const
GetObjectResult & WithContentRange(ContentRangeT &&value)
AWS_MEDIASTOREDATA_API GetObjectResult & operator=(GetObjectResult &&)=default
AWS_MEDIASTOREDATA_API GetObjectResult()=default
GetObjectResult & WithETag(ETagT &&value)
AWS_MEDIASTOREDATA_API GetObjectResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
const Aws::String & GetCacheControl() const
void SetCacheControl(CacheControlT &&value)
GetObjectResult & WithContentType(ContentTypeT &&value)
AWS_MEDIASTOREDATA_API GetObjectResult(GetObjectResult &&)=default
GetObjectResult & operator=(const GetObjectResult &)=delete
GetObjectResult & WithRequestId(RequestIdT &&value)
GetObjectResult & WithContentLength(long long value)
GetObjectResult(const GetObjectResult &)=delete
GetObjectResult & WithCacheControl(CacheControlT &&value)
const Aws::String & GetContentRange() const
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