pub struct Builder { /* private fields */ }
Expand description

A builder for Provisioned.

Implementations§

Information about the brokers.

Information about the brokers.

Examples found in repository?
src/json_deser.rs (lines 4293-4295)
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",
            ),
        ),
    }
}

Information about the Apache Kafka version deployed on the brokers.

Information about the Apache Kafka version deployed on the brokers.

Examples found in repository?
src/json_deser.rs (lines 4298-4300)
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",
            ),
        ),
    }
}

Includes all client authentication information.

Includes all client authentication information.

Examples found in repository?
src/json_deser.rs (lines 4303-4305)
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",
            ),
        ),
    }
}

Includes all encryption-related information.

Includes all encryption-related information.

Examples found in repository?
src/json_deser.rs (lines 4308-4312)
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",
            ),
        ),
    }
}

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.

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?
src/json_deser.rs (lines 4315-4325)
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",
            ),
        ),
    }
}

The settings for open monitoring.

The settings for open monitoring.

Examples found in repository?
src/json_deser.rs (lines 4328-4330)
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",
            ),
        ),
    }
}

Log delivery information for the cluster.

Log delivery information for the cluster.

Examples found in repository?
src/json_deser.rs (lines 4333-4337)
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",
            ),
        ),
    }
}

The number of broker nodes in the cluster.

The number of broker nodes in the cluster.

Examples found in repository?
src/json_deser.rs (lines 4340-4346)
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",
            ),
        ),
    }
}

The connection string to use to connect to the Apache ZooKeeper cluster.

The connection string to use to connect to the Apache ZooKeeper cluster.

Examples found in repository?
src/json_deser.rs (lines 4349-4355)
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",
            ),
        ),
    }
}

The connection string to use to connect to the Apache ZooKeeper cluster on a TLS port.

The connection string to use to connect to the Apache ZooKeeper cluster on a TLS port.

Examples found in repository?
src/json_deser.rs (lines 4358-4364)
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",
            ),
        ),
    }
}

Consumes the builder and constructs a Provisioned.

Examples found in repository?
src/json_deser.rs (line 4379)
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",
            ),
        ),
    }
}

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more