AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Destination.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3/model/StorageClass.h>
10#include <aws/s3/model/AccessControlTranslation.h>
11#include <aws/s3/model/EncryptionConfiguration.h>
12#include <aws/s3/model/ReplicationTime.h>
13#include <aws/s3/model/Metrics.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace S3
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_S3_API Destination();
41 AWS_S3_API Destination(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_S3_API Destination& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45
46
48
52 inline const Aws::String& GetBucket() const{ return m_bucket; }
53 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
54 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
55 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
56 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
57 inline Destination& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
58 inline Destination& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
59 inline Destination& WithBucket(const char* value) { SetBucket(value); return *this;}
61
63
73 inline const Aws::String& GetAccount() const{ return m_account; }
74 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
75 inline void SetAccount(const Aws::String& value) { m_accountHasBeenSet = true; m_account = value; }
76 inline void SetAccount(Aws::String&& value) { m_accountHasBeenSet = true; m_account = std::move(value); }
77 inline void SetAccount(const char* value) { m_accountHasBeenSet = true; m_account.assign(value); }
78 inline Destination& WithAccount(const Aws::String& value) { SetAccount(value); return *this;}
79 inline Destination& WithAccount(Aws::String&& value) { SetAccount(std::move(value)); return *this;}
80 inline Destination& WithAccount(const char* value) { SetAccount(value); return *this;}
82
84
92 inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
93 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
94 inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
95 inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
96 inline Destination& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
97 inline Destination& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
99
101
108 inline const AccessControlTranslation& GetAccessControlTranslation() const{ return m_accessControlTranslation; }
109 inline bool AccessControlTranslationHasBeenSet() const { return m_accessControlTranslationHasBeenSet; }
110 inline void SetAccessControlTranslation(const AccessControlTranslation& value) { m_accessControlTranslationHasBeenSet = true; m_accessControlTranslation = value; }
111 inline void SetAccessControlTranslation(AccessControlTranslation&& value) { m_accessControlTranslationHasBeenSet = true; m_accessControlTranslation = std::move(value); }
115
117
122 inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; }
123 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
124 inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; }
125 inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); }
129
131
137 inline const ReplicationTime& GetReplicationTime() const{ return m_replicationTime; }
138 inline bool ReplicationTimeHasBeenSet() const { return m_replicationTimeHasBeenSet; }
139 inline void SetReplicationTime(const ReplicationTime& value) { m_replicationTimeHasBeenSet = true; m_replicationTime = value; }
140 inline void SetReplicationTime(ReplicationTime&& value) { m_replicationTimeHasBeenSet = true; m_replicationTime = std::move(value); }
141 inline Destination& WithReplicationTime(const ReplicationTime& value) { SetReplicationTime(value); return *this;}
142 inline Destination& WithReplicationTime(ReplicationTime&& value) { SetReplicationTime(std::move(value)); return *this;}
144
146
150 inline const Metrics& GetMetrics() const{ return m_metrics; }
151 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
152 inline void SetMetrics(const Metrics& value) { m_metricsHasBeenSet = true; m_metrics = value; }
153 inline void SetMetrics(Metrics&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
154 inline Destination& WithMetrics(const Metrics& value) { SetMetrics(value); return *this;}
155 inline Destination& WithMetrics(Metrics&& value) { SetMetrics(std::move(value)); return *this;}
157 private:
158
159 Aws::String m_bucket;
160 bool m_bucketHasBeenSet = false;
161
162 Aws::String m_account;
163 bool m_accountHasBeenSet = false;
164
165 StorageClass m_storageClass;
166 bool m_storageClassHasBeenSet = false;
167
168 AccessControlTranslation m_accessControlTranslation;
169 bool m_accessControlTranslationHasBeenSet = false;
170
171 EncryptionConfiguration m_encryptionConfiguration;
172 bool m_encryptionConfigurationHasBeenSet = false;
173
174 ReplicationTime m_replicationTime;
175 bool m_replicationTimeHasBeenSet = false;
176
177 Metrics m_metrics;
178 bool m_metricsHasBeenSet = false;
179 };
180
181} // namespace Model
182} // namespace S3
183} // namespace Aws
void SetEncryptionConfiguration(const EncryptionConfiguration &value)
Destination & WithAccount(Aws::String &&value)
Definition Destination.h:79
const AccessControlTranslation & GetAccessControlTranslation() const
bool StorageClassHasBeenSet() const
Definition Destination.h:93
Destination & WithReplicationTime(ReplicationTime &&value)
void SetAccount(Aws::String &&value)
Definition Destination.h:76
Destination & WithReplicationTime(const ReplicationTime &value)
void SetAccessControlTranslation(const AccessControlTranslation &value)
Destination & WithMetrics(const Metrics &value)
Destination & WithBucket(Aws::String &&value)
Definition Destination.h:58
const StorageClass & GetStorageClass() const
Definition Destination.h:92
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Destination & WithAccessControlTranslation(AccessControlTranslation &&value)
AWS_S3_API Destination & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Destination & WithAccount(const Aws::String &value)
Definition Destination.h:78
Destination & WithBucket(const char *value)
Definition Destination.h:59
const ReplicationTime & GetReplicationTime() const
Destination & WithEncryptionConfiguration(const EncryptionConfiguration &value)
void SetBucket(const Aws::String &value)
Definition Destination.h:54
Destination & WithEncryptionConfiguration(EncryptionConfiguration &&value)
void SetEncryptionConfiguration(EncryptionConfiguration &&value)
void SetBucket(const char *value)
Definition Destination.h:56
const Aws::String & GetBucket() const
Definition Destination.h:52
void SetStorageClass(StorageClass &&value)
Definition Destination.h:95
Destination & WithAccount(const char *value)
Definition Destination.h:80
void SetMetrics(const Metrics &value)
void SetAccount(const char *value)
Definition Destination.h:77
bool ReplicationTimeHasBeenSet() const
const Aws::String & GetAccount() const
Definition Destination.h:73
bool AccessControlTranslationHasBeenSet() const
Destination & WithMetrics(Metrics &&value)
void SetAccount(const Aws::String &value)
Definition Destination.h:75
Destination & WithAccessControlTranslation(const AccessControlTranslation &value)
Destination & WithStorageClass(StorageClass &&value)
Definition Destination.h:97
Destination & WithStorageClass(const StorageClass &value)
Definition Destination.h:96
Destination & WithBucket(const Aws::String &value)
Definition Destination.h:57
void SetMetrics(Metrics &&value)
void SetReplicationTime(ReplicationTime &&value)
void SetBucket(Aws::String &&value)
Definition Destination.h:55
void SetReplicationTime(const ReplicationTime &value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
void SetStorageClass(const StorageClass &value)
Definition Destination.h:94
bool EncryptionConfigurationHasBeenSet() const
void SetAccessControlTranslation(AccessControlTranslation &&value)
AWS_S3_API Destination(const Aws::Utils::Xml::XmlNode &xmlNode)
const Metrics & GetMetrics() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String