Struct aws_sdk_s3::model::source_selection_criteria::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for SourceSelectionCriteria
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn sse_kms_encrypted_objects(self, input: SseKmsEncryptedObjects) -> Self
pub fn sse_kms_encrypted_objects(self, input: SseKmsEncryptedObjects) -> Self
A container for filter information for the selection of Amazon S3 objects encrypted with Amazon Web Services KMS. If you include SourceSelectionCriteria
in the replication configuration, this element is required.
sourcepub fn set_sse_kms_encrypted_objects(
self,
input: Option<SseKmsEncryptedObjects>
) -> Self
pub fn set_sse_kms_encrypted_objects(
self,
input: Option<SseKmsEncryptedObjects>
) -> Self
A container for filter information for the selection of Amazon S3 objects encrypted with Amazon Web Services KMS. If you include SourceSelectionCriteria
in the replication configuration, this element is required.
Examples found in repository?
7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243
pub fn deser_structure_crate_model_source_selection_criteria(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::SourceSelectionCriteria, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::SourceSelectionCriteria::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("SseKmsEncryptedObjects") /* SseKmsEncryptedObjects com.amazonaws.s3#SourceSelectionCriteria$SseKmsEncryptedObjects */ => {
let var_396 =
Some(
crate::xml_deser::deser_structure_crate_model_sse_kms_encrypted_objects(&mut tag)
?
)
;
builder = builder.set_sse_kms_encrypted_objects(var_396);
}
,
s if s.matches("ReplicaModifications") /* ReplicaModifications com.amazonaws.s3#SourceSelectionCriteria$ReplicaModifications */ => {
let var_397 =
Some(
crate::xml_deser::deser_structure_crate_model_replica_modifications(&mut tag)
?
)
;
builder = builder.set_replica_modifications(var_397);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn replica_modifications(self, input: ReplicaModifications) -> Self
pub fn replica_modifications(self, input: ReplicaModifications) -> Self
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 Filter
is specified), you can specify this element and set the status to Enabled
to replicate modifications on replicas.
If you don't specify the Filter
element, Amazon S3 assumes that the replication configuration is the earlier version, V1. In the earlier version, this element is not allowed
sourcepub fn set_replica_modifications(
self,
input: Option<ReplicaModifications>
) -> Self
pub fn set_replica_modifications(
self,
input: Option<ReplicaModifications>
) -> Self
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 Filter
is specified), you can specify this element and set the status to Enabled
to replicate modifications on replicas.
If you don't specify the Filter
element, Amazon S3 assumes that the replication configuration is the earlier version, V1. In the earlier version, this element is not allowed
Examples found in repository?
7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243
pub fn deser_structure_crate_model_source_selection_criteria(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::SourceSelectionCriteria, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::SourceSelectionCriteria::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("SseKmsEncryptedObjects") /* SseKmsEncryptedObjects com.amazonaws.s3#SourceSelectionCriteria$SseKmsEncryptedObjects */ => {
let var_396 =
Some(
crate::xml_deser::deser_structure_crate_model_sse_kms_encrypted_objects(&mut tag)
?
)
;
builder = builder.set_sse_kms_encrypted_objects(var_396);
}
,
s if s.matches("ReplicaModifications") /* ReplicaModifications com.amazonaws.s3#SourceSelectionCriteria$ReplicaModifications */ => {
let var_397 =
Some(
crate::xml_deser::deser_structure_crate_model_replica_modifications(&mut tag)
?
)
;
builder = builder.set_replica_modifications(var_397);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> SourceSelectionCriteria
pub fn build(self) -> SourceSelectionCriteria
Consumes the builder and constructs a SourceSelectionCriteria
.
Examples found in repository?
7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243
pub fn deser_structure_crate_model_source_selection_criteria(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::SourceSelectionCriteria, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::SourceSelectionCriteria::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("SseKmsEncryptedObjects") /* SseKmsEncryptedObjects com.amazonaws.s3#SourceSelectionCriteria$SseKmsEncryptedObjects */ => {
let var_396 =
Some(
crate::xml_deser::deser_structure_crate_model_sse_kms_encrypted_objects(&mut tag)
?
)
;
builder = builder.set_sse_kms_encrypted_objects(var_396);
}
,
s if s.matches("ReplicaModifications") /* ReplicaModifications com.amazonaws.s3#SourceSelectionCriteria$ReplicaModifications */ => {
let var_397 =
Some(
crate::xml_deser::deser_structure_crate_model_replica_modifications(&mut tag)
?
)
;
builder = builder.set_replica_modifications(var_397);
}
,
_ => {}
}
}
Ok(builder.build())
}