aws-sdk-securityhub 1.110.0

AWS SDK for AWS SecurityHub
Documentation
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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Contains information about the signals involved in an Amazon GuardDuty Extended Threat Detection attack sequence. An attack sequence is a type of threat detected by GuardDuty. GuardDuty generates an attack sequence finding when multiple events, or signals, align to a potentially suspicious activity. When GuardDuty and Security Hub CSPM are integrated, GuardDuty sends attack sequence findings to Security Hub CSPM.</p>
/// <p>A signal can be an API activity or a finding that GuardDuty uses to detect an attack sequence finding.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Signal {
    /// <p>The type of the signal used to identify an attack sequence.</p>
    /// <p>Signals can be GuardDuty findings or activities observed in data sources that GuardDuty monitors. For more information, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_data-sources.html">GuardDuty foundational data sources</a> in the <i>Amazon GuardDuty User Guide</i>.</p>
    /// <p>A signal type can be one of the following values. Here are the related descriptions:</p>
    /// <ul>
    /// <li>
    /// <p><code>FINDING</code> - Individually generated GuardDuty finding.</p></li>
    /// <li>
    /// <p><code>CLOUD_TRAIL</code> - Activity observed from CloudTrail logs</p></li>
    /// <li>
    /// <p><code>S3_DATA_EVENTS</code> - Activity observed from CloudTrail data events for Amazon Simple Storage Service (S3). Activities associated with this type will show up only when you have enabled GuardDuty S3 Protection feature in your account. For more information about S3 Protection and the steps to enable it, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/s3-protection.html">S3 Protection</a> in the <i>Amazon GuardDuty User Guide</i>.</p></li>
    /// </ul>
    pub r#type: ::std::option::Option<::std::string::String>,
    /// <p>The identifier of the signal.</p>
    pub id: ::std::option::Option<::std::string::String>,
    /// <p>The description of the GuardDuty finding.</p>
    pub title: ::std::option::Option<::std::string::String>,
    /// <p>The Amazon Resource Name (ARN) of the product that generated the signal.</p>
    pub product_arn: ::std::option::Option<::std::string::String>,
    /// <p>The ARN or ID of the Amazon Web Services resource associated with the signal.</p>
    pub resource_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>Contains information about the indicators associated with the signals in this attack sequence finding. The values for <code>SignalIndicators</code> are a subset of the values for <a href="https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_Sequence.html">SequenceIndicators</a>, but the values for these fields don't always match 1:1.</p>
    pub signal_indicators: ::std::option::Option<::std::vec::Vec<crate::types::Indicator>>,
    /// <p>The name of the GuardDuty signal. For example, when signal type is <code>FINDING</code>, the signal name is the name of the finding.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>The timestamp when the first finding or activity related to this signal was observed.</p>
    pub created_at: ::std::option::Option<i64>,
    /// <p>The timestamp when this signal was last observed.</p>
    pub updated_at: ::std::option::Option<i64>,
    /// <p>The timestamp when the first finding or activity related to this signal was observed.</p>
    pub first_seen_at: ::std::option::Option<i64>,
    /// <p>The timestamp when the last finding or activity related to this signal was observed.</p>
    pub last_seen_at: ::std::option::Option<i64>,
    /// <p>The severity associated with the signal. For more information about severity, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_findings-severity.html">Severity levels for GuardDuty findings</a> in the <i>Amazon GuardDuty User Guide</i>.</p>
    pub severity: ::std::option::Option<f64>,
    /// <p>The number of times this signal was observed.</p>
    pub count: ::std::option::Option<i32>,
    /// <p>The IDs of the threat actors involved in the signal.</p>
    pub actor_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>Information about the endpoint IDs associated with this signal.</p>
    pub endpoint_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl Signal {
    /// <p>The type of the signal used to identify an attack sequence.</p>
    /// <p>Signals can be GuardDuty findings or activities observed in data sources that GuardDuty monitors. For more information, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_data-sources.html">GuardDuty foundational data sources</a> in the <i>Amazon GuardDuty User Guide</i>.</p>
    /// <p>A signal type can be one of the following values. Here are the related descriptions:</p>
    /// <ul>
    /// <li>
    /// <p><code>FINDING</code> - Individually generated GuardDuty finding.</p></li>
    /// <li>
    /// <p><code>CLOUD_TRAIL</code> - Activity observed from CloudTrail logs</p></li>
    /// <li>
    /// <p><code>S3_DATA_EVENTS</code> - Activity observed from CloudTrail data events for Amazon Simple Storage Service (S3). Activities associated with this type will show up only when you have enabled GuardDuty S3 Protection feature in your account. For more information about S3 Protection and the steps to enable it, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/s3-protection.html">S3 Protection</a> in the <i>Amazon GuardDuty User Guide</i>.</p></li>
    /// </ul>
    pub fn r#type(&self) -> ::std::option::Option<&str> {
        self.r#type.as_deref()
    }
    /// <p>The identifier of the signal.</p>
    pub fn id(&self) -> ::std::option::Option<&str> {
        self.id.as_deref()
    }
    /// <p>The description of the GuardDuty finding.</p>
    pub fn title(&self) -> ::std::option::Option<&str> {
        self.title.as_deref()
    }
    /// <p>The Amazon Resource Name (ARN) of the product that generated the signal.</p>
    pub fn product_arn(&self) -> ::std::option::Option<&str> {
        self.product_arn.as_deref()
    }
    /// <p>The ARN or ID of the Amazon Web Services resource associated with the signal.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.resource_ids.is_none()`.
    pub fn resource_ids(&self) -> &[::std::string::String] {
        self.resource_ids.as_deref().unwrap_or_default()
    }
    /// <p>Contains information about the indicators associated with the signals in this attack sequence finding. The values for <code>SignalIndicators</code> are a subset of the values for <a href="https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_Sequence.html">SequenceIndicators</a>, but the values for these fields don't always match 1:1.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.signal_indicators.is_none()`.
    pub fn signal_indicators(&self) -> &[crate::types::Indicator] {
        self.signal_indicators.as_deref().unwrap_or_default()
    }
    /// <p>The name of the GuardDuty signal. For example, when signal type is <code>FINDING</code>, the signal name is the name of the finding.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The timestamp when the first finding or activity related to this signal was observed.</p>
    pub fn created_at(&self) -> ::std::option::Option<i64> {
        self.created_at
    }
    /// <p>The timestamp when this signal was last observed.</p>
    pub fn updated_at(&self) -> ::std::option::Option<i64> {
        self.updated_at
    }
    /// <p>The timestamp when the first finding or activity related to this signal was observed.</p>
    pub fn first_seen_at(&self) -> ::std::option::Option<i64> {
        self.first_seen_at
    }
    /// <p>The timestamp when the last finding or activity related to this signal was observed.</p>
    pub fn last_seen_at(&self) -> ::std::option::Option<i64> {
        self.last_seen_at
    }
    /// <p>The severity associated with the signal. For more information about severity, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_findings-severity.html">Severity levels for GuardDuty findings</a> in the <i>Amazon GuardDuty User Guide</i>.</p>
    pub fn severity(&self) -> ::std::option::Option<f64> {
        self.severity
    }
    /// <p>The number of times this signal was observed.</p>
    pub fn count(&self) -> ::std::option::Option<i32> {
        self.count
    }
    /// <p>The IDs of the threat actors involved in the signal.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.actor_ids.is_none()`.
    pub fn actor_ids(&self) -> &[::std::string::String] {
        self.actor_ids.as_deref().unwrap_or_default()
    }
    /// <p>Information about the endpoint IDs associated with this signal.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.endpoint_ids.is_none()`.
    pub fn endpoint_ids(&self) -> &[::std::string::String] {
        self.endpoint_ids.as_deref().unwrap_or_default()
    }
}
impl Signal {
    /// Creates a new builder-style object to manufacture [`Signal`](crate::types::Signal).
    pub fn builder() -> crate::types::builders::SignalBuilder {
        crate::types::builders::SignalBuilder::default()
    }
}

/// A builder for [`Signal`](crate::types::Signal).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct SignalBuilder {
    pub(crate) r#type: ::std::option::Option<::std::string::String>,
    pub(crate) id: ::std::option::Option<::std::string::String>,
    pub(crate) title: ::std::option::Option<::std::string::String>,
    pub(crate) product_arn: ::std::option::Option<::std::string::String>,
    pub(crate) resource_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) signal_indicators: ::std::option::Option<::std::vec::Vec<crate::types::Indicator>>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) created_at: ::std::option::Option<i64>,
    pub(crate) updated_at: ::std::option::Option<i64>,
    pub(crate) first_seen_at: ::std::option::Option<i64>,
    pub(crate) last_seen_at: ::std::option::Option<i64>,
    pub(crate) severity: ::std::option::Option<f64>,
    pub(crate) count: ::std::option::Option<i32>,
    pub(crate) actor_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) endpoint_ids: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
}
impl SignalBuilder {
    /// <p>The type of the signal used to identify an attack sequence.</p>
    /// <p>Signals can be GuardDuty findings or activities observed in data sources that GuardDuty monitors. For more information, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_data-sources.html">GuardDuty foundational data sources</a> in the <i>Amazon GuardDuty User Guide</i>.</p>
    /// <p>A signal type can be one of the following values. Here are the related descriptions:</p>
    /// <ul>
    /// <li>
    /// <p><code>FINDING</code> - Individually generated GuardDuty finding.</p></li>
    /// <li>
    /// <p><code>CLOUD_TRAIL</code> - Activity observed from CloudTrail logs</p></li>
    /// <li>
    /// <p><code>S3_DATA_EVENTS</code> - Activity observed from CloudTrail data events for Amazon Simple Storage Service (S3). Activities associated with this type will show up only when you have enabled GuardDuty S3 Protection feature in your account. For more information about S3 Protection and the steps to enable it, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/s3-protection.html">S3 Protection</a> in the <i>Amazon GuardDuty User Guide</i>.</p></li>
    /// </ul>
    pub fn r#type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.r#type = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The type of the signal used to identify an attack sequence.</p>
    /// <p>Signals can be GuardDuty findings or activities observed in data sources that GuardDuty monitors. For more information, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_data-sources.html">GuardDuty foundational data sources</a> in the <i>Amazon GuardDuty User Guide</i>.</p>
    /// <p>A signal type can be one of the following values. Here are the related descriptions:</p>
    /// <ul>
    /// <li>
    /// <p><code>FINDING</code> - Individually generated GuardDuty finding.</p></li>
    /// <li>
    /// <p><code>CLOUD_TRAIL</code> - Activity observed from CloudTrail logs</p></li>
    /// <li>
    /// <p><code>S3_DATA_EVENTS</code> - Activity observed from CloudTrail data events for Amazon Simple Storage Service (S3). Activities associated with this type will show up only when you have enabled GuardDuty S3 Protection feature in your account. For more information about S3 Protection and the steps to enable it, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/s3-protection.html">S3 Protection</a> in the <i>Amazon GuardDuty User Guide</i>.</p></li>
    /// </ul>
    pub fn set_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.r#type = input;
        self
    }
    /// <p>The type of the signal used to identify an attack sequence.</p>
    /// <p>Signals can be GuardDuty findings or activities observed in data sources that GuardDuty monitors. For more information, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_data-sources.html">GuardDuty foundational data sources</a> in the <i>Amazon GuardDuty User Guide</i>.</p>
    /// <p>A signal type can be one of the following values. Here are the related descriptions:</p>
    /// <ul>
    /// <li>
    /// <p><code>FINDING</code> - Individually generated GuardDuty finding.</p></li>
    /// <li>
    /// <p><code>CLOUD_TRAIL</code> - Activity observed from CloudTrail logs</p></li>
    /// <li>
    /// <p><code>S3_DATA_EVENTS</code> - Activity observed from CloudTrail data events for Amazon Simple Storage Service (S3). Activities associated with this type will show up only when you have enabled GuardDuty S3 Protection feature in your account. For more information about S3 Protection and the steps to enable it, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/s3-protection.html">S3 Protection</a> in the <i>Amazon GuardDuty User Guide</i>.</p></li>
    /// </ul>
    pub fn get_type(&self) -> &::std::option::Option<::std::string::String> {
        &self.r#type
    }
    /// <p>The identifier of the signal.</p>
    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the signal.</p>
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// <p>The identifier of the signal.</p>
    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.id
    }
    /// <p>The description of the GuardDuty finding.</p>
    pub fn title(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.title = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The description of the GuardDuty finding.</p>
    pub fn set_title(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.title = input;
        self
    }
    /// <p>The description of the GuardDuty finding.</p>
    pub fn get_title(&self) -> &::std::option::Option<::std::string::String> {
        &self.title
    }
    /// <p>The Amazon Resource Name (ARN) of the product that generated the signal.</p>
    pub fn product_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.product_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the product that generated the signal.</p>
    pub fn set_product_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.product_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the product that generated the signal.</p>
    pub fn get_product_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.product_arn
    }
    /// Appends an item to `resource_ids`.
    ///
    /// To override the contents of this collection use [`set_resource_ids`](Self::set_resource_ids).
    ///
    /// <p>The ARN or ID of the Amazon Web Services resource associated with the signal.</p>
    pub fn resource_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.resource_ids.unwrap_or_default();
        v.push(input.into());
        self.resource_ids = ::std::option::Option::Some(v);
        self
    }
    /// <p>The ARN or ID of the Amazon Web Services resource associated with the signal.</p>
    pub fn set_resource_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.resource_ids = input;
        self
    }
    /// <p>The ARN or ID of the Amazon Web Services resource associated with the signal.</p>
    pub fn get_resource_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.resource_ids
    }
    /// Appends an item to `signal_indicators`.
    ///
    /// To override the contents of this collection use [`set_signal_indicators`](Self::set_signal_indicators).
    ///
    /// <p>Contains information about the indicators associated with the signals in this attack sequence finding. The values for <code>SignalIndicators</code> are a subset of the values for <a href="https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_Sequence.html">SequenceIndicators</a>, but the values for these fields don't always match 1:1.</p>
    pub fn signal_indicators(mut self, input: crate::types::Indicator) -> Self {
        let mut v = self.signal_indicators.unwrap_or_default();
        v.push(input);
        self.signal_indicators = ::std::option::Option::Some(v);
        self
    }
    /// <p>Contains information about the indicators associated with the signals in this attack sequence finding. The values for <code>SignalIndicators</code> are a subset of the values for <a href="https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_Sequence.html">SequenceIndicators</a>, but the values for these fields don't always match 1:1.</p>
    pub fn set_signal_indicators(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Indicator>>) -> Self {
        self.signal_indicators = input;
        self
    }
    /// <p>Contains information about the indicators associated with the signals in this attack sequence finding. The values for <code>SignalIndicators</code> are a subset of the values for <a href="https://docs.aws.amazon.com/securityhub/1.0/APIReference/API_Sequence.html">SequenceIndicators</a>, but the values for these fields don't always match 1:1.</p>
    pub fn get_signal_indicators(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Indicator>> {
        &self.signal_indicators
    }
    /// <p>The name of the GuardDuty signal. For example, when signal type is <code>FINDING</code>, the signal name is the name of the finding.</p>
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the GuardDuty signal. For example, when signal type is <code>FINDING</code>, the signal name is the name of the finding.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of the GuardDuty signal. For example, when signal type is <code>FINDING</code>, the signal name is the name of the finding.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>The timestamp when the first finding or activity related to this signal was observed.</p>
    pub fn created_at(mut self, input: i64) -> Self {
        self.created_at = ::std::option::Option::Some(input);
        self
    }
    /// <p>The timestamp when the first finding or activity related to this signal was observed.</p>
    pub fn set_created_at(mut self, input: ::std::option::Option<i64>) -> Self {
        self.created_at = input;
        self
    }
    /// <p>The timestamp when the first finding or activity related to this signal was observed.</p>
    pub fn get_created_at(&self) -> &::std::option::Option<i64> {
        &self.created_at
    }
    /// <p>The timestamp when this signal was last observed.</p>
    pub fn updated_at(mut self, input: i64) -> Self {
        self.updated_at = ::std::option::Option::Some(input);
        self
    }
    /// <p>The timestamp when this signal was last observed.</p>
    pub fn set_updated_at(mut self, input: ::std::option::Option<i64>) -> Self {
        self.updated_at = input;
        self
    }
    /// <p>The timestamp when this signal was last observed.</p>
    pub fn get_updated_at(&self) -> &::std::option::Option<i64> {
        &self.updated_at
    }
    /// <p>The timestamp when the first finding or activity related to this signal was observed.</p>
    pub fn first_seen_at(mut self, input: i64) -> Self {
        self.first_seen_at = ::std::option::Option::Some(input);
        self
    }
    /// <p>The timestamp when the first finding or activity related to this signal was observed.</p>
    pub fn set_first_seen_at(mut self, input: ::std::option::Option<i64>) -> Self {
        self.first_seen_at = input;
        self
    }
    /// <p>The timestamp when the first finding or activity related to this signal was observed.</p>
    pub fn get_first_seen_at(&self) -> &::std::option::Option<i64> {
        &self.first_seen_at
    }
    /// <p>The timestamp when the last finding or activity related to this signal was observed.</p>
    pub fn last_seen_at(mut self, input: i64) -> Self {
        self.last_seen_at = ::std::option::Option::Some(input);
        self
    }
    /// <p>The timestamp when the last finding or activity related to this signal was observed.</p>
    pub fn set_last_seen_at(mut self, input: ::std::option::Option<i64>) -> Self {
        self.last_seen_at = input;
        self
    }
    /// <p>The timestamp when the last finding or activity related to this signal was observed.</p>
    pub fn get_last_seen_at(&self) -> &::std::option::Option<i64> {
        &self.last_seen_at
    }
    /// <p>The severity associated with the signal. For more information about severity, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_findings-severity.html">Severity levels for GuardDuty findings</a> in the <i>Amazon GuardDuty User Guide</i>.</p>
    pub fn severity(mut self, input: f64) -> Self {
        self.severity = ::std::option::Option::Some(input);
        self
    }
    /// <p>The severity associated with the signal. For more information about severity, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_findings-severity.html">Severity levels for GuardDuty findings</a> in the <i>Amazon GuardDuty User Guide</i>.</p>
    pub fn set_severity(mut self, input: ::std::option::Option<f64>) -> Self {
        self.severity = input;
        self
    }
    /// <p>The severity associated with the signal. For more information about severity, see <a href="https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_findings-severity.html">Severity levels for GuardDuty findings</a> in the <i>Amazon GuardDuty User Guide</i>.</p>
    pub fn get_severity(&self) -> &::std::option::Option<f64> {
        &self.severity
    }
    /// <p>The number of times this signal was observed.</p>
    pub fn count(mut self, input: i32) -> Self {
        self.count = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of times this signal was observed.</p>
    pub fn set_count(mut self, input: ::std::option::Option<i32>) -> Self {
        self.count = input;
        self
    }
    /// <p>The number of times this signal was observed.</p>
    pub fn get_count(&self) -> &::std::option::Option<i32> {
        &self.count
    }
    /// Appends an item to `actor_ids`.
    ///
    /// To override the contents of this collection use [`set_actor_ids`](Self::set_actor_ids).
    ///
    /// <p>The IDs of the threat actors involved in the signal.</p>
    pub fn actor_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.actor_ids.unwrap_or_default();
        v.push(input.into());
        self.actor_ids = ::std::option::Option::Some(v);
        self
    }
    /// <p>The IDs of the threat actors involved in the signal.</p>
    pub fn set_actor_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.actor_ids = input;
        self
    }
    /// <p>The IDs of the threat actors involved in the signal.</p>
    pub fn get_actor_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.actor_ids
    }
    /// Appends an item to `endpoint_ids`.
    ///
    /// To override the contents of this collection use [`set_endpoint_ids`](Self::set_endpoint_ids).
    ///
    /// <p>Information about the endpoint IDs associated with this signal.</p>
    pub fn endpoint_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.endpoint_ids.unwrap_or_default();
        v.push(input.into());
        self.endpoint_ids = ::std::option::Option::Some(v);
        self
    }
    /// <p>Information about the endpoint IDs associated with this signal.</p>
    pub fn set_endpoint_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.endpoint_ids = input;
        self
    }
    /// <p>Information about the endpoint IDs associated with this signal.</p>
    pub fn get_endpoint_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.endpoint_ids
    }
    /// Consumes the builder and constructs a [`Signal`](crate::types::Signal).
    pub fn build(self) -> crate::types::Signal {
        crate::types::Signal {
            r#type: self.r#type,
            id: self.id,
            title: self.title,
            product_arn: self.product_arn,
            resource_ids: self.resource_ids,
            signal_indicators: self.signal_indicators,
            name: self.name,
            created_at: self.created_at,
            updated_at: self.updated_at,
            first_seen_at: self.first_seen_at,
            last_seen_at: self.last_seen_at,
            severity: self.severity,
            count: self.count,
            actor_ids: self.actor_ids,
            endpoint_ids: self.endpoint_ids,
        }
    }
}