AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DescribeObjectResult.h
1
6#pragma once
7#include <aws/mediastore-data/MediaStoreData_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace MediaStoreData
25{
26namespace Model
27{
29 {
30 public:
31 AWS_MEDIASTOREDATA_API DescribeObjectResult() = default;
34
35
37
40 inline const Aws::String& GetETag() const { return m_eTag; }
41 template<typename ETagT = Aws::String>
42 void SetETag(ETagT&& value) { m_eTagHasBeenSet = true; m_eTag = std::forward<ETagT>(value); }
43 template<typename ETagT = Aws::String>
44 DescribeObjectResult& WithETag(ETagT&& value) { SetETag(std::forward<ETagT>(value)); return *this;}
46
48
51 inline const Aws::String& GetContentType() const { return m_contentType; }
52 template<typename ContentTypeT = Aws::String>
53 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
54 template<typename ContentTypeT = Aws::String>
55 DescribeObjectResult& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
57
59
62 inline long long GetContentLength() const { return m_contentLength; }
63 inline void SetContentLength(long long value) { m_contentLengthHasBeenSet = true; m_contentLength = value; }
64 inline DescribeObjectResult& WithContentLength(long long value) { SetContentLength(value); return *this;}
66
68
75 inline const Aws::String& GetCacheControl() const { return m_cacheControl; }
76 template<typename CacheControlT = Aws::String>
77 void SetCacheControl(CacheControlT&& value) { m_cacheControlHasBeenSet = true; m_cacheControl = std::forward<CacheControlT>(value); }
78 template<typename CacheControlT = Aws::String>
79 DescribeObjectResult& WithCacheControl(CacheControlT&& value) { SetCacheControl(std::forward<CacheControlT>(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
87 template<typename LastModifiedT = Aws::Utils::DateTime>
88 void SetLastModified(LastModifiedT&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::forward<LastModifiedT>(value); }
89 template<typename LastModifiedT = Aws::Utils::DateTime>
90 DescribeObjectResult& WithLastModified(LastModifiedT&& value) { SetLastModified(std::forward<LastModifiedT>(value)); return *this;}
92
94
95 inline const Aws::String& GetRequestId() const { return m_requestId; }
96 template<typename RequestIdT = Aws::String>
97 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
98 template<typename RequestIdT = Aws::String>
99 DescribeObjectResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
101 private:
102
103 Aws::String m_eTag;
104 bool m_eTagHasBeenSet = false;
105
106 Aws::String m_contentType;
107 bool m_contentTypeHasBeenSet = false;
108
109 long long m_contentLength{0};
110 bool m_contentLengthHasBeenSet = false;
111
112 Aws::String m_cacheControl;
113 bool m_cacheControlHasBeenSet = false;
114
115 Aws::Utils::DateTime m_lastModified{};
116 bool m_lastModifiedHasBeenSet = false;
117
118 Aws::String m_requestId;
119 bool m_requestIdHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace MediaStoreData
124} // namespace Aws
DescribeObjectResult & WithCacheControl(CacheControlT &&value)
AWS_MEDIASTOREDATA_API DescribeObjectResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeObjectResult & WithContentLength(long long value)
DescribeObjectResult & WithRequestId(RequestIdT &&value)
DescribeObjectResult & WithETag(ETagT &&value)
AWS_MEDIASTOREDATA_API DescribeObjectResult()=default
DescribeObjectResult & WithLastModified(LastModifiedT &&value)
DescribeObjectResult & WithContentType(ContentTypeT &&value)
AWS_MEDIASTOREDATA_API DescribeObjectResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetLastModified() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue