AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3Storage.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EC2_API S3Storage();
37 AWS_EC2_API S3Storage(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_EC2_API S3Storage& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
52 inline const Aws::String& GetAWSAccessKeyId() const{ return m_aWSAccessKeyId; }
53 inline bool AWSAccessKeyIdHasBeenSet() const { return m_aWSAccessKeyIdHasBeenSet; }
54 inline void SetAWSAccessKeyId(const Aws::String& value) { m_aWSAccessKeyIdHasBeenSet = true; m_aWSAccessKeyId = value; }
55 inline void SetAWSAccessKeyId(Aws::String&& value) { m_aWSAccessKeyIdHasBeenSet = true; m_aWSAccessKeyId = std::move(value); }
56 inline void SetAWSAccessKeyId(const char* value) { m_aWSAccessKeyIdHasBeenSet = true; m_aWSAccessKeyId.assign(value); }
57 inline S3Storage& WithAWSAccessKeyId(const Aws::String& value) { SetAWSAccessKeyId(value); return *this;}
58 inline S3Storage& WithAWSAccessKeyId(Aws::String&& value) { SetAWSAccessKeyId(std::move(value)); return *this;}
59 inline S3Storage& WithAWSAccessKeyId(const char* value) { SetAWSAccessKeyId(value); return *this;}
61
63
68 inline const Aws::String& GetBucket() const{ return m_bucket; }
69 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
70 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
71 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
72 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
73 inline S3Storage& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
74 inline S3Storage& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
75 inline S3Storage& WithBucket(const char* value) { SetBucket(value); return *this;}
77
79
82 inline const Aws::String& GetPrefix() const{ return m_prefix; }
83 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
84 inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
85 inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
86 inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
87 inline S3Storage& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
88 inline S3Storage& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
89 inline S3Storage& WithPrefix(const char* value) { SetPrefix(value); return *this;}
91
93
97 inline const Aws::Utils::ByteBuffer& GetUploadPolicy() const{ return m_uploadPolicy; }
98 inline bool UploadPolicyHasBeenSet() const { return m_uploadPolicyHasBeenSet; }
99 inline void SetUploadPolicy(const Aws::Utils::ByteBuffer& value) { m_uploadPolicyHasBeenSet = true; m_uploadPolicy = value; }
100 inline void SetUploadPolicy(Aws::Utils::ByteBuffer&& value) { m_uploadPolicyHasBeenSet = true; m_uploadPolicy = std::move(value); }
101 inline S3Storage& WithUploadPolicy(const Aws::Utils::ByteBuffer& value) { SetUploadPolicy(value); return *this;}
102 inline S3Storage& WithUploadPolicy(Aws::Utils::ByteBuffer&& value) { SetUploadPolicy(std::move(value)); return *this;}
104
106
109 inline const Aws::String& GetUploadPolicySignature() const{ return m_uploadPolicySignature; }
110 inline bool UploadPolicySignatureHasBeenSet() const { return m_uploadPolicySignatureHasBeenSet; }
111 inline void SetUploadPolicySignature(const Aws::String& value) { m_uploadPolicySignatureHasBeenSet = true; m_uploadPolicySignature = value; }
112 inline void SetUploadPolicySignature(Aws::String&& value) { m_uploadPolicySignatureHasBeenSet = true; m_uploadPolicySignature = std::move(value); }
113 inline void SetUploadPolicySignature(const char* value) { m_uploadPolicySignatureHasBeenSet = true; m_uploadPolicySignature.assign(value); }
114 inline S3Storage& WithUploadPolicySignature(const Aws::String& value) { SetUploadPolicySignature(value); return *this;}
115 inline S3Storage& WithUploadPolicySignature(Aws::String&& value) { SetUploadPolicySignature(std::move(value)); return *this;}
116 inline S3Storage& WithUploadPolicySignature(const char* value) { SetUploadPolicySignature(value); return *this;}
118 private:
119
120 Aws::String m_aWSAccessKeyId;
121 bool m_aWSAccessKeyIdHasBeenSet = false;
122
123 Aws::String m_bucket;
124 bool m_bucketHasBeenSet = false;
125
126 Aws::String m_prefix;
127 bool m_prefixHasBeenSet = false;
128
129 Aws::Utils::ByteBuffer m_uploadPolicy;
130 bool m_uploadPolicyHasBeenSet = false;
131
132 Aws::String m_uploadPolicySignature;
133 bool m_uploadPolicySignatureHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace EC2
138} // namespace Aws
void SetAWSAccessKeyId(Aws::String &&value)
Definition S3Storage.h:55
S3Storage & WithBucket(const char *value)
Definition S3Storage.h:75
void SetPrefix(const Aws::String &value)
Definition S3Storage.h:84
void SetUploadPolicy(Aws::Utils::ByteBuffer &&value)
Definition S3Storage.h:100
AWS_EC2_API S3Storage(const Aws::Utils::Xml::XmlNode &xmlNode)
S3Storage & WithAWSAccessKeyId(const Aws::String &value)
Definition S3Storage.h:57
void SetUploadPolicySignature(const Aws::String &value)
Definition S3Storage.h:111
void SetPrefix(const char *value)
Definition S3Storage.h:86
const Aws::String & GetAWSAccessKeyId() const
Definition S3Storage.h:52
const Aws::String & GetPrefix() const
Definition S3Storage.h:82
void SetPrefix(Aws::String &&value)
Definition S3Storage.h:85
S3Storage & WithUploadPolicy(Aws::Utils::ByteBuffer &&value)
Definition S3Storage.h:102
const Aws::String & GetBucket() const
Definition S3Storage.h:68
const Aws::Utils::ByteBuffer & GetUploadPolicy() const
Definition S3Storage.h:97
void SetUploadPolicy(const Aws::Utils::ByteBuffer &value)
Definition S3Storage.h:99
bool UploadPolicyHasBeenSet() const
Definition S3Storage.h:98
S3Storage & WithBucket(const Aws::String &value)
Definition S3Storage.h:73
void SetBucket(const char *value)
Definition S3Storage.h:72
bool UploadPolicySignatureHasBeenSet() const
Definition S3Storage.h:110
S3Storage & WithPrefix(const Aws::String &value)
Definition S3Storage.h:87
void SetBucket(const Aws::String &value)
Definition S3Storage.h:70
void SetBucket(Aws::String &&value)
Definition S3Storage.h:71
AWS_EC2_API S3Storage & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
S3Storage & WithUploadPolicy(const Aws::Utils::ByteBuffer &value)
Definition S3Storage.h:101
const Aws::String & GetUploadPolicySignature() const
Definition S3Storage.h:109
bool AWSAccessKeyIdHasBeenSet() const
Definition S3Storage.h:53
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetAWSAccessKeyId(const char *value)
Definition S3Storage.h:56
S3Storage & WithBucket(Aws::String &&value)
Definition S3Storage.h:74
S3Storage & WithUploadPolicySignature(Aws::String &&value)
Definition S3Storage.h:115
S3Storage & WithAWSAccessKeyId(const char *value)
Definition S3Storage.h:59
bool PrefixHasBeenSet() const
Definition S3Storage.h:83
S3Storage & WithPrefix(const char *value)
Definition S3Storage.h:89
void SetUploadPolicySignature(const char *value)
Definition S3Storage.h:113
S3Storage & WithUploadPolicySignature(const char *value)
Definition S3Storage.h:116
S3Storage & WithAWSAccessKeyId(Aws::String &&value)
Definition S3Storage.h:58
S3Storage & WithUploadPolicySignature(const Aws::String &value)
Definition S3Storage.h:114
void SetAWSAccessKeyId(const Aws::String &value)
Definition S3Storage.h:54
bool BucketHasBeenSet() const
Definition S3Storage.h:69
S3Storage & WithPrefix(Aws::String &&value)
Definition S3Storage.h:88
void SetUploadPolicySignature(Aws::String &&value)
Definition S3Storage.h:112
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream