AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
S3ObjectMetadata.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/s3control/model/S3SSEAlgorithm.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace S3Control
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_S3CONTROL_API S3ObjectMetadata() = default;
37 AWS_S3CONTROL_API S3ObjectMetadata(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_S3CONTROL_API S3ObjectMetadata& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
47 inline const Aws::String& GetCacheControl() const { return m_cacheControl; }
48 inline bool CacheControlHasBeenSet() const { return m_cacheControlHasBeenSet; }
49 template<typename CacheControlT = Aws::String>
50 void SetCacheControl(CacheControlT&& value) { m_cacheControlHasBeenSet = true; m_cacheControl = std::forward<CacheControlT>(value); }
51 template<typename CacheControlT = Aws::String>
52 S3ObjectMetadata& WithCacheControl(CacheControlT&& value) { SetCacheControl(std::forward<CacheControlT>(value)); return *this;}
54
56
59 inline const Aws::String& GetContentDisposition() const { return m_contentDisposition; }
60 inline bool ContentDispositionHasBeenSet() const { return m_contentDispositionHasBeenSet; }
61 template<typename ContentDispositionT = Aws::String>
62 void SetContentDisposition(ContentDispositionT&& value) { m_contentDispositionHasBeenSet = true; m_contentDisposition = std::forward<ContentDispositionT>(value); }
63 template<typename ContentDispositionT = Aws::String>
64 S3ObjectMetadata& WithContentDisposition(ContentDispositionT&& value) { SetContentDisposition(std::forward<ContentDispositionT>(value)); return *this;}
66
68
71 inline const Aws::String& GetContentEncoding() const { return m_contentEncoding; }
72 inline bool ContentEncodingHasBeenSet() const { return m_contentEncodingHasBeenSet; }
73 template<typename ContentEncodingT = Aws::String>
74 void SetContentEncoding(ContentEncodingT&& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = std::forward<ContentEncodingT>(value); }
75 template<typename ContentEncodingT = Aws::String>
76 S3ObjectMetadata& WithContentEncoding(ContentEncodingT&& value) { SetContentEncoding(std::forward<ContentEncodingT>(value)); return *this;}
78
80
83 inline const Aws::String& GetContentLanguage() const { return m_contentLanguage; }
84 inline bool ContentLanguageHasBeenSet() const { return m_contentLanguageHasBeenSet; }
85 template<typename ContentLanguageT = Aws::String>
86 void SetContentLanguage(ContentLanguageT&& value) { m_contentLanguageHasBeenSet = true; m_contentLanguage = std::forward<ContentLanguageT>(value); }
87 template<typename ContentLanguageT = Aws::String>
88 S3ObjectMetadata& WithContentLanguage(ContentLanguageT&& value) { SetContentLanguage(std::forward<ContentLanguageT>(value)); return *this;}
90
92
95 inline const Aws::Map<Aws::String, Aws::String>& GetUserMetadata() const { return m_userMetadata; }
96 inline bool UserMetadataHasBeenSet() const { return m_userMetadataHasBeenSet; }
97 template<typename UserMetadataT = Aws::Map<Aws::String, Aws::String>>
98 void SetUserMetadata(UserMetadataT&& value) { m_userMetadataHasBeenSet = true; m_userMetadata = std::forward<UserMetadataT>(value); }
99 template<typename UserMetadataT = Aws::Map<Aws::String, Aws::String>>
100 S3ObjectMetadata& WithUserMetadata(UserMetadataT&& value) { SetUserMetadata(std::forward<UserMetadataT>(value)); return *this;}
101 template<typename UserMetadataKeyT = Aws::String, typename UserMetadataValueT = Aws::String>
102 S3ObjectMetadata& AddUserMetadata(UserMetadataKeyT&& key, UserMetadataValueT&& value) {
103 m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::forward<UserMetadataKeyT>(key), std::forward<UserMetadataValueT>(value)); return *this;
104 }
106
108
111 inline long long GetContentLength() const { return m_contentLength; }
112 inline bool ContentLengthHasBeenSet() const { return m_contentLengthHasBeenSet; }
113 inline void SetContentLength(long long value) { m_contentLengthHasBeenSet = true; m_contentLength = value; }
114 inline S3ObjectMetadata& WithContentLength(long long value) { SetContentLength(value); return *this;}
116
118
121 inline const Aws::String& GetContentMD5() const { return m_contentMD5; }
122 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
123 template<typename ContentMD5T = Aws::String>
124 void SetContentMD5(ContentMD5T&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::forward<ContentMD5T>(value); }
125 template<typename ContentMD5T = Aws::String>
126 S3ObjectMetadata& WithContentMD5(ContentMD5T&& value) { SetContentMD5(std::forward<ContentMD5T>(value)); return *this;}
128
130
133 inline const Aws::String& GetContentType() const { return m_contentType; }
134 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
135 template<typename ContentTypeT = Aws::String>
136 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
137 template<typename ContentTypeT = Aws::String>
138 S3ObjectMetadata& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
140
142
145 inline const Aws::Utils::DateTime& GetHttpExpiresDate() const { return m_httpExpiresDate; }
146 inline bool HttpExpiresDateHasBeenSet() const { return m_httpExpiresDateHasBeenSet; }
147 template<typename HttpExpiresDateT = Aws::Utils::DateTime>
148 void SetHttpExpiresDate(HttpExpiresDateT&& value) { m_httpExpiresDateHasBeenSet = true; m_httpExpiresDate = std::forward<HttpExpiresDateT>(value); }
149 template<typename HttpExpiresDateT = Aws::Utils::DateTime>
150 S3ObjectMetadata& WithHttpExpiresDate(HttpExpiresDateT&& value) { SetHttpExpiresDate(std::forward<HttpExpiresDateT>(value)); return *this;}
152
154
157 inline bool GetRequesterCharged() const { return m_requesterCharged; }
158 inline bool RequesterChargedHasBeenSet() const { return m_requesterChargedHasBeenSet; }
159 inline void SetRequesterCharged(bool value) { m_requesterChargedHasBeenSet = true; m_requesterCharged = value; }
160 inline S3ObjectMetadata& WithRequesterCharged(bool value) { SetRequesterCharged(value); return *this;}
162
164
176 inline S3SSEAlgorithm GetSSEAlgorithm() const { return m_sSEAlgorithm; }
177 inline bool SSEAlgorithmHasBeenSet() const { return m_sSEAlgorithmHasBeenSet; }
178 inline void SetSSEAlgorithm(S3SSEAlgorithm value) { m_sSEAlgorithmHasBeenSet = true; m_sSEAlgorithm = value; }
179 inline S3ObjectMetadata& WithSSEAlgorithm(S3SSEAlgorithm value) { SetSSEAlgorithm(value); return *this;}
181 private:
182
183 Aws::String m_cacheControl;
184 bool m_cacheControlHasBeenSet = false;
185
186 Aws::String m_contentDisposition;
187 bool m_contentDispositionHasBeenSet = false;
188
189 Aws::String m_contentEncoding;
190 bool m_contentEncodingHasBeenSet = false;
191
192 Aws::String m_contentLanguage;
193 bool m_contentLanguageHasBeenSet = false;
194
196 bool m_userMetadataHasBeenSet = false;
197
198 long long m_contentLength{0};
199 bool m_contentLengthHasBeenSet = false;
200
201 Aws::String m_contentMD5;
202 bool m_contentMD5HasBeenSet = false;
203
204 Aws::String m_contentType;
205 bool m_contentTypeHasBeenSet = false;
206
207 Aws::Utils::DateTime m_httpExpiresDate{};
208 bool m_httpExpiresDateHasBeenSet = false;
209
210 bool m_requesterCharged{false};
211 bool m_requesterChargedHasBeenSet = false;
212
214 bool m_sSEAlgorithmHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace S3Control
219} // namespace Aws
S3ObjectMetadata & WithCacheControl(CacheControlT &&value)
void SetUserMetadata(UserMetadataT &&value)
void SetContentEncoding(ContentEncodingT &&value)
void SetHttpExpiresDate(HttpExpiresDateT &&value)
S3ObjectMetadata & WithHttpExpiresDate(HttpExpiresDateT &&value)
S3ObjectMetadata & WithContentLanguage(ContentLanguageT &&value)
void SetContentType(ContentTypeT &&value)
S3ObjectMetadata & WithContentDisposition(ContentDispositionT &&value)
void SetContentDisposition(ContentDispositionT &&value)
AWS_S3CONTROL_API S3ObjectMetadata()=default
const Aws::Utils::DateTime & GetHttpExpiresDate() const
S3ObjectMetadata & WithContentEncoding(ContentEncodingT &&value)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::Map< Aws::String, Aws::String > & GetUserMetadata() const
S3ObjectMetadata & WithContentLength(long long value)
void SetContentLanguage(ContentLanguageT &&value)
AWS_S3CONTROL_API S3ObjectMetadata(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetCacheControl() const
const Aws::String & GetContentDisposition() const
S3ObjectMetadata & WithContentType(ContentTypeT &&value)
void SetCacheControl(CacheControlT &&value)
const Aws::String & GetContentLanguage() const
S3ObjectMetadata & WithSSEAlgorithm(S3SSEAlgorithm value)
S3ObjectMetadata & WithContentMD5(ContentMD5T &&value)
S3ObjectMetadata & WithUserMetadata(UserMetadataT &&value)
void SetSSEAlgorithm(S3SSEAlgorithm value)
AWS_S3CONTROL_API S3ObjectMetadata & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetContentEncoding() const
const Aws::String & GetContentMD5() const
S3ObjectMetadata & WithRequesterCharged(bool value)
const Aws::String & GetContentType() const
S3ObjectMetadata & AddUserMetadata(UserMetadataKeyT &&key, UserMetadataValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String