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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>Describes a Kinesis data stream destination.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct KinesisDataStreamDestination {
    /// <p>The ARN for a specific Kinesis data stream.</p>
    pub stream_arn: ::std::option::Option<::std::string::String>,
    /// <p>The current status of replication.</p>
    pub destination_status: ::std::option::Option<crate::types::DestinationStatus>,
    /// <p>The human-readable string that corresponds to the replica status.</p>
    pub destination_status_description: ::std::option::Option<::std::string::String>,
    /// <p>The precision of the Kinesis data stream timestamp. The values are either <code>MILLISECOND</code> or <code>MICROSECOND</code>.</p>
    pub approximate_creation_date_time_precision: ::std::option::Option<crate::types::ApproximateCreationDateTimePrecision>,
}
impl KinesisDataStreamDestination {
    /// <p>The ARN for a specific Kinesis data stream.</p>
    pub fn stream_arn(&self) -> ::std::option::Option<&str> {
        self.stream_arn.as_deref()
    }
    /// <p>The current status of replication.</p>
    pub fn destination_status(&self) -> ::std::option::Option<&crate::types::DestinationStatus> {
        self.destination_status.as_ref()
    }
    /// <p>The human-readable string that corresponds to the replica status.</p>
    pub fn destination_status_description(&self) -> ::std::option::Option<&str> {
        self.destination_status_description.as_deref()
    }
    /// <p>The precision of the Kinesis data stream timestamp. The values are either <code>MILLISECOND</code> or <code>MICROSECOND</code>.</p>
    pub fn approximate_creation_date_time_precision(&self) -> ::std::option::Option<&crate::types::ApproximateCreationDateTimePrecision> {
        self.approximate_creation_date_time_precision.as_ref()
    }
}
impl KinesisDataStreamDestination {
    /// Creates a new builder-style object to manufacture [`KinesisDataStreamDestination`](crate::types::KinesisDataStreamDestination).
    pub fn builder() -> crate::types::builders::KinesisDataStreamDestinationBuilder {
        crate::types::builders::KinesisDataStreamDestinationBuilder::default()
    }
}

/// A builder for [`KinesisDataStreamDestination`](crate::types::KinesisDataStreamDestination).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct KinesisDataStreamDestinationBuilder {
    pub(crate) stream_arn: ::std::option::Option<::std::string::String>,
    pub(crate) destination_status: ::std::option::Option<crate::types::DestinationStatus>,
    pub(crate) destination_status_description: ::std::option::Option<::std::string::String>,
    pub(crate) approximate_creation_date_time_precision: ::std::option::Option<crate::types::ApproximateCreationDateTimePrecision>,
}
impl KinesisDataStreamDestinationBuilder {
    /// <p>The ARN for a specific Kinesis data stream.</p>
    pub fn stream_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.stream_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN for a specific Kinesis data stream.</p>
    pub fn set_stream_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.stream_arn = input;
        self
    }
    /// <p>The ARN for a specific Kinesis data stream.</p>
    pub fn get_stream_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.stream_arn
    }
    /// <p>The current status of replication.</p>
    pub fn destination_status(mut self, input: crate::types::DestinationStatus) -> Self {
        self.destination_status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The current status of replication.</p>
    pub fn set_destination_status(mut self, input: ::std::option::Option<crate::types::DestinationStatus>) -> Self {
        self.destination_status = input;
        self
    }
    /// <p>The current status of replication.</p>
    pub fn get_destination_status(&self) -> &::std::option::Option<crate::types::DestinationStatus> {
        &self.destination_status
    }
    /// <p>The human-readable string that corresponds to the replica status.</p>
    pub fn destination_status_description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.destination_status_description = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The human-readable string that corresponds to the replica status.</p>
    pub fn set_destination_status_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.destination_status_description = input;
        self
    }
    /// <p>The human-readable string that corresponds to the replica status.</p>
    pub fn get_destination_status_description(&self) -> &::std::option::Option<::std::string::String> {
        &self.destination_status_description
    }
    /// <p>The precision of the Kinesis data stream timestamp. The values are either <code>MILLISECOND</code> or <code>MICROSECOND</code>.</p>
    pub fn approximate_creation_date_time_precision(mut self, input: crate::types::ApproximateCreationDateTimePrecision) -> Self {
        self.approximate_creation_date_time_precision = ::std::option::Option::Some(input);
        self
    }
    /// <p>The precision of the Kinesis data stream timestamp. The values are either <code>MILLISECOND</code> or <code>MICROSECOND</code>.</p>
    pub fn set_approximate_creation_date_time_precision(
        mut self,
        input: ::std::option::Option<crate::types::ApproximateCreationDateTimePrecision>,
    ) -> Self {
        self.approximate_creation_date_time_precision = input;
        self
    }
    /// <p>The precision of the Kinesis data stream timestamp. The values are either <code>MILLISECOND</code> or <code>MICROSECOND</code>.</p>
    pub fn get_approximate_creation_date_time_precision(&self) -> &::std::option::Option<crate::types::ApproximateCreationDateTimePrecision> {
        &self.approximate_creation_date_time_precision
    }
    /// Consumes the builder and constructs a [`KinesisDataStreamDestination`](crate::types::KinesisDataStreamDestination).
    pub fn build(self) -> crate::types::KinesisDataStreamDestination {
        crate::types::KinesisDataStreamDestination {
            stream_arn: self.stream_arn,
            destination_status: self.destination_status,
            destination_status_description: self.destination_status_description,
            approximate_creation_date_time_precision: self.approximate_creation_date_time_precision,
        }
    }
}