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>Workers can send worker logs to different destination types. This configuration specifies the details of these destinations.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct WorkerLogDeliveryDescription {
    /// <p>Details about delivering logs to Amazon CloudWatch Logs.</p>
    pub cloud_watch_logs: ::std::option::Option<crate::types::CloudWatchLogsLogDeliveryDescription>,
    /// <p>Details about delivering logs to Amazon Kinesis Data Firehose.</p>
    pub firehose: ::std::option::Option<crate::types::FirehoseLogDeliveryDescription>,
    /// <p>Details about delivering logs to Amazon S3.</p>
    pub s3: ::std::option::Option<crate::types::S3LogDeliveryDescription>,
}
impl WorkerLogDeliveryDescription {
    /// <p>Details about delivering logs to Amazon CloudWatch Logs.</p>
    pub fn cloud_watch_logs(&self) -> ::std::option::Option<&crate::types::CloudWatchLogsLogDeliveryDescription> {
        self.cloud_watch_logs.as_ref()
    }
    /// <p>Details about delivering logs to Amazon Kinesis Data Firehose.</p>
    pub fn firehose(&self) -> ::std::option::Option<&crate::types::FirehoseLogDeliveryDescription> {
        self.firehose.as_ref()
    }
    /// <p>Details about delivering logs to Amazon S3.</p>
    pub fn s3(&self) -> ::std::option::Option<&crate::types::S3LogDeliveryDescription> {
        self.s3.as_ref()
    }
}
impl WorkerLogDeliveryDescription {
    /// Creates a new builder-style object to manufacture [`WorkerLogDeliveryDescription`](crate::types::WorkerLogDeliveryDescription).
    pub fn builder() -> crate::types::builders::WorkerLogDeliveryDescriptionBuilder {
        crate::types::builders::WorkerLogDeliveryDescriptionBuilder::default()
    }
}

/// A builder for [`WorkerLogDeliveryDescription`](crate::types::WorkerLogDeliveryDescription).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct WorkerLogDeliveryDescriptionBuilder {
    pub(crate) cloud_watch_logs: ::std::option::Option<crate::types::CloudWatchLogsLogDeliveryDescription>,
    pub(crate) firehose: ::std::option::Option<crate::types::FirehoseLogDeliveryDescription>,
    pub(crate) s3: ::std::option::Option<crate::types::S3LogDeliveryDescription>,
}
impl WorkerLogDeliveryDescriptionBuilder {
    /// <p>Details about delivering logs to Amazon CloudWatch Logs.</p>
    pub fn cloud_watch_logs(mut self, input: crate::types::CloudWatchLogsLogDeliveryDescription) -> Self {
        self.cloud_watch_logs = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about delivering logs to Amazon CloudWatch Logs.</p>
    pub fn set_cloud_watch_logs(mut self, input: ::std::option::Option<crate::types::CloudWatchLogsLogDeliveryDescription>) -> Self {
        self.cloud_watch_logs = input;
        self
    }
    /// <p>Details about delivering logs to Amazon CloudWatch Logs.</p>
    pub fn get_cloud_watch_logs(&self) -> &::std::option::Option<crate::types::CloudWatchLogsLogDeliveryDescription> {
        &self.cloud_watch_logs
    }
    /// <p>Details about delivering logs to Amazon Kinesis Data Firehose.</p>
    pub fn firehose(mut self, input: crate::types::FirehoseLogDeliveryDescription) -> Self {
        self.firehose = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about delivering logs to Amazon Kinesis Data Firehose.</p>
    pub fn set_firehose(mut self, input: ::std::option::Option<crate::types::FirehoseLogDeliveryDescription>) -> Self {
        self.firehose = input;
        self
    }
    /// <p>Details about delivering logs to Amazon Kinesis Data Firehose.</p>
    pub fn get_firehose(&self) -> &::std::option::Option<crate::types::FirehoseLogDeliveryDescription> {
        &self.firehose
    }
    /// <p>Details about delivering logs to Amazon S3.</p>
    pub fn s3(mut self, input: crate::types::S3LogDeliveryDescription) -> Self {
        self.s3 = ::std::option::Option::Some(input);
        self
    }
    /// <p>Details about delivering logs to Amazon S3.</p>
    pub fn set_s3(mut self, input: ::std::option::Option<crate::types::S3LogDeliveryDescription>) -> Self {
        self.s3 = input;
        self
    }
    /// <p>Details about delivering logs to Amazon S3.</p>
    pub fn get_s3(&self) -> &::std::option::Option<crate::types::S3LogDeliveryDescription> {
        &self.s3
    }
    /// Consumes the builder and constructs a [`WorkerLogDeliveryDescription`](crate::types::WorkerLogDeliveryDescription).
    pub fn build(self) -> crate::types::WorkerLogDeliveryDescription {
        crate::types::WorkerLogDeliveryDescription {
            cloud_watch_logs: self.cloud_watch_logs,
            firehose: self.firehose,
            s3: self.s3,
        }
    }
}