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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ListViolationEventsInput {
    /// <p>The start time for the alerts to be listed.</p>
    pub start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The end time for the alerts to be listed.</p>
    pub end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>A filter to limit results to those alerts caused by the specified thing.</p>
    pub thing_name: ::std::option::Option<::std::string::String>,
    /// <p>A filter to limit results to those alerts generated by the specified security profile.</p>
    pub security_profile_name: ::std::option::Option<::std::string::String>,
    /// <p>The criteria for a behavior.</p>
    pub behavior_criteria_type: ::std::option::Option<crate::types::BehaviorCriteriaType>,
    /// <p>A list of all suppressed alerts.</p>
    pub list_suppressed_alerts: ::std::option::Option<bool>,
    /// <p>The verification state of the violation (detect alarm).</p>
    pub verification_state: ::std::option::Option<crate::types::VerificationState>,
    /// <p>The token for the next set of results.</p>
    pub next_token: ::std::option::Option<::std::string::String>,
    /// <p>The maximum number of results to return at one time.</p>
    pub max_results: ::std::option::Option<i32>,
}
impl ListViolationEventsInput {
    /// <p>The start time for the alerts to be listed.</p>
    pub fn start_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.start_time.as_ref()
    }
    /// <p>The end time for the alerts to be listed.</p>
    pub fn end_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.end_time.as_ref()
    }
    /// <p>A filter to limit results to those alerts caused by the specified thing.</p>
    pub fn thing_name(&self) -> ::std::option::Option<&str> {
        self.thing_name.as_deref()
    }
    /// <p>A filter to limit results to those alerts generated by the specified security profile.</p>
    pub fn security_profile_name(&self) -> ::std::option::Option<&str> {
        self.security_profile_name.as_deref()
    }
    /// <p>The criteria for a behavior.</p>
    pub fn behavior_criteria_type(&self) -> ::std::option::Option<&crate::types::BehaviorCriteriaType> {
        self.behavior_criteria_type.as_ref()
    }
    /// <p>A list of all suppressed alerts.</p>
    pub fn list_suppressed_alerts(&self) -> ::std::option::Option<bool> {
        self.list_suppressed_alerts
    }
    /// <p>The verification state of the violation (detect alarm).</p>
    pub fn verification_state(&self) -> ::std::option::Option<&crate::types::VerificationState> {
        self.verification_state.as_ref()
    }
    /// <p>The token for the next set of results.</p>
    pub fn next_token(&self) -> ::std::option::Option<&str> {
        self.next_token.as_deref()
    }
    /// <p>The maximum number of results to return at one time.</p>
    pub fn max_results(&self) -> ::std::option::Option<i32> {
        self.max_results
    }
}
impl ListViolationEventsInput {
    /// Creates a new builder-style object to manufacture [`ListViolationEventsInput`](crate::operation::list_violation_events::ListViolationEventsInput).
    pub fn builder() -> crate::operation::list_violation_events::builders::ListViolationEventsInputBuilder {
        crate::operation::list_violation_events::builders::ListViolationEventsInputBuilder::default()
    }
}

/// A builder for [`ListViolationEventsInput`](crate::operation::list_violation_events::ListViolationEventsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListViolationEventsInputBuilder {
    pub(crate) start_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) end_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) thing_name: ::std::option::Option<::std::string::String>,
    pub(crate) security_profile_name: ::std::option::Option<::std::string::String>,
    pub(crate) behavior_criteria_type: ::std::option::Option<crate::types::BehaviorCriteriaType>,
    pub(crate) list_suppressed_alerts: ::std::option::Option<bool>,
    pub(crate) verification_state: ::std::option::Option<crate::types::VerificationState>,
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
    pub(crate) max_results: ::std::option::Option<i32>,
}
impl ListViolationEventsInputBuilder {
    /// <p>The start time for the alerts to be listed.</p>
    /// This field is required.
    pub fn start_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.start_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The start time for the alerts to be listed.</p>
    pub fn set_start_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.start_time = input;
        self
    }
    /// <p>The start time for the alerts to be listed.</p>
    pub fn get_start_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.start_time
    }
    /// <p>The end time for the alerts to be listed.</p>
    /// This field is required.
    pub fn end_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.end_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The end time for the alerts to be listed.</p>
    pub fn set_end_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.end_time = input;
        self
    }
    /// <p>The end time for the alerts to be listed.</p>
    pub fn get_end_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.end_time
    }
    /// <p>A filter to limit results to those alerts caused by the specified thing.</p>
    pub fn thing_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.thing_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A filter to limit results to those alerts caused by the specified thing.</p>
    pub fn set_thing_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.thing_name = input;
        self
    }
    /// <p>A filter to limit results to those alerts caused by the specified thing.</p>
    pub fn get_thing_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.thing_name
    }
    /// <p>A filter to limit results to those alerts generated by the specified security profile.</p>
    pub fn security_profile_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.security_profile_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A filter to limit results to those alerts generated by the specified security profile.</p>
    pub fn set_security_profile_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.security_profile_name = input;
        self
    }
    /// <p>A filter to limit results to those alerts generated by the specified security profile.</p>
    pub fn get_security_profile_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.security_profile_name
    }
    /// <p>The criteria for a behavior.</p>
    pub fn behavior_criteria_type(mut self, input: crate::types::BehaviorCriteriaType) -> Self {
        self.behavior_criteria_type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The criteria for a behavior.</p>
    pub fn set_behavior_criteria_type(mut self, input: ::std::option::Option<crate::types::BehaviorCriteriaType>) -> Self {
        self.behavior_criteria_type = input;
        self
    }
    /// <p>The criteria for a behavior.</p>
    pub fn get_behavior_criteria_type(&self) -> &::std::option::Option<crate::types::BehaviorCriteriaType> {
        &self.behavior_criteria_type
    }
    /// <p>A list of all suppressed alerts.</p>
    pub fn list_suppressed_alerts(mut self, input: bool) -> Self {
        self.list_suppressed_alerts = ::std::option::Option::Some(input);
        self
    }
    /// <p>A list of all suppressed alerts.</p>
    pub fn set_list_suppressed_alerts(mut self, input: ::std::option::Option<bool>) -> Self {
        self.list_suppressed_alerts = input;
        self
    }
    /// <p>A list of all suppressed alerts.</p>
    pub fn get_list_suppressed_alerts(&self) -> &::std::option::Option<bool> {
        &self.list_suppressed_alerts
    }
    /// <p>The verification state of the violation (detect alarm).</p>
    pub fn verification_state(mut self, input: crate::types::VerificationState) -> Self {
        self.verification_state = ::std::option::Option::Some(input);
        self
    }
    /// <p>The verification state of the violation (detect alarm).</p>
    pub fn set_verification_state(mut self, input: ::std::option::Option<crate::types::VerificationState>) -> Self {
        self.verification_state = input;
        self
    }
    /// <p>The verification state of the violation (detect alarm).</p>
    pub fn get_verification_state(&self) -> &::std::option::Option<crate::types::VerificationState> {
        &self.verification_state
    }
    /// <p>The token for the next set of results.</p>
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.next_token = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The token for the next set of results.</p>
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.next_token = input;
        self
    }
    /// <p>The token for the next set of results.</p>
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.next_token
    }
    /// <p>The maximum number of results to return at one time.</p>
    pub fn max_results(mut self, input: i32) -> Self {
        self.max_results = ::std::option::Option::Some(input);
        self
    }
    /// <p>The maximum number of results to return at one time.</p>
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
        self.max_results = input;
        self
    }
    /// <p>The maximum number of results to return at one time.</p>
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
        &self.max_results
    }
    /// Consumes the builder and constructs a [`ListViolationEventsInput`](crate::operation::list_violation_events::ListViolationEventsInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::list_violation_events::ListViolationEventsInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::list_violation_events::ListViolationEventsInput {
            start_time: self.start_time,
            end_time: self.end_time,
            thing_name: self.thing_name,
            security_profile_name: self.security_profile_name,
            behavior_criteria_type: self.behavior_criteria_type,
            list_suppressed_alerts: self.list_suppressed_alerts,
            verification_state: self.verification_state,
            next_token: self.next_token,
            max_results: self.max_results,
        })
    }
}