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
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct EulaAcceptance {
#[doc(hidden)]
pub accepted_at: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub accepted_by: std::option::Option<std::string::String>,
#[doc(hidden)]
pub acceptee_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub eula_acceptance_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub eula_id: std::option::Option<std::string::String>,
}
impl EulaAcceptance {
pub fn accepted_at(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.accepted_at.as_ref()
}
pub fn accepted_by(&self) -> std::option::Option<&str> {
self.accepted_by.as_deref()
}
pub fn acceptee_id(&self) -> std::option::Option<&str> {
self.acceptee_id.as_deref()
}
pub fn eula_acceptance_id(&self) -> std::option::Option<&str> {
self.eula_acceptance_id.as_deref()
}
pub fn eula_id(&self) -> std::option::Option<&str> {
self.eula_id.as_deref()
}
}
impl EulaAcceptance {
pub fn builder() -> crate::types::builders::EulaAcceptanceBuilder {
crate::types::builders::EulaAcceptanceBuilder::default()
}
}
#[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 {
pub fn accepted_at(mut self, input: aws_smithy_types::DateTime) -> Self {
self.accepted_at = Some(input);
self
}
pub fn set_accepted_at(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.accepted_at = input;
self
}
pub fn accepted_by(mut self, input: impl Into<std::string::String>) -> Self {
self.accepted_by = Some(input.into());
self
}
pub fn set_accepted_by(mut self, input: std::option::Option<std::string::String>) -> Self {
self.accepted_by = input;
self
}
pub fn acceptee_id(mut self, input: impl Into<std::string::String>) -> Self {
self.acceptee_id = Some(input.into());
self
}
pub fn set_acceptee_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.acceptee_id = input;
self
}
pub fn eula_acceptance_id(mut self, input: impl Into<std::string::String>) -> Self {
self.eula_acceptance_id = Some(input.into());
self
}
pub fn set_eula_acceptance_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.eula_acceptance_id = input;
self
}
pub fn eula_id(mut self, input: impl Into<std::string::String>) -> Self {
self.eula_id = Some(input.into());
self
}
pub fn set_eula_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.eula_id = input;
self
}
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,
}
}
}