aws_sdk_bcmdataexports/types/
_destination_configurations.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2
3/// <p>The destinations used for data exports.</p>
4#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DestinationConfigurations {
7    /// <p>An object that describes the destination of the data exports file.</p>
8    pub s3_destination: ::std::option::Option<crate::types::S3Destination>,
9}
10impl DestinationConfigurations {
11    /// <p>An object that describes the destination of the data exports file.</p>
12    pub fn s3_destination(&self) -> ::std::option::Option<&crate::types::S3Destination> {
13        self.s3_destination.as_ref()
14    }
15}
16impl DestinationConfigurations {
17    /// Creates a new builder-style object to manufacture [`DestinationConfigurations`](crate::types::DestinationConfigurations).
18    pub fn builder() -> crate::types::builders::DestinationConfigurationsBuilder {
19        crate::types::builders::DestinationConfigurationsBuilder::default()
20    }
21}
22
23/// A builder for [`DestinationConfigurations`](crate::types::DestinationConfigurations).
24#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
25#[non_exhaustive]
26pub struct DestinationConfigurationsBuilder {
27    pub(crate) s3_destination: ::std::option::Option<crate::types::S3Destination>,
28}
29impl DestinationConfigurationsBuilder {
30    /// <p>An object that describes the destination of the data exports file.</p>
31    /// This field is required.
32    pub fn s3_destination(mut self, input: crate::types::S3Destination) -> Self {
33        self.s3_destination = ::std::option::Option::Some(input);
34        self
35    }
36    /// <p>An object that describes the destination of the data exports file.</p>
37    pub fn set_s3_destination(mut self, input: ::std::option::Option<crate::types::S3Destination>) -> Self {
38        self.s3_destination = input;
39        self
40    }
41    /// <p>An object that describes the destination of the data exports file.</p>
42    pub fn get_s3_destination(&self) -> &::std::option::Option<crate::types::S3Destination> {
43        &self.s3_destination
44    }
45    /// Consumes the builder and constructs a [`DestinationConfigurations`](crate::types::DestinationConfigurations).
46    pub fn build(self) -> crate::types::DestinationConfigurations {
47        crate::types::DestinationConfigurations {
48            s3_destination: self.s3_destination,
49        }
50    }
51}