Struct aws_sdk_s3control::model::JobReport
source · #[non_exhaustive]pub struct JobReport { /* private fields */ }
Expand description
Contains the configuration parameters for a job-completion report.
Implementations§
source§impl JobReport
impl JobReport
sourcepub fn bucket(&self) -> Option<&str>
pub fn bucket(&self) -> Option<&str>
The Amazon Resource Name (ARN) for the bucket where specified job-completion report will be stored.
sourcepub fn format(&self) -> Option<&JobReportFormat>
pub fn format(&self) -> Option<&JobReportFormat>
The format of the specified job-completion report.
sourcepub fn enabled(&self) -> bool
pub fn enabled(&self) -> bool
Indicates whether the specified job will generate a job-completion report.
sourcepub fn prefix(&self) -> Option<&str>
pub fn prefix(&self) -> Option<&str>
An optional prefix to describe where in the specified bucket the job-completion report will be stored. Amazon S3 stores the job-completion report at
.
sourcepub fn report_scope(&self) -> Option<&JobReportScope>
pub fn report_scope(&self) -> Option<&JobReportScope>
Indicates whether the job-completion report will include details of all tasks or only failed tasks.
source§impl JobReport
impl JobReport
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture JobReport
.
Examples found in repository?
src/xml_deser.rs (line 3314)
3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390
pub fn deser_structure_crate_model_job_report(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::JobReport, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::JobReport::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Bucket") /* Bucket com.amazonaws.s3control#JobReport$Bucket */ => {
let var_141 =
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_141);
}
,
s if s.matches("Format") /* Format com.amazonaws.s3control#JobReport$Format */ => {
let var_142 =
Some(
Result::<crate::model::JobReportFormat, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::JobReportFormat::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_format(var_142);
}
,
s if s.matches("Enabled") /* Enabled com.amazonaws.s3control#JobReport$Enabled */ => {
let var_143 =
Some(
{
<bool as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `com.amazonaws.s3control#Boolean`)"))
}
?
)
;
builder = builder.set_enabled(var_143);
}
,
s if s.matches("Prefix") /* Prefix com.amazonaws.s3control#JobReport$Prefix */ => {
let var_144 =
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_prefix(var_144);
}
,
s if s.matches("ReportScope") /* ReportScope com.amazonaws.s3control#JobReport$ReportScope */ => {
let var_145 =
Some(
Result::<crate::model::JobReportScope, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::JobReportScope::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_report_scope(var_145);
}
,
_ => {}
}
}
Ok(builder.build())
}