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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The acceptance of a EULA, required to use Amazon-provided streaming images.</p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct EulaAcceptance {
    /// <p>The ISO timestamp in seconds for when the EULA was accepted.</p>
    #[doc(hidden)]
    pub accepted_at: std::option::Option<aws_smithy_types::DateTime>,
    /// <p>The ID of the person who accepted the EULA.</p>
    #[doc(hidden)]
    pub accepted_by: std::option::Option<std::string::String>,
    /// <p>The ID of the acceptee.</p>
    #[doc(hidden)]
    pub acceptee_id: std::option::Option<std::string::String>,
    /// <p>The EULA acceptance ID.</p>
    #[doc(hidden)]
    pub eula_acceptance_id: std::option::Option<std::string::String>,
    /// <p>The EULA ID.</p>
    #[doc(hidden)]
    pub eula_id: std::option::Option<std::string::String>,
}
impl EulaAcceptance {
    /// <p>The ISO timestamp in seconds for when the EULA was accepted.</p>
    pub fn accepted_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
        self.accepted_at.as_ref()
    }
    /// <p>The ID of the person who accepted the EULA.</p>
    pub fn accepted_by(&self) -> std::option::Option<&str> {
        self.accepted_by.as_deref()
    }
    /// <p>The ID of the acceptee.</p>
    pub fn acceptee_id(&self) -> std::option::Option<&str> {
        self.acceptee_id.as_deref()
    }
    /// <p>The EULA acceptance ID.</p>
    pub fn eula_acceptance_id(&self) -> std::option::Option<&str> {
        self.eula_acceptance_id.as_deref()
    }
    /// <p>The EULA ID.</p>
    pub fn eula_id(&self) -> std::option::Option<&str> {
        self.eula_id.as_deref()
    }
}
impl EulaAcceptance {
    /// Creates a new builder-style object to manufacture [`EulaAcceptance`](crate::types::EulaAcceptance).
    pub fn builder() -> crate::types::builders::EulaAcceptanceBuilder {
        crate::types::builders::EulaAcceptanceBuilder::default()
    }
}

/// A builder for [`EulaAcceptance`](crate::types::EulaAcceptance).
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct EulaAcceptanceBuilder {
    pub(crate) accepted_at: std::option::Option<aws_smithy_types::DateTime>,
    pub(crate) accepted_by: std::option::Option<std::string::String>,
    pub(crate) acceptee_id: std::option::Option<std::string::String>,
    pub(crate) eula_acceptance_id: std::option::Option<std::string::String>,
    pub(crate) eula_id: std::option::Option<std::string::String>,
}
impl EulaAcceptanceBuilder {
    /// <p>The ISO timestamp in seconds for when the EULA was accepted.</p>
    pub fn accepted_at(mut self, input: aws_smithy_types::DateTime) -> Self {
        self.accepted_at = Some(input);
        self
    }
    /// <p>The ISO timestamp in seconds for when the EULA was accepted.</p>
    pub fn set_accepted_at(
        mut self,
        input: std::option::Option<aws_smithy_types::DateTime>,
    ) -> Self {
        self.accepted_at = input;
        self
    }
    /// <p>The ID of the person who accepted the EULA.</p>
    pub fn accepted_by(mut self, input: impl Into<std::string::String>) -> Self {
        self.accepted_by = Some(input.into());
        self
    }
    /// <p>The ID of the person who accepted the EULA.</p>
    pub fn set_accepted_by(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.accepted_by = input;
        self
    }
    /// <p>The ID of the acceptee.</p>
    pub fn acceptee_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.acceptee_id = Some(input.into());
        self
    }
    /// <p>The ID of the acceptee.</p>
    pub fn set_acceptee_id(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.acceptee_id = input;
        self
    }
    /// <p>The EULA acceptance ID.</p>
    pub fn eula_acceptance_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.eula_acceptance_id = Some(input.into());
        self
    }
    /// <p>The EULA acceptance ID.</p>
    pub fn set_eula_acceptance_id(
        mut self,
        input: std::option::Option<std::string::String>,
    ) -> Self {
        self.eula_acceptance_id = input;
        self
    }
    /// <p>The EULA ID.</p>
    pub fn eula_id(mut self, input: impl Into<std::string::String>) -> Self {
        self.eula_id = Some(input.into());
        self
    }
    /// <p>The EULA ID.</p>
    pub fn set_eula_id(mut self, input: std::option::Option<std::string::String>) -> Self {
        self.eula_id = input;
        self
    }
    /// Consumes the builder and constructs a [`EulaAcceptance`](crate::types::EulaAcceptance).
    pub fn build(self) -> crate::types::EulaAcceptance {
        crate::types::EulaAcceptance {
            accepted_at: self.accepted_at,
            accepted_by: self.accepted_by,
            acceptee_id: self.acceptee_id,
            eula_acceptance_id: self.eula_acceptance_id,
            eula_id: self.eula_id,
        }
    }
}