Struct aws_sdk_kafka::model::provisioned::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Provisioned
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn broker_node_group_info(self, input: BrokerNodeGroupInfo) -> Self
pub fn broker_node_group_info(self, input: BrokerNodeGroupInfo) -> Self
Information about the brokers.
sourcepub fn set_broker_node_group_info(
self,
input: Option<BrokerNodeGroupInfo>
) -> Self
pub fn set_broker_node_group_info(
self,
input: Option<BrokerNodeGroupInfo>
) -> Self
Information about the brokers.
Examples found in repository?
4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387
pub(crate) fn deser_structure_crate_model_provisioned<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Provisioned>, 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::provisioned::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() {
"brokerNodeGroupInfo" => {
builder = builder.set_broker_node_group_info(
crate::json_deser::deser_structure_crate_model_broker_node_group_info(tokens)?
);
}
"currentBrokerSoftwareInfo" => {
builder = builder.set_current_broker_software_info(
crate::json_deser::deser_structure_crate_model_broker_software_info(tokens)?
);
}
"clientAuthentication" => {
builder = builder.set_client_authentication(
crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
);
}
"encryptionInfo" => {
builder = builder.set_encryption_info(
crate::json_deser::deser_structure_crate_model_encryption_info(
tokens,
)?,
);
}
"enhancedMonitoring" => {
builder = builder.set_enhanced_monitoring(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::EnhancedMonitoring::from(u.as_ref())
})
})
.transpose()?,
);
}
"openMonitoring" => {
builder = builder.set_open_monitoring(
crate::json_deser::deser_structure_crate_model_open_monitoring_info(tokens)?
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"numberOfBrokerNodes" => {
builder = builder.set_number_of_broker_nodes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"zookeeperConnectString" => {
builder = builder.set_zookeeper_connect_string(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"zookeeperConnectStringTls" => {
builder = builder.set_zookeeper_connect_string_tls(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 current_broker_software_info(self, input: BrokerSoftwareInfo) -> Self
pub fn current_broker_software_info(self, input: BrokerSoftwareInfo) -> Self
Information about the Apache Kafka version deployed on the brokers.
sourcepub fn set_current_broker_software_info(
self,
input: Option<BrokerSoftwareInfo>
) -> Self
pub fn set_current_broker_software_info(
self,
input: Option<BrokerSoftwareInfo>
) -> Self
Information about the Apache Kafka version deployed on the brokers.
Examples found in repository?
4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387
pub(crate) fn deser_structure_crate_model_provisioned<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Provisioned>, 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::provisioned::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() {
"brokerNodeGroupInfo" => {
builder = builder.set_broker_node_group_info(
crate::json_deser::deser_structure_crate_model_broker_node_group_info(tokens)?
);
}
"currentBrokerSoftwareInfo" => {
builder = builder.set_current_broker_software_info(
crate::json_deser::deser_structure_crate_model_broker_software_info(tokens)?
);
}
"clientAuthentication" => {
builder = builder.set_client_authentication(
crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
);
}
"encryptionInfo" => {
builder = builder.set_encryption_info(
crate::json_deser::deser_structure_crate_model_encryption_info(
tokens,
)?,
);
}
"enhancedMonitoring" => {
builder = builder.set_enhanced_monitoring(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::EnhancedMonitoring::from(u.as_ref())
})
})
.transpose()?,
);
}
"openMonitoring" => {
builder = builder.set_open_monitoring(
crate::json_deser::deser_structure_crate_model_open_monitoring_info(tokens)?
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"numberOfBrokerNodes" => {
builder = builder.set_number_of_broker_nodes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"zookeeperConnectString" => {
builder = builder.set_zookeeper_connect_string(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"zookeeperConnectStringTls" => {
builder = builder.set_zookeeper_connect_string_tls(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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: ClientAuthentication) -> Self
pub fn client_authentication(self, input: ClientAuthentication) -> Self
Includes all client authentication information.
sourcepub fn set_client_authentication(
self,
input: Option<ClientAuthentication>
) -> Self
pub fn set_client_authentication(
self,
input: Option<ClientAuthentication>
) -> Self
Includes all client authentication information.
Examples found in repository?
4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387
pub(crate) fn deser_structure_crate_model_provisioned<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Provisioned>, 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::provisioned::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() {
"brokerNodeGroupInfo" => {
builder = builder.set_broker_node_group_info(
crate::json_deser::deser_structure_crate_model_broker_node_group_info(tokens)?
);
}
"currentBrokerSoftwareInfo" => {
builder = builder.set_current_broker_software_info(
crate::json_deser::deser_structure_crate_model_broker_software_info(tokens)?
);
}
"clientAuthentication" => {
builder = builder.set_client_authentication(
crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
);
}
"encryptionInfo" => {
builder = builder.set_encryption_info(
crate::json_deser::deser_structure_crate_model_encryption_info(
tokens,
)?,
);
}
"enhancedMonitoring" => {
builder = builder.set_enhanced_monitoring(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::EnhancedMonitoring::from(u.as_ref())
})
})
.transpose()?,
);
}
"openMonitoring" => {
builder = builder.set_open_monitoring(
crate::json_deser::deser_structure_crate_model_open_monitoring_info(tokens)?
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"numberOfBrokerNodes" => {
builder = builder.set_number_of_broker_nodes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"zookeeperConnectString" => {
builder = builder.set_zookeeper_connect_string(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"zookeeperConnectStringTls" => {
builder = builder.set_zookeeper_connect_string_tls(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 encryption_info(self, input: EncryptionInfo) -> Self
pub fn encryption_info(self, input: EncryptionInfo) -> Self
Includes all encryption-related information.
sourcepub fn set_encryption_info(self, input: Option<EncryptionInfo>) -> Self
pub fn set_encryption_info(self, input: Option<EncryptionInfo>) -> Self
Includes all encryption-related information.
Examples found in repository?
4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387
pub(crate) fn deser_structure_crate_model_provisioned<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Provisioned>, 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::provisioned::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() {
"brokerNodeGroupInfo" => {
builder = builder.set_broker_node_group_info(
crate::json_deser::deser_structure_crate_model_broker_node_group_info(tokens)?
);
}
"currentBrokerSoftwareInfo" => {
builder = builder.set_current_broker_software_info(
crate::json_deser::deser_structure_crate_model_broker_software_info(tokens)?
);
}
"clientAuthentication" => {
builder = builder.set_client_authentication(
crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
);
}
"encryptionInfo" => {
builder = builder.set_encryption_info(
crate::json_deser::deser_structure_crate_model_encryption_info(
tokens,
)?,
);
}
"enhancedMonitoring" => {
builder = builder.set_enhanced_monitoring(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::EnhancedMonitoring::from(u.as_ref())
})
})
.transpose()?,
);
}
"openMonitoring" => {
builder = builder.set_open_monitoring(
crate::json_deser::deser_structure_crate_model_open_monitoring_info(tokens)?
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"numberOfBrokerNodes" => {
builder = builder.set_number_of_broker_nodes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"zookeeperConnectString" => {
builder = builder.set_zookeeper_connect_string(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"zookeeperConnectStringTls" => {
builder = builder.set_zookeeper_connect_string_tls(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 enhanced_monitoring(self, input: EnhancedMonitoring) -> Self
pub fn enhanced_monitoring(self, input: EnhancedMonitoring) -> Self
Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION.
sourcepub fn set_enhanced_monitoring(self, input: Option<EnhancedMonitoring>) -> Self
pub fn set_enhanced_monitoring(self, input: Option<EnhancedMonitoring>) -> Self
Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION.
Examples found in repository?
4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387
pub(crate) fn deser_structure_crate_model_provisioned<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Provisioned>, 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::provisioned::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() {
"brokerNodeGroupInfo" => {
builder = builder.set_broker_node_group_info(
crate::json_deser::deser_structure_crate_model_broker_node_group_info(tokens)?
);
}
"currentBrokerSoftwareInfo" => {
builder = builder.set_current_broker_software_info(
crate::json_deser::deser_structure_crate_model_broker_software_info(tokens)?
);
}
"clientAuthentication" => {
builder = builder.set_client_authentication(
crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
);
}
"encryptionInfo" => {
builder = builder.set_encryption_info(
crate::json_deser::deser_structure_crate_model_encryption_info(
tokens,
)?,
);
}
"enhancedMonitoring" => {
builder = builder.set_enhanced_monitoring(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::EnhancedMonitoring::from(u.as_ref())
})
})
.transpose()?,
);
}
"openMonitoring" => {
builder = builder.set_open_monitoring(
crate::json_deser::deser_structure_crate_model_open_monitoring_info(tokens)?
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"numberOfBrokerNodes" => {
builder = builder.set_number_of_broker_nodes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"zookeeperConnectString" => {
builder = builder.set_zookeeper_connect_string(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"zookeeperConnectStringTls" => {
builder = builder.set_zookeeper_connect_string_tls(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 open_monitoring(self, input: OpenMonitoringInfo) -> Self
pub fn open_monitoring(self, input: OpenMonitoringInfo) -> Self
The settings for open monitoring.
sourcepub fn set_open_monitoring(self, input: Option<OpenMonitoringInfo>) -> Self
pub fn set_open_monitoring(self, input: Option<OpenMonitoringInfo>) -> Self
The settings for open monitoring.
Examples found in repository?
4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387
pub(crate) fn deser_structure_crate_model_provisioned<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Provisioned>, 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::provisioned::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() {
"brokerNodeGroupInfo" => {
builder = builder.set_broker_node_group_info(
crate::json_deser::deser_structure_crate_model_broker_node_group_info(tokens)?
);
}
"currentBrokerSoftwareInfo" => {
builder = builder.set_current_broker_software_info(
crate::json_deser::deser_structure_crate_model_broker_software_info(tokens)?
);
}
"clientAuthentication" => {
builder = builder.set_client_authentication(
crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
);
}
"encryptionInfo" => {
builder = builder.set_encryption_info(
crate::json_deser::deser_structure_crate_model_encryption_info(
tokens,
)?,
);
}
"enhancedMonitoring" => {
builder = builder.set_enhanced_monitoring(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::EnhancedMonitoring::from(u.as_ref())
})
})
.transpose()?,
);
}
"openMonitoring" => {
builder = builder.set_open_monitoring(
crate::json_deser::deser_structure_crate_model_open_monitoring_info(tokens)?
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"numberOfBrokerNodes" => {
builder = builder.set_number_of_broker_nodes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"zookeeperConnectString" => {
builder = builder.set_zookeeper_connect_string(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"zookeeperConnectStringTls" => {
builder = builder.set_zookeeper_connect_string_tls(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 logging_info(self, input: LoggingInfo) -> Self
pub fn logging_info(self, input: LoggingInfo) -> Self
Log delivery information for the cluster.
sourcepub fn set_logging_info(self, input: Option<LoggingInfo>) -> Self
pub fn set_logging_info(self, input: Option<LoggingInfo>) -> Self
Log delivery information for the cluster.
Examples found in repository?
4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387
pub(crate) fn deser_structure_crate_model_provisioned<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Provisioned>, 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::provisioned::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() {
"brokerNodeGroupInfo" => {
builder = builder.set_broker_node_group_info(
crate::json_deser::deser_structure_crate_model_broker_node_group_info(tokens)?
);
}
"currentBrokerSoftwareInfo" => {
builder = builder.set_current_broker_software_info(
crate::json_deser::deser_structure_crate_model_broker_software_info(tokens)?
);
}
"clientAuthentication" => {
builder = builder.set_client_authentication(
crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
);
}
"encryptionInfo" => {
builder = builder.set_encryption_info(
crate::json_deser::deser_structure_crate_model_encryption_info(
tokens,
)?,
);
}
"enhancedMonitoring" => {
builder = builder.set_enhanced_monitoring(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::EnhancedMonitoring::from(u.as_ref())
})
})
.transpose()?,
);
}
"openMonitoring" => {
builder = builder.set_open_monitoring(
crate::json_deser::deser_structure_crate_model_open_monitoring_info(tokens)?
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"numberOfBrokerNodes" => {
builder = builder.set_number_of_broker_nodes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"zookeeperConnectString" => {
builder = builder.set_zookeeper_connect_string(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"zookeeperConnectStringTls" => {
builder = builder.set_zookeeper_connect_string_tls(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 number_of_broker_nodes(self, input: i32) -> Self
pub fn number_of_broker_nodes(self, input: i32) -> Self
The number of broker nodes in the cluster.
sourcepub fn set_number_of_broker_nodes(self, input: Option<i32>) -> Self
pub fn set_number_of_broker_nodes(self, input: Option<i32>) -> Self
The number of broker nodes in the cluster.
Examples found in repository?
4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387
pub(crate) fn deser_structure_crate_model_provisioned<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Provisioned>, 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::provisioned::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() {
"brokerNodeGroupInfo" => {
builder = builder.set_broker_node_group_info(
crate::json_deser::deser_structure_crate_model_broker_node_group_info(tokens)?
);
}
"currentBrokerSoftwareInfo" => {
builder = builder.set_current_broker_software_info(
crate::json_deser::deser_structure_crate_model_broker_software_info(tokens)?
);
}
"clientAuthentication" => {
builder = builder.set_client_authentication(
crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
);
}
"encryptionInfo" => {
builder = builder.set_encryption_info(
crate::json_deser::deser_structure_crate_model_encryption_info(
tokens,
)?,
);
}
"enhancedMonitoring" => {
builder = builder.set_enhanced_monitoring(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::EnhancedMonitoring::from(u.as_ref())
})
})
.transpose()?,
);
}
"openMonitoring" => {
builder = builder.set_open_monitoring(
crate::json_deser::deser_structure_crate_model_open_monitoring_info(tokens)?
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"numberOfBrokerNodes" => {
builder = builder.set_number_of_broker_nodes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"zookeeperConnectString" => {
builder = builder.set_zookeeper_connect_string(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"zookeeperConnectStringTls" => {
builder = builder.set_zookeeper_connect_string_tls(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 zookeeper_connect_string(self, input: impl Into<String>) -> Self
pub fn zookeeper_connect_string(self, input: impl Into<String>) -> Self
The connection string to use to connect to the Apache ZooKeeper cluster.
sourcepub fn set_zookeeper_connect_string(self, input: Option<String>) -> Self
pub fn set_zookeeper_connect_string(self, input: Option<String>) -> Self
The connection string to use to connect to the Apache ZooKeeper cluster.
Examples found in repository?
4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387
pub(crate) fn deser_structure_crate_model_provisioned<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Provisioned>, 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::provisioned::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() {
"brokerNodeGroupInfo" => {
builder = builder.set_broker_node_group_info(
crate::json_deser::deser_structure_crate_model_broker_node_group_info(tokens)?
);
}
"currentBrokerSoftwareInfo" => {
builder = builder.set_current_broker_software_info(
crate::json_deser::deser_structure_crate_model_broker_software_info(tokens)?
);
}
"clientAuthentication" => {
builder = builder.set_client_authentication(
crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
);
}
"encryptionInfo" => {
builder = builder.set_encryption_info(
crate::json_deser::deser_structure_crate_model_encryption_info(
tokens,
)?,
);
}
"enhancedMonitoring" => {
builder = builder.set_enhanced_monitoring(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::EnhancedMonitoring::from(u.as_ref())
})
})
.transpose()?,
);
}
"openMonitoring" => {
builder = builder.set_open_monitoring(
crate::json_deser::deser_structure_crate_model_open_monitoring_info(tokens)?
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"numberOfBrokerNodes" => {
builder = builder.set_number_of_broker_nodes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"zookeeperConnectString" => {
builder = builder.set_zookeeper_connect_string(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"zookeeperConnectStringTls" => {
builder = builder.set_zookeeper_connect_string_tls(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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 zookeeper_connect_string_tls(self, input: impl Into<String>) -> Self
pub fn zookeeper_connect_string_tls(self, input: impl Into<String>) -> Self
The connection string to use to connect to the Apache ZooKeeper cluster on a TLS port.
sourcepub fn set_zookeeper_connect_string_tls(self, input: Option<String>) -> Self
pub fn set_zookeeper_connect_string_tls(self, input: Option<String>) -> Self
The connection string to use to connect to the Apache ZooKeeper cluster on a TLS port.
Examples found in repository?
4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387
pub(crate) fn deser_structure_crate_model_provisioned<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Provisioned>, 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::provisioned::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() {
"brokerNodeGroupInfo" => {
builder = builder.set_broker_node_group_info(
crate::json_deser::deser_structure_crate_model_broker_node_group_info(tokens)?
);
}
"currentBrokerSoftwareInfo" => {
builder = builder.set_current_broker_software_info(
crate::json_deser::deser_structure_crate_model_broker_software_info(tokens)?
);
}
"clientAuthentication" => {
builder = builder.set_client_authentication(
crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
);
}
"encryptionInfo" => {
builder = builder.set_encryption_info(
crate::json_deser::deser_structure_crate_model_encryption_info(
tokens,
)?,
);
}
"enhancedMonitoring" => {
builder = builder.set_enhanced_monitoring(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::EnhancedMonitoring::from(u.as_ref())
})
})
.transpose()?,
);
}
"openMonitoring" => {
builder = builder.set_open_monitoring(
crate::json_deser::deser_structure_crate_model_open_monitoring_info(tokens)?
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"numberOfBrokerNodes" => {
builder = builder.set_number_of_broker_nodes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"zookeeperConnectString" => {
builder = builder.set_zookeeper_connect_string(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"zookeeperConnectStringTls" => {
builder = builder.set_zookeeper_connect_string_tls(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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) -> Provisioned
pub fn build(self) -> Provisioned
Consumes the builder and constructs a Provisioned
.
Examples found in repository?
4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387
pub(crate) fn deser_structure_crate_model_provisioned<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Provisioned>, 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::provisioned::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() {
"brokerNodeGroupInfo" => {
builder = builder.set_broker_node_group_info(
crate::json_deser::deser_structure_crate_model_broker_node_group_info(tokens)?
);
}
"currentBrokerSoftwareInfo" => {
builder = builder.set_current_broker_software_info(
crate::json_deser::deser_structure_crate_model_broker_software_info(tokens)?
);
}
"clientAuthentication" => {
builder = builder.set_client_authentication(
crate::json_deser::deser_structure_crate_model_client_authentication(tokens)?
);
}
"encryptionInfo" => {
builder = builder.set_encryption_info(
crate::json_deser::deser_structure_crate_model_encryption_info(
tokens,
)?,
);
}
"enhancedMonitoring" => {
builder = builder.set_enhanced_monitoring(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| {
s.to_unescaped().map(|u| {
crate::model::EnhancedMonitoring::from(u.as_ref())
})
})
.transpose()?,
);
}
"openMonitoring" => {
builder = builder.set_open_monitoring(
crate::json_deser::deser_structure_crate_model_open_monitoring_info(tokens)?
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"numberOfBrokerNodes" => {
builder = builder.set_number_of_broker_nodes(
aws_smithy_json::deserialize::token::expect_number_or_null(
tokens.next(),
)?
.map(i32::try_from)
.transpose()?,
);
}
"zookeeperConnectString" => {
builder = builder.set_zookeeper_connect_string(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"zookeeperConnectStringTls" => {
builder = builder.set_zookeeper_connect_string_tls(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
_ => 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",
),
),
}
}