Struct aws_sdk_kafka::model::client_authentication::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ClientAuthentication
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_sasl(self, input: Option<Sasl>) -> Self
pub fn set_sasl(self, input: Option<Sasl>) -> Self
Details for ClientAuthentication using SASL.
Examples found in repository?
src/json_deser.rs (lines 3698-3700)
3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735
pub(crate) fn deser_structure_crate_model_client_authentication<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ClientAuthentication>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::client_authentication::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"sasl" => {
builder = builder.set_sasl(
crate::json_deser::deser_structure_crate_model_sasl(tokens)?,
);
}
"tls" => {
builder = builder.set_tls(
crate::json_deser::deser_structure_crate_model_tls(tokens)?,
);
}
"unauthenticated" => {
builder = builder.set_unauthenticated(
crate::json_deser::deser_structure_crate_model_unauthenticated(
tokens,
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn set_tls(self, input: Option<Tls>) -> Self
pub fn set_tls(self, input: Option<Tls>) -> Self
Details for ClientAuthentication using TLS.
Examples found in repository?
src/json_deser.rs (lines 3703-3705)
3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735
pub(crate) fn deser_structure_crate_model_client_authentication<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ClientAuthentication>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::client_authentication::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"sasl" => {
builder = builder.set_sasl(
crate::json_deser::deser_structure_crate_model_sasl(tokens)?,
);
}
"tls" => {
builder = builder.set_tls(
crate::json_deser::deser_structure_crate_model_tls(tokens)?,
);
}
"unauthenticated" => {
builder = builder.set_unauthenticated(
crate::json_deser::deser_structure_crate_model_unauthenticated(
tokens,
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn unauthenticated(self, input: Unauthenticated) -> Self
pub fn unauthenticated(self, input: Unauthenticated) -> Self
Contains information about unauthenticated traffic to the cluster.
sourcepub fn set_unauthenticated(self, input: Option<Unauthenticated>) -> Self
pub fn set_unauthenticated(self, input: Option<Unauthenticated>) -> Self
Contains information about unauthenticated traffic to the cluster.
Examples found in repository?
src/json_deser.rs (lines 3708-3712)
3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735
pub(crate) fn deser_structure_crate_model_client_authentication<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ClientAuthentication>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::client_authentication::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"sasl" => {
builder = builder.set_sasl(
crate::json_deser::deser_structure_crate_model_sasl(tokens)?,
);
}
"tls" => {
builder = builder.set_tls(
crate::json_deser::deser_structure_crate_model_tls(tokens)?,
);
}
"unauthenticated" => {
builder = builder.set_unauthenticated(
crate::json_deser::deser_structure_crate_model_unauthenticated(
tokens,
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn build(self) -> ClientAuthentication
pub fn build(self) -> ClientAuthentication
Consumes the builder and constructs a ClientAuthentication
.
Examples found in repository?
src/json_deser.rs (line 3727)
3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735
pub(crate) fn deser_structure_crate_model_client_authentication<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::ClientAuthentication>,
aws_smithy_json::deserialize::error::DeserializeError,
>
where
I: Iterator<
Item = Result<
aws_smithy_json::deserialize::Token<'a>,
aws_smithy_json::deserialize::error::DeserializeError,
>,
>,
{
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::model::client_authentication::Builder::default();
loop {
match tokens.next().transpose()? {
Some(aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
Some(aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
match key.to_unescaped()?.as_ref() {
"sasl" => {
builder = builder.set_sasl(
crate::json_deser::deser_structure_crate_model_sasl(tokens)?,
);
}
"tls" => {
builder = builder.set_tls(
crate::json_deser::deser_structure_crate_model_tls(tokens)?,
);
}
"unauthenticated" => {
builder = builder.set_unauthenticated(
crate::json_deser::deser_structure_crate_model_unauthenticated(
tokens,
)?,
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}