Struct aws_sdk_kafka::model::serverless::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Serverless
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn vpc_configs(self, input: VpcConfig) -> Self
pub fn vpc_configs(self, input: VpcConfig) -> Self
Appends an item to vpc_configs
.
To override the contents of this collection use set_vpc_configs
.
The configuration of the Amazon VPCs for the cluster.
sourcepub fn set_vpc_configs(self, input: Option<Vec<VpcConfig>>) -> Self
pub fn set_vpc_configs(self, input: Option<Vec<VpcConfig>>) -> Self
The configuration of the Amazon VPCs for the cluster.
Examples found in repository?
src/json_deser.rs (lines 4411-4413)
4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441
pub(crate) fn deser_structure_crate_model_serverless<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Serverless>, 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::serverless::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() {
"vpcConfigs" => {
builder = builder.set_vpc_configs(
crate::json_deser::deser_list_com_amazonaws_kafka___list_of_vpc_config(tokens)?
);
}
"clientAuthentication" => {
builder = builder.set_client_authentication(
crate::json_deser::deser_structure_crate_model_serverless_client_authentication(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 client_authentication(self, input: ServerlessClientAuthentication) -> Self
pub fn client_authentication(self, input: ServerlessClientAuthentication) -> Self
Includes all client authentication information.
sourcepub fn set_client_authentication(
self,
input: Option<ServerlessClientAuthentication>
) -> Self
pub fn set_client_authentication(
self,
input: Option<ServerlessClientAuthentication>
) -> Self
Includes all client authentication information.
Examples found in repository?
src/json_deser.rs (lines 4416-4418)
4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441
pub(crate) fn deser_structure_crate_model_serverless<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Serverless>, 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::serverless::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() {
"vpcConfigs" => {
builder = builder.set_vpc_configs(
crate::json_deser::deser_list_com_amazonaws_kafka___list_of_vpc_config(tokens)?
);
}
"clientAuthentication" => {
builder = builder.set_client_authentication(
crate::json_deser::deser_structure_crate_model_serverless_client_authentication(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) -> Serverless
pub fn build(self) -> Serverless
Consumes the builder and constructs a Serverless
.
Examples found in repository?
src/json_deser.rs (line 4433)
4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441
pub(crate) fn deser_structure_crate_model_serverless<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Serverless>, 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::serverless::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() {
"vpcConfigs" => {
builder = builder.set_vpc_configs(
crate::json_deser::deser_list_com_amazonaws_kafka___list_of_vpc_config(tokens)?
);
}
"clientAuthentication" => {
builder = builder.set_client_authentication(
crate::json_deser::deser_structure_crate_model_serverless_client_authentication(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",
),
),
}
}