AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCacheControl(const Aws::String& value) { m_cacheControlHasBeenSet = true; m_cacheControl = value; }
50 inline void SetCacheControl(Aws::String&& value) { m_cacheControlHasBeenSet = true; m_cacheControl = std::move(value); }
51 inline void SetCacheControl(const char* value) { m_cacheControlHasBeenSet = true; m_cacheControl.assign(value); }
52 inline S3ObjectMetadata& WithCacheControl(const Aws::String& value) { SetCacheControl(value); return *this;}
53 inline S3ObjectMetadata& WithCacheControl(Aws::String&& value) { SetCacheControl(std::move(value)); return *this;}
54 inline S3ObjectMetadata& WithCacheControl(const char* value) { SetCacheControl(value); return *this;}
56
58
61 inline const Aws::String& GetContentDisposition() const{ return m_contentDisposition; }
62 inline bool ContentDispositionHasBeenSet() const { return m_contentDispositionHasBeenSet; }
63 inline void SetContentDisposition(const Aws::String& value) { m_contentDispositionHasBeenSet = true; m_contentDisposition = value; }
64 inline void SetContentDisposition(Aws::String&& value) { m_contentDispositionHasBeenSet = true; m_contentDisposition = std::move(value); }
65 inline void SetContentDisposition(const char* value) { m_contentDispositionHasBeenSet = true; m_contentDisposition.assign(value); }
66 inline S3ObjectMetadata& WithContentDisposition(const Aws::String& value) { SetContentDisposition(value); return *this;}
67 inline S3ObjectMetadata& WithContentDisposition(Aws::String&& value) { SetContentDisposition(std::move(value)); return *this;}
68 inline S3ObjectMetadata& WithContentDisposition(const char* value) { SetContentDisposition(value); return *this;}
70
72
75 inline const Aws::String& GetContentEncoding() const{ return m_contentEncoding; }
76 inline bool ContentEncodingHasBeenSet() const { return m_contentEncodingHasBeenSet; }
77 inline void SetContentEncoding(const Aws::String& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = value; }
78 inline void SetContentEncoding(Aws::String&& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = std::move(value); }
79 inline void SetContentEncoding(const char* value) { m_contentEncodingHasBeenSet = true; m_contentEncoding.assign(value); }
80 inline S3ObjectMetadata& WithContentEncoding(const Aws::String& value) { SetContentEncoding(value); return *this;}
81 inline S3ObjectMetadata& WithContentEncoding(Aws::String&& value) { SetContentEncoding(std::move(value)); return *this;}
82 inline S3ObjectMetadata& WithContentEncoding(const char* value) { SetContentEncoding(value); return *this;}
84
86
89 inline const Aws::String& GetContentLanguage() const{ return m_contentLanguage; }
90 inline bool ContentLanguageHasBeenSet() const { return m_contentLanguageHasBeenSet; }
91 inline void SetContentLanguage(const Aws::String& value) { m_contentLanguageHasBeenSet = true; m_contentLanguage = value; }
92 inline void SetContentLanguage(Aws::String&& value) { m_contentLanguageHasBeenSet = true; m_contentLanguage = std::move(value); }
93 inline void SetContentLanguage(const char* value) { m_contentLanguageHasBeenSet = true; m_contentLanguage.assign(value); }
94 inline S3ObjectMetadata& WithContentLanguage(const Aws::String& value) { SetContentLanguage(value); return *this;}
95 inline S3ObjectMetadata& WithContentLanguage(Aws::String&& value) { SetContentLanguage(std::move(value)); return *this;}
96 inline S3ObjectMetadata& WithContentLanguage(const char* value) { SetContentLanguage(value); return *this;}
98
100
103 inline const Aws::Map<Aws::String, Aws::String>& GetUserMetadata() const{ return m_userMetadata; }
104 inline bool UserMetadataHasBeenSet() const { return m_userMetadataHasBeenSet; }
105 inline void SetUserMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_userMetadataHasBeenSet = true; m_userMetadata = value; }
106 inline void SetUserMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_userMetadataHasBeenSet = true; m_userMetadata = std::move(value); }
108 inline S3ObjectMetadata& WithUserMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetUserMetadata(std::move(value)); return *this;}
109 inline S3ObjectMetadata& AddUserMetadata(const Aws::String& key, const Aws::String& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, value); return *this; }
110 inline S3ObjectMetadata& AddUserMetadata(Aws::String&& key, const Aws::String& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::move(key), value); return *this; }
111 inline S3ObjectMetadata& AddUserMetadata(const Aws::String& key, Aws::String&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, std::move(value)); return *this; }
112 inline S3ObjectMetadata& AddUserMetadata(Aws::String&& key, Aws::String&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::move(key), std::move(value)); return *this; }
113 inline S3ObjectMetadata& AddUserMetadata(const char* key, Aws::String&& value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, std::move(value)); return *this; }
114 inline S3ObjectMetadata& AddUserMetadata(Aws::String&& key, const char* value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(std::move(key), value); return *this; }
115 inline S3ObjectMetadata& AddUserMetadata(const char* key, const char* value) { m_userMetadataHasBeenSet = true; m_userMetadata.emplace(key, value); return *this; }
117
119
122 inline long long GetContentLength() const{ return m_contentLength; }
123 inline bool ContentLengthHasBeenSet() const { return m_contentLengthHasBeenSet; }
124 inline void SetContentLength(long long value) { m_contentLengthHasBeenSet = true; m_contentLength = value; }
125 inline S3ObjectMetadata& WithContentLength(long long value) { SetContentLength(value); return *this;}
127
129
132 inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
133 inline bool ContentMD5HasBeenSet() const { return m_contentMD5HasBeenSet; }
134 inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
135 inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = std::move(value); }
136 inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
137 inline S3ObjectMetadata& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
138 inline S3ObjectMetadata& WithContentMD5(Aws::String&& value) { SetContentMD5(std::move(value)); return *this;}
139 inline S3ObjectMetadata& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
141
143
146 inline const Aws::String& GetContentType() const{ return m_contentType; }
147 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
148 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
149 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
150 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
151 inline S3ObjectMetadata& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
152 inline S3ObjectMetadata& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
153 inline S3ObjectMetadata& WithContentType(const char* value) { SetContentType(value); return *this;}
155
157
160 inline const Aws::Utils::DateTime& GetHttpExpiresDate() const{ return m_httpExpiresDate; }
161 inline bool HttpExpiresDateHasBeenSet() const { return m_httpExpiresDateHasBeenSet; }
162 inline void SetHttpExpiresDate(const Aws::Utils::DateTime& value) { m_httpExpiresDateHasBeenSet = true; m_httpExpiresDate = value; }
163 inline void SetHttpExpiresDate(Aws::Utils::DateTime&& value) { m_httpExpiresDateHasBeenSet = true; m_httpExpiresDate = std::move(value); }
165 inline S3ObjectMetadata& WithHttpExpiresDate(Aws::Utils::DateTime&& value) { SetHttpExpiresDate(std::move(value)); return *this;}
167
169
172 inline bool GetRequesterCharged() const{ return m_requesterCharged; }
173 inline bool RequesterChargedHasBeenSet() const { return m_requesterChargedHasBeenSet; }
174 inline void SetRequesterCharged(bool value) { m_requesterChargedHasBeenSet = true; m_requesterCharged = value; }
175 inline S3ObjectMetadata& WithRequesterCharged(bool value) { SetRequesterCharged(value); return *this;}
177
179
183 inline const S3SSEAlgorithm& GetSSEAlgorithm() const{ return m_sSEAlgorithm; }
184 inline bool SSEAlgorithmHasBeenSet() const { return m_sSEAlgorithmHasBeenSet; }
185 inline void SetSSEAlgorithm(const S3SSEAlgorithm& value) { m_sSEAlgorithmHasBeenSet = true; m_sSEAlgorithm = value; }
186 inline void SetSSEAlgorithm(S3SSEAlgorithm&& value) { m_sSEAlgorithmHasBeenSet = true; m_sSEAlgorithm = std::move(value); }
187 inline S3ObjectMetadata& WithSSEAlgorithm(const S3SSEAlgorithm& value) { SetSSEAlgorithm(value); return *this;}
188 inline S3ObjectMetadata& WithSSEAlgorithm(S3SSEAlgorithm&& value) { SetSSEAlgorithm(std::move(value)); return *this;}
190 private:
191
192 Aws::String m_cacheControl;
193 bool m_cacheControlHasBeenSet = false;
194
195 Aws::String m_contentDisposition;
196 bool m_contentDispositionHasBeenSet = false;
197
198 Aws::String m_contentEncoding;
199 bool m_contentEncodingHasBeenSet = false;
200
201 Aws::String m_contentLanguage;
202 bool m_contentLanguageHasBeenSet = false;
203
205 bool m_userMetadataHasBeenSet = false;
206
207 long long m_contentLength;
208 bool m_contentLengthHasBeenSet = false;
209
210 Aws::String m_contentMD5;
211 bool m_contentMD5HasBeenSet = false;
212
213 Aws::String m_contentType;
214 bool m_contentTypeHasBeenSet = false;
215
216 Aws::Utils::DateTime m_httpExpiresDate;
217 bool m_httpExpiresDateHasBeenSet = false;
218
219 bool m_requesterCharged;
220 bool m_requesterChargedHasBeenSet = false;
221
222 S3SSEAlgorithm m_sSEAlgorithm;
223 bool m_sSEAlgorithmHasBeenSet = false;
224 };
225
226} // namespace Model
227} // namespace S3Control
228} // namespace Aws
S3ObjectMetadata & WithCacheControl(const Aws::String &value)
S3ObjectMetadata & WithHttpExpiresDate(Aws::Utils::DateTime &&value)
S3ObjectMetadata & WithSSEAlgorithm(const S3SSEAlgorithm &value)
const S3SSEAlgorithm & GetSSEAlgorithm() const
S3ObjectMetadata & WithContentLanguage(const char *value)
S3ObjectMetadata & WithCacheControl(const char *value)
void SetSSEAlgorithm(S3SSEAlgorithm &&value)
void SetUserMetadata(Aws::Map< Aws::String, Aws::String > &&value)
void SetContentDisposition(const char *value)
S3ObjectMetadata & WithCacheControl(Aws::String &&value)
S3ObjectMetadata & AddUserMetadata(const char *key, Aws::String &&value)
void SetHttpExpiresDate(Aws::Utils::DateTime &&value)
S3ObjectMetadata & WithContentType(const char *value)
S3ObjectMetadata & WithContentDisposition(const Aws::String &value)
void SetContentLanguage(Aws::String &&value)
void SetCacheControl(Aws::String &&value)
void SetContentEncoding(const Aws::String &value)
S3ObjectMetadata & AddUserMetadata(Aws::String &&key, const char *value)
S3ObjectMetadata & WithContentEncoding(const Aws::String &value)
const Aws::Utils::DateTime & GetHttpExpiresDate() const
void SetContentMD5(const Aws::String &value)
S3ObjectMetadata & WithContentMD5(const Aws::String &value)
S3ObjectMetadata & WithSSEAlgorithm(S3SSEAlgorithm &&value)
S3ObjectMetadata & WithContentDisposition(Aws::String &&value)
S3ObjectMetadata & WithContentEncoding(Aws::String &&value)
void SetCacheControl(const Aws::String &value)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::Map< Aws::String, Aws::String > & GetUserMetadata() const
S3ObjectMetadata & WithContentLanguage(const Aws::String &value)
void SetContentDisposition(const Aws::String &value)
S3ObjectMetadata & WithContentMD5(Aws::String &&value)
S3ObjectMetadata & WithContentLength(long long value)
void SetContentLanguage(const Aws::String &value)
S3ObjectMetadata & WithContentLanguage(Aws::String &&value)
S3ObjectMetadata & WithHttpExpiresDate(const Aws::Utils::DateTime &value)
S3ObjectMetadata & AddUserMetadata(const Aws::String &key, Aws::String &&value)
void SetContentEncoding(Aws::String &&value)
S3ObjectMetadata & WithContentType(Aws::String &&value)
AWS_S3CONTROL_API S3ObjectMetadata(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetCacheControl() const
S3ObjectMetadata & AddUserMetadata(const char *key, const char *value)
S3ObjectMetadata & WithUserMetadata(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetContentDisposition() const
void SetHttpExpiresDate(const Aws::Utils::DateTime &value)
S3ObjectMetadata & WithContentDisposition(const char *value)
const Aws::String & GetContentLanguage() const
void SetUserMetadata(const Aws::Map< Aws::String, Aws::String > &value)
S3ObjectMetadata & WithContentMD5(const char *value)
void SetContentDisposition(Aws::String &&value)
S3ObjectMetadata & AddUserMetadata(const Aws::String &key, const Aws::String &value)
S3ObjectMetadata & WithContentType(const Aws::String &value)
AWS_S3CONTROL_API S3ObjectMetadata & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetContentEncoding() const
S3ObjectMetadata & AddUserMetadata(Aws::String &&key, const Aws::String &value)
void SetSSEAlgorithm(const S3SSEAlgorithm &value)
const Aws::String & GetContentMD5() const
void SetContentType(const Aws::String &value)
S3ObjectMetadata & WithContentEncoding(const char *value)
S3ObjectMetadata & WithRequesterCharged(bool value)
const Aws::String & GetContentType() const
S3ObjectMetadata & WithUserMetadata(Aws::Map< Aws::String, Aws::String > &&value)
S3ObjectMetadata & AddUserMetadata(Aws::String &&key, Aws::String &&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