1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>A filter for import references.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ImportReferenceFilter {
    /// <p>A status to filter on.</p>
    pub status: ::std::option::Option<crate::types::ReferenceImportJobStatus>,
    /// <p>The filter's start date.</p>
    pub created_after: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The filter's end date.</p>
    pub created_before: ::std::option::Option<::aws_smithy_types::DateTime>,
}
impl ImportReferenceFilter {
    /// <p>A status to filter on.</p>
    pub fn status(&self) -> ::std::option::Option<&crate::types::ReferenceImportJobStatus> {
        self.status.as_ref()
    }
    /// <p>The filter's start date.</p>
    pub fn created_after(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.created_after.as_ref()
    }
    /// <p>The filter's end date.</p>
    pub fn created_before(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.created_before.as_ref()
    }
}
impl ImportReferenceFilter {
    /// Creates a new builder-style object to manufacture [`ImportReferenceFilter`](crate::types::ImportReferenceFilter).
    pub fn builder() -> crate::types::builders::ImportReferenceFilterBuilder {
        crate::types::builders::ImportReferenceFilterBuilder::default()
    }
}

/// A builder for [`ImportReferenceFilter`](crate::types::ImportReferenceFilter).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct ImportReferenceFilterBuilder {
    pub(crate) status: ::std::option::Option<crate::types::ReferenceImportJobStatus>,
    pub(crate) created_after: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) created_before: ::std::option::Option<::aws_smithy_types::DateTime>,
}
impl ImportReferenceFilterBuilder {
    /// <p>A status to filter on.</p>
    pub fn status(mut self, input: crate::types::ReferenceImportJobStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>A status to filter on.</p>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::ReferenceImportJobStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>A status to filter on.</p>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::ReferenceImportJobStatus> {
        &self.status
    }
    /// <p>The filter's start date.</p>
    pub fn created_after(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.created_after = ::std::option::Option::Some(input);
        self
    }
    /// <p>The filter's start date.</p>
    pub fn set_created_after(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.created_after = input;
        self
    }
    /// <p>The filter's start date.</p>
    pub fn get_created_after(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.created_after
    }
    /// <p>The filter's end date.</p>
    pub fn created_before(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.created_before = ::std::option::Option::Some(input);
        self
    }
    /// <p>The filter's end date.</p>
    pub fn set_created_before(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.created_before = input;
        self
    }
    /// <p>The filter's end date.</p>
    pub fn get_created_before(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.created_before
    }
    /// Consumes the builder and constructs a [`ImportReferenceFilter`](crate::types::ImportReferenceFilter).
    pub fn build(self) -> crate::types::ImportReferenceFilter {
        crate::types::ImportReferenceFilter {
            status: self.status,
            created_after: self.created_after,
            created_before: self.created_before,
        }
    }
}