AWS SDK for C++  1.9.132
AWS SDK for C++
S3Storage.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <aws/core/utils/Array.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
50  inline const Aws::String& GetAWSAccessKeyId() const{ return m_aWSAccessKeyId; }
51 
58  inline bool AWSAccessKeyIdHasBeenSet() const { return m_aWSAccessKeyIdHasBeenSet; }
59 
66  inline void SetAWSAccessKeyId(const Aws::String& value) { m_aWSAccessKeyIdHasBeenSet = true; m_aWSAccessKeyId = value; }
67 
74  inline void SetAWSAccessKeyId(Aws::String&& value) { m_aWSAccessKeyIdHasBeenSet = true; m_aWSAccessKeyId = std::move(value); }
75 
82  inline void SetAWSAccessKeyId(const char* value) { m_aWSAccessKeyIdHasBeenSet = true; m_aWSAccessKeyId.assign(value); }
83 
90  inline S3Storage& WithAWSAccessKeyId(const Aws::String& value) { SetAWSAccessKeyId(value); return *this;}
91 
98  inline S3Storage& WithAWSAccessKeyId(Aws::String&& value) { SetAWSAccessKeyId(std::move(value)); return *this;}
99 
106  inline S3Storage& WithAWSAccessKeyId(const char* value) { SetAWSAccessKeyId(value); return *this;}
107 
108 
114  inline const Aws::String& GetBucket() const{ return m_bucket; }
115 
121  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
122 
128  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
129 
135  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
136 
142  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
143 
149  inline S3Storage& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
150 
156  inline S3Storage& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
157 
163  inline S3Storage& WithBucket(const char* value) { SetBucket(value); return *this;}
164 
165 
169  inline const Aws::String& GetPrefix() const{ return m_prefix; }
170 
174  inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
175 
179  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
180 
184  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
185 
189  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
190 
194  inline S3Storage& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
195 
199  inline S3Storage& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
200 
204  inline S3Storage& WithPrefix(const char* value) { SetPrefix(value); return *this;}
205 
206 
211  inline const Aws::Utils::ByteBuffer& GetUploadPolicy() const{ return m_uploadPolicy; }
212 
217  inline bool UploadPolicyHasBeenSet() const { return m_uploadPolicyHasBeenSet; }
218 
223  inline void SetUploadPolicy(const Aws::Utils::ByteBuffer& value) { m_uploadPolicyHasBeenSet = true; m_uploadPolicy = value; }
224 
229  inline void SetUploadPolicy(Aws::Utils::ByteBuffer&& value) { m_uploadPolicyHasBeenSet = true; m_uploadPolicy = std::move(value); }
230 
235  inline S3Storage& WithUploadPolicy(const Aws::Utils::ByteBuffer& value) { SetUploadPolicy(value); return *this;}
236 
241  inline S3Storage& WithUploadPolicy(Aws::Utils::ByteBuffer&& value) { SetUploadPolicy(std::move(value)); return *this;}
242 
243 
247  inline const Aws::String& GetUploadPolicySignature() const{ return m_uploadPolicySignature; }
248 
252  inline bool UploadPolicySignatureHasBeenSet() const { return m_uploadPolicySignatureHasBeenSet; }
253 
257  inline void SetUploadPolicySignature(const Aws::String& value) { m_uploadPolicySignatureHasBeenSet = true; m_uploadPolicySignature = value; }
258 
262  inline void SetUploadPolicySignature(Aws::String&& value) { m_uploadPolicySignatureHasBeenSet = true; m_uploadPolicySignature = std::move(value); }
263 
267  inline void SetUploadPolicySignature(const char* value) { m_uploadPolicySignatureHasBeenSet = true; m_uploadPolicySignature.assign(value); }
268 
272  inline S3Storage& WithUploadPolicySignature(const Aws::String& value) { SetUploadPolicySignature(value); return *this;}
273 
277  inline S3Storage& WithUploadPolicySignature(Aws::String&& value) { SetUploadPolicySignature(std::move(value)); return *this;}
278 
282  inline S3Storage& WithUploadPolicySignature(const char* value) { SetUploadPolicySignature(value); return *this;}
283 
284  private:
285 
286  Aws::String m_aWSAccessKeyId;
287  bool m_aWSAccessKeyIdHasBeenSet;
288 
289  Aws::String m_bucket;
290  bool m_bucketHasBeenSet;
291 
292  Aws::String m_prefix;
293  bool m_prefixHasBeenSet;
294 
295  Aws::Utils::ByteBuffer m_uploadPolicy;
296  bool m_uploadPolicyHasBeenSet;
297 
298  Aws::String m_uploadPolicySignature;
299  bool m_uploadPolicySignatureHasBeenSet;
300  };
301 
302 } // namespace Model
303 } // namespace EC2
304 } // namespace Aws
Aws::EC2::Model::S3Storage::SetBucket
void SetBucket(const char *value)
Definition: S3Storage.h:142
Aws::EC2::Model::S3Storage::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::S3Storage::SetAWSAccessKeyId
void SetAWSAccessKeyId(const char *value)
Definition: S3Storage.h:82
Aws::EC2::Model::S3Storage::GetAWSAccessKeyId
const Aws::String & GetAWSAccessKeyId() const
Definition: S3Storage.h:50
Aws::EC2::Model::S3Storage::UploadPolicyHasBeenSet
bool UploadPolicyHasBeenSet() const
Definition: S3Storage.h:217
Aws::EC2::Model::S3Storage::SetAWSAccessKeyId
void SetAWSAccessKeyId(Aws::String &&value)
Definition: S3Storage.h:74
Aws::EC2::Model::S3Storage::WithBucket
S3Storage & WithBucket(Aws::String &&value)
Definition: S3Storage.h:156
Aws::EC2::Model::S3Storage::WithBucket
S3Storage & WithBucket(const Aws::String &value)
Definition: S3Storage.h:149
Aws::EC2::Model::S3Storage::WithUploadPolicySignature
S3Storage & WithUploadPolicySignature(const Aws::String &value)
Definition: S3Storage.h:272
Aws::EC2::Model::S3Storage::GetUploadPolicy
const Aws::Utils::ByteBuffer & GetUploadPolicy() const
Definition: S3Storage.h:211
Aws::EC2::Model::S3Storage::SetUploadPolicy
void SetUploadPolicy(Aws::Utils::ByteBuffer &&value)
Definition: S3Storage.h:229
Aws::EC2::Model::S3Storage::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: S3Storage.h:121
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::S3Storage::SetAWSAccessKeyId
void SetAWSAccessKeyId(const Aws::String &value)
Definition: S3Storage.h:66
Aws::EC2::Model::S3Storage::SetPrefix
void SetPrefix(const Aws::String &value)
Definition: S3Storage.h:179
AWSStreamFwd.h
Aws::EC2::Model::S3Storage::SetUploadPolicySignature
void SetUploadPolicySignature(const char *value)
Definition: S3Storage.h:267
Aws::EC2::Model::S3Storage::GetPrefix
const Aws::String & GetPrefix() const
Definition: S3Storage.h:169
Aws::EC2::Model::S3Storage::AWSAccessKeyIdHasBeenSet
bool AWSAccessKeyIdHasBeenSet() const
Definition: S3Storage.h:58
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::S3Storage::SetUploadPolicySignature
void SetUploadPolicySignature(const Aws::String &value)
Definition: S3Storage.h:257
Aws::EC2::Model::S3Storage::WithUploadPolicySignature
S3Storage & WithUploadPolicySignature(Aws::String &&value)
Definition: S3Storage.h:277
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::S3Storage::SetPrefix
void SetPrefix(Aws::String &&value)
Definition: S3Storage.h:184
Aws::EC2::Model::S3Storage::GetBucket
const Aws::String & GetBucket() const
Definition: S3Storage.h:114
Aws::EC2::Model::S3Storage::SetPrefix
void SetPrefix(const char *value)
Definition: S3Storage.h:189
Aws::EC2::Model::S3Storage::S3Storage
S3Storage(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Array< unsigned char >
AWSString.h
Aws::EC2::Model::S3Storage::UploadPolicySignatureHasBeenSet
bool UploadPolicySignatureHasBeenSet() const
Definition: S3Storage.h:252
Aws::EC2::Model::S3Storage::WithAWSAccessKeyId
S3Storage & WithAWSAccessKeyId(const Aws::String &value)
Definition: S3Storage.h:90
Aws::EC2::Model::S3Storage
Definition: S3Storage.h:34
Aws::EC2::Model::S3Storage::WithPrefix
S3Storage & WithPrefix(const char *value)
Definition: S3Storage.h:204
Aws::EC2::Model::S3Storage::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition: S3Storage.h:174
Aws::EC2::Model::S3Storage::WithUploadPolicy
S3Storage & WithUploadPolicy(const Aws::Utils::ByteBuffer &value)
Definition: S3Storage.h:235
Aws::EC2::Model::S3Storage::operator=
S3Storage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::S3Storage::WithAWSAccessKeyId
S3Storage & WithAWSAccessKeyId(Aws::String &&value)
Definition: S3Storage.h:98
Aws::EC2::Model::S3Storage::SetBucket
void SetBucket(Aws::String &&value)
Definition: S3Storage.h:135
Aws::EC2::Model::S3Storage::WithBucket
S3Storage & WithBucket(const char *value)
Definition: S3Storage.h:163
Aws::EC2::Model::S3Storage::WithPrefix
S3Storage & WithPrefix(Aws::String &&value)
Definition: S3Storage.h:199
Aws::EC2::Model::S3Storage::GetUploadPolicySignature
const Aws::String & GetUploadPolicySignature() const
Definition: S3Storage.h:247
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::EC2::Model::S3Storage::WithPrefix
S3Storage & WithPrefix(const Aws::String &value)
Definition: S3Storage.h:194
Aws::EC2::Model::S3Storage::SetUploadPolicy
void SetUploadPolicy(const Aws::Utils::ByteBuffer &value)
Definition: S3Storage.h:223
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::S3Storage::S3Storage
S3Storage()
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::S3Storage::WithUploadPolicy
S3Storage & WithUploadPolicy(Aws::Utils::ByteBuffer &&value)
Definition: S3Storage.h:241
Aws::EC2::Model::S3Storage::SetBucket
void SetBucket(const Aws::String &value)
Definition: S3Storage.h:128
Aws::EC2::Model::S3Storage::WithUploadPolicySignature
S3Storage & WithUploadPolicySignature(const char *value)
Definition: S3Storage.h:282
EC2_EXPORTS.h
Aws::EC2::Model::S3Storage::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::S3Storage::SetUploadPolicySignature
void SetUploadPolicySignature(Aws::String &&value)
Definition: S3Storage.h:262
Aws::EC2::Model::S3Storage::WithAWSAccessKeyId
S3Storage & WithAWSAccessKeyId(const char *value)
Definition: S3Storage.h:106