Skip to main content

aws_sdk_sagemakergeospatial/types/
_export_error_details.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>The structure for returning the export error details in a GetEarthObservationJob.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct ExportErrorDetails {
7    /// <p>The structure for returning the export error details while exporting results of an Earth Observation job.</p>
8    pub export_results: ::std::option::Option<crate::types::ExportErrorDetailsOutput>,
9    /// <p>The structure for returning the export error details while exporting the source images of an Earth Observation job.</p>
10    pub export_source_images: ::std::option::Option<crate::types::ExportErrorDetailsOutput>,
11}
12impl ExportErrorDetails {
13    /// <p>The structure for returning the export error details while exporting results of an Earth Observation job.</p>
14    pub fn export_results(&self) -> ::std::option::Option<&crate::types::ExportErrorDetailsOutput> {
15        self.export_results.as_ref()
16    }
17    /// <p>The structure for returning the export error details while exporting the source images of an Earth Observation job.</p>
18    pub fn export_source_images(&self) -> ::std::option::Option<&crate::types::ExportErrorDetailsOutput> {
19        self.export_source_images.as_ref()
20    }
21}
22impl ExportErrorDetails {
23    /// Creates a new builder-style object to manufacture [`ExportErrorDetails`](crate::types::ExportErrorDetails).
24    pub fn builder() -> crate::types::builders::ExportErrorDetailsBuilder {
25        crate::types::builders::ExportErrorDetailsBuilder::default()
26    }
27}
28
29/// A builder for [`ExportErrorDetails`](crate::types::ExportErrorDetails).
30#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct ExportErrorDetailsBuilder {
33    pub(crate) export_results: ::std::option::Option<crate::types::ExportErrorDetailsOutput>,
34    pub(crate) export_source_images: ::std::option::Option<crate::types::ExportErrorDetailsOutput>,
35}
36impl ExportErrorDetailsBuilder {
37    /// <p>The structure for returning the export error details while exporting results of an Earth Observation job.</p>
38    pub fn export_results(mut self, input: crate::types::ExportErrorDetailsOutput) -> Self {
39        self.export_results = ::std::option::Option::Some(input);
40        self
41    }
42    /// <p>The structure for returning the export error details while exporting results of an Earth Observation job.</p>
43    pub fn set_export_results(mut self, input: ::std::option::Option<crate::types::ExportErrorDetailsOutput>) -> Self {
44        self.export_results = input;
45        self
46    }
47    /// <p>The structure for returning the export error details while exporting results of an Earth Observation job.</p>
48    pub fn get_export_results(&self) -> &::std::option::Option<crate::types::ExportErrorDetailsOutput> {
49        &self.export_results
50    }
51    /// <p>The structure for returning the export error details while exporting the source images of an Earth Observation job.</p>
52    pub fn export_source_images(mut self, input: crate::types::ExportErrorDetailsOutput) -> Self {
53        self.export_source_images = ::std::option::Option::Some(input);
54        self
55    }
56    /// <p>The structure for returning the export error details while exporting the source images of an Earth Observation job.</p>
57    pub fn set_export_source_images(mut self, input: ::std::option::Option<crate::types::ExportErrorDetailsOutput>) -> Self {
58        self.export_source_images = input;
59        self
60    }
61    /// <p>The structure for returning the export error details while exporting the source images of an Earth Observation job.</p>
62    pub fn get_export_source_images(&self) -> &::std::option::Option<crate::types::ExportErrorDetailsOutput> {
63        &self.export_source_images
64    }
65    /// Consumes the builder and constructs a [`ExportErrorDetails`](crate::types::ExportErrorDetails).
66    pub fn build(self) -> crate::types::ExportErrorDetails {
67        crate::types::ExportErrorDetails {
68            export_results: self.export_results,
69            export_source_images: self.export_source_images,
70        }
71    }
72}