AWS SDK for C++  1.9.16
AWS SDK for C++
DescribeObjectResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace MediaStoreData
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
39  inline const Aws::String& GetETag() const{ return m_eTag; }
40 
44  inline void SetETag(const Aws::String& value) { m_eTag = value; }
45 
49  inline void SetETag(Aws::String&& value) { m_eTag = std::move(value); }
50 
54  inline void SetETag(const char* value) { m_eTag.assign(value); }
55 
59  inline DescribeObjectResult& WithETag(const Aws::String& value) { SetETag(value); return *this;}
60 
64  inline DescribeObjectResult& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
65 
69  inline DescribeObjectResult& WithETag(const char* value) { SetETag(value); return *this;}
70 
71 
75  inline const Aws::String& GetContentType() const{ return m_contentType; }
76 
80  inline void SetContentType(const Aws::String& value) { m_contentType = value; }
81 
85  inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
86 
90  inline void SetContentType(const char* value) { m_contentType.assign(value); }
91 
95  inline DescribeObjectResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
96 
100  inline DescribeObjectResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
101 
105  inline DescribeObjectResult& WithContentType(const char* value) { SetContentType(value); return *this;}
106 
107 
111  inline long long GetContentLength() const{ return m_contentLength; }
112 
116  inline void SetContentLength(long long value) { m_contentLength = value; }
117 
121  inline DescribeObjectResult& WithContentLength(long long value) { SetContentLength(value); return *this;}
122 
123 
131  inline const Aws::String& GetCacheControl() const{ return m_cacheControl; }
132 
140  inline void SetCacheControl(const Aws::String& value) { m_cacheControl = value; }
141 
149  inline void SetCacheControl(Aws::String&& value) { m_cacheControl = std::move(value); }
150 
158  inline void SetCacheControl(const char* value) { m_cacheControl.assign(value); }
159 
167  inline DescribeObjectResult& WithCacheControl(const Aws::String& value) { SetCacheControl(value); return *this;}
168 
176  inline DescribeObjectResult& WithCacheControl(Aws::String&& value) { SetCacheControl(std::move(value)); return *this;}
177 
185  inline DescribeObjectResult& WithCacheControl(const char* value) { SetCacheControl(value); return *this;}
186 
187 
191  inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
192 
196  inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModified = value; }
197 
201  inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModified = std::move(value); }
202 
206  inline DescribeObjectResult& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
207 
211  inline DescribeObjectResult& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
212 
213  private:
214 
215  Aws::String m_eTag;
216 
217  Aws::String m_contentType;
218 
219  long long m_contentLength;
220 
221  Aws::String m_cacheControl;
222 
223  Aws::Utils::DateTime m_lastModified;
224  };
225 
226 } // namespace Model
227 } // namespace MediaStoreData
228 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::MediaStoreData::Model::DescribeObjectResult::WithCacheControl
DescribeObjectResult & WithCacheControl(const char *value)
Definition: DescribeObjectResult.h:185
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
MediaStoreData_EXPORTS.h
Aws::MediaStoreData::Model::DescribeObjectResult::GetLastModified
const Aws::Utils::DateTime & GetLastModified() const
Definition: DescribeObjectResult.h:191
Aws::MediaStoreData::Model::DescribeObjectResult::SetETag
void SetETag(Aws::String &&value)
Definition: DescribeObjectResult.h:49
Aws::MediaStoreData::Model::DescribeObjectResult::WithLastModified
DescribeObjectResult & WithLastModified(const Aws::Utils::DateTime &value)
Definition: DescribeObjectResult.h:206
Aws::MediaStoreData::Model::DescribeObjectResult::SetLastModified
void SetLastModified(const Aws::Utils::DateTime &value)
Definition: DescribeObjectResult.h:196
DateTime.h
AWS_MEDIASTOREDATA_API
#define AWS_MEDIASTOREDATA_API
Definition: MediaStoreData_EXPORTS.h:28
Aws::MediaStoreData::Model::DescribeObjectResult::SetContentLength
void SetContentLength(long long value)
Definition: DescribeObjectResult.h:116
Aws::MediaStoreData::Model::DescribeObjectResult::WithCacheControl
DescribeObjectResult & WithCacheControl(Aws::String &&value)
Definition: DescribeObjectResult.h:176
Aws::MediaStoreData::Model::DescribeObjectResult::GetContentType
const Aws::String & GetContentType() const
Definition: DescribeObjectResult.h:75
Aws::MediaStoreData::Model::DescribeObjectResult::DescribeObjectResult
DescribeObjectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::MediaStoreData::Model::DescribeObjectResult::WithContentType
DescribeObjectResult & WithContentType(const char *value)
Definition: DescribeObjectResult.h:105
Aws::MediaStoreData::Model::DescribeObjectResult::WithETag
DescribeObjectResult & WithETag(const Aws::String &value)
Definition: DescribeObjectResult.h:59
Aws::MediaStoreData::Model::DescribeObjectResult::WithCacheControl
DescribeObjectResult & WithCacheControl(const Aws::String &value)
Definition: DescribeObjectResult.h:167
Aws::MediaStoreData::Model::DescribeObjectResult::SetContentType
void SetContentType(Aws::String &&value)
Definition: DescribeObjectResult.h:85
Aws::MediaStoreData::Model::DescribeObjectResult::SetCacheControl
void SetCacheControl(Aws::String &&value)
Definition: DescribeObjectResult.h:149
Aws::MediaStoreData::Model::DescribeObjectResult::GetContentLength
long long GetContentLength() const
Definition: DescribeObjectResult.h:111
Aws::MediaStoreData::Model::DescribeObjectResult::SetCacheControl
void SetCacheControl(const char *value)
Definition: DescribeObjectResult.h:158
Aws::MediaStoreData::Model::DescribeObjectResult::SetETag
void SetETag(const Aws::String &value)
Definition: DescribeObjectResult.h:44
Aws::MediaStoreData::Model::DescribeObjectResult::SetLastModified
void SetLastModified(Aws::Utils::DateTime &&value)
Definition: DescribeObjectResult.h:201
Aws::MediaStoreData::Model::DescribeObjectResult::WithContentType
DescribeObjectResult & WithContentType(Aws::String &&value)
Definition: DescribeObjectResult.h:100
Aws::MediaStoreData::Model::DescribeObjectResult::WithLastModified
DescribeObjectResult & WithLastModified(Aws::Utils::DateTime &&value)
Definition: DescribeObjectResult.h:211
Aws::MediaStoreData::Model::DescribeObjectResult::WithETag
DescribeObjectResult & WithETag(const char *value)
Definition: DescribeObjectResult.h:69
AWSString.h
Aws::MediaStoreData::Model::DescribeObjectResult::SetCacheControl
void SetCacheControl(const Aws::String &value)
Definition: DescribeObjectResult.h:140
Aws::MediaStoreData::Model::DescribeObjectResult::WithContentLength
DescribeObjectResult & WithContentLength(long long value)
Definition: DescribeObjectResult.h:121
Aws::MediaStoreData::Model::DescribeObjectResult::WithETag
DescribeObjectResult & WithETag(Aws::String &&value)
Definition: DescribeObjectResult.h:64
Aws::MediaStoreData::Model::DescribeObjectResult::DescribeObjectResult
DescribeObjectResult()
Aws::MediaStoreData::Model::DescribeObjectResult
Definition: DescribeObjectResult.h:29
Aws::MediaStoreData::Model::DescribeObjectResult::GetCacheControl
const Aws::String & GetCacheControl() const
Definition: DescribeObjectResult.h:131
Aws
Definition: AccessManagementClient.h:15
Aws::MediaStoreData::Model::DescribeObjectResult::GetETag
const Aws::String & GetETag() const
Definition: DescribeObjectResult.h:39
Aws::MediaStoreData::Model::DescribeObjectResult::WithContentType
DescribeObjectResult & WithContentType(const Aws::String &value)
Definition: DescribeObjectResult.h:95
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaStoreData::Model::DescribeObjectResult::SetContentType
void SetContentType(const char *value)
Definition: DescribeObjectResult.h:90
Aws::MediaStoreData::Model::DescribeObjectResult::SetETag
void SetETag(const char *value)
Definition: DescribeObjectResult.h:54
Aws::MediaStoreData::Model::DescribeObjectResult::SetContentType
void SetContentType(const Aws::String &value)
Definition: DescribeObjectResult.h:80
Aws::MediaStoreData::Model::DescribeObjectResult::operator=
DescribeObjectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)