Struct aws_sdk_s3::model::destination::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Destination
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn bucket(self, input: impl Into<String>) -> Self
pub fn bucket(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.
sourcepub fn set_bucket(self, input: Option<String>) -> Self
pub fn set_bucket(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.
Examples found in repository?
7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363
pub fn deser_structure_crate_model_destination(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Destination, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Destination::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Bucket") /* Bucket com.amazonaws.s3#Destination$Bucket */ => {
let var_399 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_bucket(var_399);
}
,
s if s.matches("Account") /* Account com.amazonaws.s3#Destination$Account */ => {
let var_400 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_account(var_400);
}
,
s if s.matches("StorageClass") /* StorageClass com.amazonaws.s3#Destination$StorageClass */ => {
let var_401 =
Some(
Result::<crate::model::StorageClass, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StorageClass::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_storage_class(var_401);
}
,
s if s.matches("AccessControlTranslation") /* AccessControlTranslation com.amazonaws.s3#Destination$AccessControlTranslation */ => {
let var_402 =
Some(
crate::xml_deser::deser_structure_crate_model_access_control_translation(&mut tag)
?
)
;
builder = builder.set_access_control_translation(var_402);
}
,
s if s.matches("EncryptionConfiguration") /* EncryptionConfiguration com.amazonaws.s3#Destination$EncryptionConfiguration */ => {
let var_403 =
Some(
crate::xml_deser::deser_structure_crate_model_encryption_configuration(&mut tag)
?
)
;
builder = builder.set_encryption_configuration(var_403);
}
,
s if s.matches("ReplicationTime") /* ReplicationTime com.amazonaws.s3#Destination$ReplicationTime */ => {
let var_404 =
Some(
crate::xml_deser::deser_structure_crate_model_replication_time(&mut tag)
?
)
;
builder = builder.set_replication_time(var_404);
}
,
s if s.matches("Metrics") /* Metrics com.amazonaws.s3#Destination$Metrics */ => {
let var_405 =
Some(
crate::xml_deser::deser_structure_crate_model_metrics(&mut tag)
?
)
;
builder = builder.set_metrics(var_405);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn account(self, input: impl Into<String>) -> Self
pub fn account(self, input: impl Into<String>) -> Self
Destination bucket owner account ID. In a cross-account scenario, if you direct Amazon S3 to change replica ownership to the Amazon Web Services account that owns the destination bucket by specifying the AccessControlTranslation
property, this is the account ID of the destination bucket owner. For more information, see Replication Additional Configuration: Changing the Replica Owner in the Amazon S3 User Guide.
sourcepub fn set_account(self, input: Option<String>) -> Self
pub fn set_account(self, input: Option<String>) -> Self
Destination bucket owner account ID. In a cross-account scenario, if you direct Amazon S3 to change replica ownership to the Amazon Web Services account that owns the destination bucket by specifying the AccessControlTranslation
property, this is the account ID of the destination bucket owner. For more information, see Replication Additional Configuration: Changing the Replica Owner in the Amazon S3 User Guide.
Examples found in repository?
7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363
pub fn deser_structure_crate_model_destination(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Destination, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Destination::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Bucket") /* Bucket com.amazonaws.s3#Destination$Bucket */ => {
let var_399 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_bucket(var_399);
}
,
s if s.matches("Account") /* Account com.amazonaws.s3#Destination$Account */ => {
let var_400 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_account(var_400);
}
,
s if s.matches("StorageClass") /* StorageClass com.amazonaws.s3#Destination$StorageClass */ => {
let var_401 =
Some(
Result::<crate::model::StorageClass, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StorageClass::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_storage_class(var_401);
}
,
s if s.matches("AccessControlTranslation") /* AccessControlTranslation com.amazonaws.s3#Destination$AccessControlTranslation */ => {
let var_402 =
Some(
crate::xml_deser::deser_structure_crate_model_access_control_translation(&mut tag)
?
)
;
builder = builder.set_access_control_translation(var_402);
}
,
s if s.matches("EncryptionConfiguration") /* EncryptionConfiguration com.amazonaws.s3#Destination$EncryptionConfiguration */ => {
let var_403 =
Some(
crate::xml_deser::deser_structure_crate_model_encryption_configuration(&mut tag)
?
)
;
builder = builder.set_encryption_configuration(var_403);
}
,
s if s.matches("ReplicationTime") /* ReplicationTime com.amazonaws.s3#Destination$ReplicationTime */ => {
let var_404 =
Some(
crate::xml_deser::deser_structure_crate_model_replication_time(&mut tag)
?
)
;
builder = builder.set_replication_time(var_404);
}
,
s if s.matches("Metrics") /* Metrics com.amazonaws.s3#Destination$Metrics */ => {
let var_405 =
Some(
crate::xml_deser::deser_structure_crate_model_metrics(&mut tag)
?
)
;
builder = builder.set_metrics(var_405);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn storage_class(self, input: StorageClass) -> Self
pub fn storage_class(self, input: StorageClass) -> Self
The storage class to use when replicating objects, such as S3 Standard or reduced redundancy. By default, Amazon S3 uses the storage class of the source object to create the object replica.
For valid values, see the StorageClass
element of the PUT Bucket replication action in the Amazon S3 API Reference.
sourcepub fn set_storage_class(self, input: Option<StorageClass>) -> Self
pub fn set_storage_class(self, input: Option<StorageClass>) -> Self
The storage class to use when replicating objects, such as S3 Standard or reduced redundancy. By default, Amazon S3 uses the storage class of the source object to create the object replica.
For valid values, see the StorageClass
element of the PUT Bucket replication action in the Amazon S3 API Reference.
Examples found in repository?
7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363
pub fn deser_structure_crate_model_destination(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Destination, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Destination::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Bucket") /* Bucket com.amazonaws.s3#Destination$Bucket */ => {
let var_399 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_bucket(var_399);
}
,
s if s.matches("Account") /* Account com.amazonaws.s3#Destination$Account */ => {
let var_400 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_account(var_400);
}
,
s if s.matches("StorageClass") /* StorageClass com.amazonaws.s3#Destination$StorageClass */ => {
let var_401 =
Some(
Result::<crate::model::StorageClass, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StorageClass::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_storage_class(var_401);
}
,
s if s.matches("AccessControlTranslation") /* AccessControlTranslation com.amazonaws.s3#Destination$AccessControlTranslation */ => {
let var_402 =
Some(
crate::xml_deser::deser_structure_crate_model_access_control_translation(&mut tag)
?
)
;
builder = builder.set_access_control_translation(var_402);
}
,
s if s.matches("EncryptionConfiguration") /* EncryptionConfiguration com.amazonaws.s3#Destination$EncryptionConfiguration */ => {
let var_403 =
Some(
crate::xml_deser::deser_structure_crate_model_encryption_configuration(&mut tag)
?
)
;
builder = builder.set_encryption_configuration(var_403);
}
,
s if s.matches("ReplicationTime") /* ReplicationTime com.amazonaws.s3#Destination$ReplicationTime */ => {
let var_404 =
Some(
crate::xml_deser::deser_structure_crate_model_replication_time(&mut tag)
?
)
;
builder = builder.set_replication_time(var_404);
}
,
s if s.matches("Metrics") /* Metrics com.amazonaws.s3#Destination$Metrics */ => {
let var_405 =
Some(
crate::xml_deser::deser_structure_crate_model_metrics(&mut tag)
?
)
;
builder = builder.set_metrics(var_405);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn access_control_translation(self, input: AccessControlTranslation) -> Self
pub fn access_control_translation(self, input: AccessControlTranslation) -> Self
Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the Amazon Web Services account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same Amazon Web Services account that owns the source object.
sourcepub fn set_access_control_translation(
self,
input: Option<AccessControlTranslation>
) -> Self
pub fn set_access_control_translation(
self,
input: Option<AccessControlTranslation>
) -> Self
Specify this only in a cross-account scenario (where source and destination bucket owners are not the same), and you want to change replica ownership to the Amazon Web Services account that owns the destination bucket. If this is not specified in the replication configuration, the replicas are owned by same Amazon Web Services account that owns the source object.
Examples found in repository?
7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363
pub fn deser_structure_crate_model_destination(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Destination, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Destination::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Bucket") /* Bucket com.amazonaws.s3#Destination$Bucket */ => {
let var_399 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_bucket(var_399);
}
,
s if s.matches("Account") /* Account com.amazonaws.s3#Destination$Account */ => {
let var_400 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_account(var_400);
}
,
s if s.matches("StorageClass") /* StorageClass com.amazonaws.s3#Destination$StorageClass */ => {
let var_401 =
Some(
Result::<crate::model::StorageClass, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StorageClass::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_storage_class(var_401);
}
,
s if s.matches("AccessControlTranslation") /* AccessControlTranslation com.amazonaws.s3#Destination$AccessControlTranslation */ => {
let var_402 =
Some(
crate::xml_deser::deser_structure_crate_model_access_control_translation(&mut tag)
?
)
;
builder = builder.set_access_control_translation(var_402);
}
,
s if s.matches("EncryptionConfiguration") /* EncryptionConfiguration com.amazonaws.s3#Destination$EncryptionConfiguration */ => {
let var_403 =
Some(
crate::xml_deser::deser_structure_crate_model_encryption_configuration(&mut tag)
?
)
;
builder = builder.set_encryption_configuration(var_403);
}
,
s if s.matches("ReplicationTime") /* ReplicationTime com.amazonaws.s3#Destination$ReplicationTime */ => {
let var_404 =
Some(
crate::xml_deser::deser_structure_crate_model_replication_time(&mut tag)
?
)
;
builder = builder.set_replication_time(var_404);
}
,
s if s.matches("Metrics") /* Metrics com.amazonaws.s3#Destination$Metrics */ => {
let var_405 =
Some(
crate::xml_deser::deser_structure_crate_model_metrics(&mut tag)
?
)
;
builder = builder.set_metrics(var_405);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn encryption_configuration(self, input: EncryptionConfiguration) -> Self
pub fn encryption_configuration(self, input: EncryptionConfiguration) -> Self
A container that provides information about encryption. If SourceSelectionCriteria
is specified, you must specify this element.
sourcepub fn set_encryption_configuration(
self,
input: Option<EncryptionConfiguration>
) -> Self
pub fn set_encryption_configuration(
self,
input: Option<EncryptionConfiguration>
) -> Self
A container that provides information about encryption. If SourceSelectionCriteria
is specified, you must specify this element.
Examples found in repository?
7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363
pub fn deser_structure_crate_model_destination(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Destination, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Destination::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Bucket") /* Bucket com.amazonaws.s3#Destination$Bucket */ => {
let var_399 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_bucket(var_399);
}
,
s if s.matches("Account") /* Account com.amazonaws.s3#Destination$Account */ => {
let var_400 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_account(var_400);
}
,
s if s.matches("StorageClass") /* StorageClass com.amazonaws.s3#Destination$StorageClass */ => {
let var_401 =
Some(
Result::<crate::model::StorageClass, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StorageClass::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_storage_class(var_401);
}
,
s if s.matches("AccessControlTranslation") /* AccessControlTranslation com.amazonaws.s3#Destination$AccessControlTranslation */ => {
let var_402 =
Some(
crate::xml_deser::deser_structure_crate_model_access_control_translation(&mut tag)
?
)
;
builder = builder.set_access_control_translation(var_402);
}
,
s if s.matches("EncryptionConfiguration") /* EncryptionConfiguration com.amazonaws.s3#Destination$EncryptionConfiguration */ => {
let var_403 =
Some(
crate::xml_deser::deser_structure_crate_model_encryption_configuration(&mut tag)
?
)
;
builder = builder.set_encryption_configuration(var_403);
}
,
s if s.matches("ReplicationTime") /* ReplicationTime com.amazonaws.s3#Destination$ReplicationTime */ => {
let var_404 =
Some(
crate::xml_deser::deser_structure_crate_model_replication_time(&mut tag)
?
)
;
builder = builder.set_replication_time(var_404);
}
,
s if s.matches("Metrics") /* Metrics com.amazonaws.s3#Destination$Metrics */ => {
let var_405 =
Some(
crate::xml_deser::deser_structure_crate_model_metrics(&mut tag)
?
)
;
builder = builder.set_metrics(var_405);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn replication_time(self, input: ReplicationTime) -> Self
pub fn replication_time(self, input: ReplicationTime) -> Self
A container specifying S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. Must be specified together with a Metrics
block.
sourcepub fn set_replication_time(self, input: Option<ReplicationTime>) -> Self
pub fn set_replication_time(self, input: Option<ReplicationTime>) -> Self
A container specifying S3 Replication Time Control (S3 RTC), including whether S3 RTC is enabled and the time when all objects and operations on objects must be replicated. Must be specified together with a Metrics
block.
Examples found in repository?
7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363
pub fn deser_structure_crate_model_destination(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Destination, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Destination::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Bucket") /* Bucket com.amazonaws.s3#Destination$Bucket */ => {
let var_399 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_bucket(var_399);
}
,
s if s.matches("Account") /* Account com.amazonaws.s3#Destination$Account */ => {
let var_400 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_account(var_400);
}
,
s if s.matches("StorageClass") /* StorageClass com.amazonaws.s3#Destination$StorageClass */ => {
let var_401 =
Some(
Result::<crate::model::StorageClass, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StorageClass::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_storage_class(var_401);
}
,
s if s.matches("AccessControlTranslation") /* AccessControlTranslation com.amazonaws.s3#Destination$AccessControlTranslation */ => {
let var_402 =
Some(
crate::xml_deser::deser_structure_crate_model_access_control_translation(&mut tag)
?
)
;
builder = builder.set_access_control_translation(var_402);
}
,
s if s.matches("EncryptionConfiguration") /* EncryptionConfiguration com.amazonaws.s3#Destination$EncryptionConfiguration */ => {
let var_403 =
Some(
crate::xml_deser::deser_structure_crate_model_encryption_configuration(&mut tag)
?
)
;
builder = builder.set_encryption_configuration(var_403);
}
,
s if s.matches("ReplicationTime") /* ReplicationTime com.amazonaws.s3#Destination$ReplicationTime */ => {
let var_404 =
Some(
crate::xml_deser::deser_structure_crate_model_replication_time(&mut tag)
?
)
;
builder = builder.set_replication_time(var_404);
}
,
s if s.matches("Metrics") /* Metrics com.amazonaws.s3#Destination$Metrics */ => {
let var_405 =
Some(
crate::xml_deser::deser_structure_crate_model_metrics(&mut tag)
?
)
;
builder = builder.set_metrics(var_405);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn metrics(self, input: Metrics) -> Self
pub fn metrics(self, input: Metrics) -> Self
A container specifying replication metrics-related settings enabling replication metrics and events.
sourcepub fn set_metrics(self, input: Option<Metrics>) -> Self
pub fn set_metrics(self, input: Option<Metrics>) -> Self
A container specifying replication metrics-related settings enabling replication metrics and events.
Examples found in repository?
7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363
pub fn deser_structure_crate_model_destination(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Destination, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Destination::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Bucket") /* Bucket com.amazonaws.s3#Destination$Bucket */ => {
let var_399 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_bucket(var_399);
}
,
s if s.matches("Account") /* Account com.amazonaws.s3#Destination$Account */ => {
let var_400 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_account(var_400);
}
,
s if s.matches("StorageClass") /* StorageClass com.amazonaws.s3#Destination$StorageClass */ => {
let var_401 =
Some(
Result::<crate::model::StorageClass, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StorageClass::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_storage_class(var_401);
}
,
s if s.matches("AccessControlTranslation") /* AccessControlTranslation com.amazonaws.s3#Destination$AccessControlTranslation */ => {
let var_402 =
Some(
crate::xml_deser::deser_structure_crate_model_access_control_translation(&mut tag)
?
)
;
builder = builder.set_access_control_translation(var_402);
}
,
s if s.matches("EncryptionConfiguration") /* EncryptionConfiguration com.amazonaws.s3#Destination$EncryptionConfiguration */ => {
let var_403 =
Some(
crate::xml_deser::deser_structure_crate_model_encryption_configuration(&mut tag)
?
)
;
builder = builder.set_encryption_configuration(var_403);
}
,
s if s.matches("ReplicationTime") /* ReplicationTime com.amazonaws.s3#Destination$ReplicationTime */ => {
let var_404 =
Some(
crate::xml_deser::deser_structure_crate_model_replication_time(&mut tag)
?
)
;
builder = builder.set_replication_time(var_404);
}
,
s if s.matches("Metrics") /* Metrics com.amazonaws.s3#Destination$Metrics */ => {
let var_405 =
Some(
crate::xml_deser::deser_structure_crate_model_metrics(&mut tag)
?
)
;
builder = builder.set_metrics(var_405);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> Destination
pub fn build(self) -> Destination
Consumes the builder and constructs a Destination
.
Examples found in repository?
7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363
pub fn deser_structure_crate_model_destination(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Destination, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Destination::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Bucket") /* Bucket com.amazonaws.s3#Destination$Bucket */ => {
let var_399 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_bucket(var_399);
}
,
s if s.matches("Account") /* Account com.amazonaws.s3#Destination$Account */ => {
let var_400 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_account(var_400);
}
,
s if s.matches("StorageClass") /* StorageClass com.amazonaws.s3#Destination$StorageClass */ => {
let var_401 =
Some(
Result::<crate::model::StorageClass, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::StorageClass::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_storage_class(var_401);
}
,
s if s.matches("AccessControlTranslation") /* AccessControlTranslation com.amazonaws.s3#Destination$AccessControlTranslation */ => {
let var_402 =
Some(
crate::xml_deser::deser_structure_crate_model_access_control_translation(&mut tag)
?
)
;
builder = builder.set_access_control_translation(var_402);
}
,
s if s.matches("EncryptionConfiguration") /* EncryptionConfiguration com.amazonaws.s3#Destination$EncryptionConfiguration */ => {
let var_403 =
Some(
crate::xml_deser::deser_structure_crate_model_encryption_configuration(&mut tag)
?
)
;
builder = builder.set_encryption_configuration(var_403);
}
,
s if s.matches("ReplicationTime") /* ReplicationTime com.amazonaws.s3#Destination$ReplicationTime */ => {
let var_404 =
Some(
crate::xml_deser::deser_structure_crate_model_replication_time(&mut tag)
?
)
;
builder = builder.set_replication_time(var_404);
}
,
s if s.matches("Metrics") /* Metrics com.amazonaws.s3#Destination$Metrics */ => {
let var_405 =
Some(
crate::xml_deser::deser_structure_crate_model_metrics(&mut tag)
?
)
;
builder = builder.set_metrics(var_405);
}
,
_ => {}
}
}
Ok(builder.build())
}