1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/s3/S3_EXPORTS.h>
#include <aws/s3/model/SseKmsEncryptedObjects.h>
#include <aws/s3/model/ReplicaModifications.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace S3
{
namespace Model
{
/**
* <p>A container that describes additional filters for identifying the source
* objects that you want to replicate. You can choose to enable or disable the
* replication of these objects. Currently, Amazon S3 supports only the filter that
* you can specify for objects created with server-side encryption using a customer
* managed key stored in Amazon Web Services Key Management Service
* (SSE-KMS).</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/SourceSelectionCriteria">AWS
* API Reference</a></p>
*/
class SourceSelectionCriteria
{
public:
AWS_S3_API SourceSelectionCriteria();
AWS_S3_API SourceSelectionCriteria(const Aws::Utils::Xml::XmlNode& xmlNode);
AWS_S3_API SourceSelectionCriteria& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
/**
* <p> A container for filter information for the selection of Amazon S3 objects
* encrypted with Amazon Web Services KMS. If you include
* <code>SourceSelectionCriteria</code> in the replication configuration, this
* element is required. </p>
*/
inline const SseKmsEncryptedObjects& GetSseKmsEncryptedObjects() const{ return m_sseKmsEncryptedObjects; }
/**
* <p> A container for filter information for the selection of Amazon S3 objects
* encrypted with Amazon Web Services KMS. If you include
* <code>SourceSelectionCriteria</code> in the replication configuration, this
* element is required. </p>
*/
inline bool SseKmsEncryptedObjectsHasBeenSet() const { return m_sseKmsEncryptedObjectsHasBeenSet; }
/**
* <p> A container for filter information for the selection of Amazon S3 objects
* encrypted with Amazon Web Services KMS. If you include
* <code>SourceSelectionCriteria</code> in the replication configuration, this
* element is required. </p>
*/
inline void SetSseKmsEncryptedObjects(const SseKmsEncryptedObjects& value) { m_sseKmsEncryptedObjectsHasBeenSet = true; m_sseKmsEncryptedObjects = value; }
/**
* <p> A container for filter information for the selection of Amazon S3 objects
* encrypted with Amazon Web Services KMS. If you include
* <code>SourceSelectionCriteria</code> in the replication configuration, this
* element is required. </p>
*/
inline void SetSseKmsEncryptedObjects(SseKmsEncryptedObjects&& value) { m_sseKmsEncryptedObjectsHasBeenSet = true; m_sseKmsEncryptedObjects = std::move(value); }
/**
* <p> A container for filter information for the selection of Amazon S3 objects
* encrypted with Amazon Web Services KMS. If you include
* <code>SourceSelectionCriteria</code> in the replication configuration, this
* element is required. </p>
*/
inline SourceSelectionCriteria& WithSseKmsEncryptedObjects(const SseKmsEncryptedObjects& value) { SetSseKmsEncryptedObjects(value); return *this;}
/**
* <p> A container for filter information for the selection of Amazon S3 objects
* encrypted with Amazon Web Services KMS. If you include
* <code>SourceSelectionCriteria</code> in the replication configuration, this
* element is required. </p>
*/
inline SourceSelectionCriteria& WithSseKmsEncryptedObjects(SseKmsEncryptedObjects&& value) { SetSseKmsEncryptedObjects(std::move(value)); return *this;}
/**
* <p>A filter that you can specify for selections for modifications on replicas.
* Amazon S3 doesn't replicate replica modifications by default. In the latest
* version of replication configuration (when <code>Filter</code> is specified),
* you can specify this element and set the status to <code>Enabled</code> to
* replicate modifications on replicas. </p> <p> If you don't specify the
* <code>Filter</code> element, Amazon S3 assumes that the replication
* configuration is the earlier version, V1. In the earlier version, this element
* is not allowed</p>
*/
inline const ReplicaModifications& GetReplicaModifications() const{ return m_replicaModifications; }
/**
* <p>A filter that you can specify for selections for modifications on replicas.
* Amazon S3 doesn't replicate replica modifications by default. In the latest
* version of replication configuration (when <code>Filter</code> is specified),
* you can specify this element and set the status to <code>Enabled</code> to
* replicate modifications on replicas. </p> <p> If you don't specify the
* <code>Filter</code> element, Amazon S3 assumes that the replication
* configuration is the earlier version, V1. In the earlier version, this element
* is not allowed</p>
*/
inline bool ReplicaModificationsHasBeenSet() const { return m_replicaModificationsHasBeenSet; }
/**
* <p>A filter that you can specify for selections for modifications on replicas.
* Amazon S3 doesn't replicate replica modifications by default. In the latest
* version of replication configuration (when <code>Filter</code> is specified),
* you can specify this element and set the status to <code>Enabled</code> to
* replicate modifications on replicas. </p> <p> If you don't specify the
* <code>Filter</code> element, Amazon S3 assumes that the replication
* configuration is the earlier version, V1. In the earlier version, this element
* is not allowed</p>
*/
inline void SetReplicaModifications(const ReplicaModifications& value) { m_replicaModificationsHasBeenSet = true; m_replicaModifications = value; }
/**
* <p>A filter that you can specify for selections for modifications on replicas.
* Amazon S3 doesn't replicate replica modifications by default. In the latest
* version of replication configuration (when <code>Filter</code> is specified),
* you can specify this element and set the status to <code>Enabled</code> to
* replicate modifications on replicas. </p> <p> If you don't specify the
* <code>Filter</code> element, Amazon S3 assumes that the replication
* configuration is the earlier version, V1. In the earlier version, this element
* is not allowed</p>
*/
inline void SetReplicaModifications(ReplicaModifications&& value) { m_replicaModificationsHasBeenSet = true; m_replicaModifications = std::move(value); }
/**
* <p>A filter that you can specify for selections for modifications on replicas.
* Amazon S3 doesn't replicate replica modifications by default. In the latest
* version of replication configuration (when <code>Filter</code> is specified),
* you can specify this element and set the status to <code>Enabled</code> to
* replicate modifications on replicas. </p> <p> If you don't specify the
* <code>Filter</code> element, Amazon S3 assumes that the replication
* configuration is the earlier version, V1. In the earlier version, this element
* is not allowed</p>
*/
inline SourceSelectionCriteria& WithReplicaModifications(const ReplicaModifications& value) { SetReplicaModifications(value); return *this;}
/**
* <p>A filter that you can specify for selections for modifications on replicas.
* Amazon S3 doesn't replicate replica modifications by default. In the latest
* version of replication configuration (when <code>Filter</code> is specified),
* you can specify this element and set the status to <code>Enabled</code> to
* replicate modifications on replicas. </p> <p> If you don't specify the
* <code>Filter</code> element, Amazon S3 assumes that the replication
* configuration is the earlier version, V1. In the earlier version, this element
* is not allowed</p>
*/
inline SourceSelectionCriteria& WithReplicaModifications(ReplicaModifications&& value) { SetReplicaModifications(std::move(value)); return *this;}
private:
SseKmsEncryptedObjects m_sseKmsEncryptedObjects;
bool m_sseKmsEncryptedObjectsHasBeenSet = false;
ReplicaModifications m_replicaModifications;
bool m_replicaModificationsHasBeenSet = false;
};
} // namespace Model
} // namespace S3
} // namespace Aws
|