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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>The serializer that you want Firehose to use to convert data to the target format before writing it to Amazon S3. Firehose supports two types of serializers: the ORC SerDe and the Parquet SerDe.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Serializer {
/// <p>A serializer to use for converting data to the Parquet format before storing it in Amazon S3. For more information, see <a href="https://parquet.apache.org/docs/contribution-guidelines/">Apache Parquet</a>.</p>
pub parquet_ser_de: ::std::option::Option<crate::types::ParquetSerDe>,
/// <p>A serializer to use for converting data to the ORC format before storing it in Amazon S3. For more information, see <a href="https://orc.apache.org/docs/">Apache ORC</a>.</p>
pub orc_ser_de: ::std::option::Option<crate::types::OrcSerDe>,
}
impl Serializer {
/// <p>A serializer to use for converting data to the Parquet format before storing it in Amazon S3. For more information, see <a href="https://parquet.apache.org/docs/contribution-guidelines/">Apache Parquet</a>.</p>
pub fn parquet_ser_de(&self) -> ::std::option::Option<&crate::types::ParquetSerDe> {
self.parquet_ser_de.as_ref()
}
/// <p>A serializer to use for converting data to the ORC format before storing it in Amazon S3. For more information, see <a href="https://orc.apache.org/docs/">Apache ORC</a>.</p>
pub fn orc_ser_de(&self) -> ::std::option::Option<&crate::types::OrcSerDe> {
self.orc_ser_de.as_ref()
}
}
impl Serializer {
/// Creates a new builder-style object to manufacture [`Serializer`](crate::types::Serializer).
pub fn builder() -> crate::types::builders::SerializerBuilder {
crate::types::builders::SerializerBuilder::default()
}
}
/// A builder for [`Serializer`](crate::types::Serializer).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct SerializerBuilder {
pub(crate) parquet_ser_de: ::std::option::Option<crate::types::ParquetSerDe>,
pub(crate) orc_ser_de: ::std::option::Option<crate::types::OrcSerDe>,
}
impl SerializerBuilder {
/// <p>A serializer to use for converting data to the Parquet format before storing it in Amazon S3. For more information, see <a href="https://parquet.apache.org/docs/contribution-guidelines/">Apache Parquet</a>.</p>
pub fn parquet_ser_de(mut self, input: crate::types::ParquetSerDe) -> Self {
self.parquet_ser_de = ::std::option::Option::Some(input);
self
}
/// <p>A serializer to use for converting data to the Parquet format before storing it in Amazon S3. For more information, see <a href="https://parquet.apache.org/docs/contribution-guidelines/">Apache Parquet</a>.</p>
pub fn set_parquet_ser_de(mut self, input: ::std::option::Option<crate::types::ParquetSerDe>) -> Self {
self.parquet_ser_de = input;
self
}
/// <p>A serializer to use for converting data to the Parquet format before storing it in Amazon S3. For more information, see <a href="https://parquet.apache.org/docs/contribution-guidelines/">Apache Parquet</a>.</p>
pub fn get_parquet_ser_de(&self) -> &::std::option::Option<crate::types::ParquetSerDe> {
&self.parquet_ser_de
}
/// <p>A serializer to use for converting data to the ORC format before storing it in Amazon S3. For more information, see <a href="https://orc.apache.org/docs/">Apache ORC</a>.</p>
pub fn orc_ser_de(mut self, input: crate::types::OrcSerDe) -> Self {
self.orc_ser_de = ::std::option::Option::Some(input);
self
}
/// <p>A serializer to use for converting data to the ORC format before storing it in Amazon S3. For more information, see <a href="https://orc.apache.org/docs/">Apache ORC</a>.</p>
pub fn set_orc_ser_de(mut self, input: ::std::option::Option<crate::types::OrcSerDe>) -> Self {
self.orc_ser_de = input;
self
}
/// <p>A serializer to use for converting data to the ORC format before storing it in Amazon S3. For more information, see <a href="https://orc.apache.org/docs/">Apache ORC</a>.</p>
pub fn get_orc_ser_de(&self) -> &::std::option::Option<crate::types::OrcSerDe> {
&self.orc_ser_de
}
/// Consumes the builder and constructs a [`Serializer`](crate::types::Serializer).
pub fn build(self) -> crate::types::Serializer {
crate::types::Serializer {
parquet_ser_de: self.parquet_ser_de,
orc_ser_de: self.orc_ser_de,
}
}
}