AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
S3BucketDestination.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3control/S3Control_EXPORTS.h>
9#include <aws/s3control/model/Format.h>
10#include <aws/s3control/model/OutputSchemaVersion.h>
11#include <aws/s3control/model/StorageLensDataExportEncryption.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Control {
22namespace Model {
23
31 public:
32 AWS_S3CONTROL_API S3BucketDestination() = default;
33 AWS_S3CONTROL_API S3BucketDestination(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_S3CONTROL_API S3BucketDestination& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
37
39
42 inline Format GetFormat() const { return m_format; }
43 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
44 inline void SetFormat(Format value) {
45 m_formatHasBeenSet = true;
46 m_format = value;
47 }
49 SetFormat(value);
50 return *this;
51 }
53
55
58 inline OutputSchemaVersion GetOutputSchemaVersion() const { return m_outputSchemaVersion; }
59 inline bool OutputSchemaVersionHasBeenSet() const { return m_outputSchemaVersionHasBeenSet; }
61 m_outputSchemaVersionHasBeenSet = true;
62 m_outputSchemaVersion = value;
63 }
66 return *this;
67 }
69
71
74 inline const Aws::String& GetAccountId() const { return m_accountId; }
75 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
76 template <typename AccountIdT = Aws::String>
77 void SetAccountId(AccountIdT&& value) {
78 m_accountIdHasBeenSet = true;
79 m_accountId = std::forward<AccountIdT>(value);
80 }
81 template <typename AccountIdT = Aws::String>
82 S3BucketDestination& WithAccountId(AccountIdT&& value) {
83 SetAccountId(std::forward<AccountIdT>(value));
84 return *this;
85 }
87
89
95 inline const Aws::String& GetArn() const { return m_arn; }
96 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
97 template <typename ArnT = Aws::String>
98 void SetArn(ArnT&& value) {
99 m_arnHasBeenSet = true;
100 m_arn = std::forward<ArnT>(value);
101 }
102 template <typename ArnT = Aws::String>
104 SetArn(std::forward<ArnT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetPrefix() const { return m_prefix; }
115 inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
116 template <typename PrefixT = Aws::String>
117 void SetPrefix(PrefixT&& value) {
118 m_prefixHasBeenSet = true;
119 m_prefix = std::forward<PrefixT>(value);
120 }
121 template <typename PrefixT = Aws::String>
122 S3BucketDestination& WithPrefix(PrefixT&& value) {
123 SetPrefix(std::forward<PrefixT>(value));
124 return *this;
125 }
127
129
133 inline const StorageLensDataExportEncryption& GetEncryption() const { return m_encryption; }
134 inline bool EncryptionHasBeenSet() const { return m_encryptionHasBeenSet; }
135 template <typename EncryptionT = StorageLensDataExportEncryption>
136 void SetEncryption(EncryptionT&& value) {
137 m_encryptionHasBeenSet = true;
138 m_encryption = std::forward<EncryptionT>(value);
139 }
140 template <typename EncryptionT = StorageLensDataExportEncryption>
141 S3BucketDestination& WithEncryption(EncryptionT&& value) {
142 SetEncryption(std::forward<EncryptionT>(value));
143 return *this;
144 }
146 private:
147 Format m_format{Format::NOT_SET};
148
150
151 Aws::String m_accountId;
152
153 Aws::String m_arn;
154
155 Aws::String m_prefix;
156
157 StorageLensDataExportEncryption m_encryption;
158 bool m_formatHasBeenSet = false;
159 bool m_outputSchemaVersionHasBeenSet = false;
160 bool m_accountIdHasBeenSet = false;
161 bool m_arnHasBeenSet = false;
162 bool m_prefixHasBeenSet = false;
163 bool m_encryptionHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace S3Control
168} // namespace Aws
AWS_S3CONTROL_API S3BucketDestination()=default
S3BucketDestination & WithFormat(Format value)
S3BucketDestination & WithAccountId(AccountIdT &&value)
AWS_S3CONTROL_API S3BucketDestination & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetOutputSchemaVersion(OutputSchemaVersion value)
OutputSchemaVersion GetOutputSchemaVersion() const
S3BucketDestination & WithPrefix(PrefixT &&value)
const StorageLensDataExportEncryption & GetEncryption() const
AWS_S3CONTROL_API S3BucketDestination(const Aws::Utils::Xml::XmlNode &xmlNode)
S3BucketDestination & WithEncryption(EncryptionT &&value)
S3BucketDestination & WithArn(ArnT &&value)
S3BucketDestination & WithOutputSchemaVersion(OutputSchemaVersion value)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String