Struct aws_sdk_kafka::model::mutable_cluster_info::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for MutableClusterInfo
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn broker_ebs_volume_info(self, input: BrokerEbsVolumeInfo) -> Self
pub fn broker_ebs_volume_info(self, input: BrokerEbsVolumeInfo) -> Self
Appends an item to broker_ebs_volume_info
.
To override the contents of this collection use set_broker_ebs_volume_info
.
Specifies the size of the EBS volume and the ID of the associated broker.
sourcepub fn set_broker_ebs_volume_info(
self,
input: Option<Vec<BrokerEbsVolumeInfo>>
) -> Self
pub fn set_broker_ebs_volume_info(
self,
input: Option<Vec<BrokerEbsVolumeInfo>>
) -> Self
Specifies the size of the EBS volume and the ID of the associated broker.
Examples found in repository?
4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::MutableClusterInfo>,
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::mutable_cluster_info::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() {
"brokerEBSVolumeInfo" => {
builder = builder.set_broker_ebs_volume_info(
crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
);
}
"configurationInfo" => {
builder = builder.set_configuration_info(
crate::json_deser::deser_structure_crate_model_configuration_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()?,
);
}
"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(
tokens,
)?,
);
}
"kafkaVersion" => {
builder = builder.set_kafka_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"instanceType" => {
builder = builder.set_instance_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"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,
)?,
);
}
"connectivityInfo" => {
builder = builder.set_connectivity_info(
crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn configuration_info(self, input: ConfigurationInfo) -> Self
pub fn configuration_info(self, input: ConfigurationInfo) -> Self
Information about the changes in the configuration of the brokers.
sourcepub fn set_configuration_info(self, input: Option<ConfigurationInfo>) -> Self
pub fn set_configuration_info(self, input: Option<ConfigurationInfo>) -> Self
Information about the changes in the configuration of the brokers.
Examples found in repository?
4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::MutableClusterInfo>,
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::mutable_cluster_info::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() {
"brokerEBSVolumeInfo" => {
builder = builder.set_broker_ebs_volume_info(
crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
);
}
"configurationInfo" => {
builder = builder.set_configuration_info(
crate::json_deser::deser_structure_crate_model_configuration_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()?,
);
}
"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(
tokens,
)?,
);
}
"kafkaVersion" => {
builder = builder.set_kafka_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"instanceType" => {
builder = builder.set_instance_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"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,
)?,
);
}
"connectivityInfo" => {
builder = builder.set_connectivity_info(
crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn 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?
4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::MutableClusterInfo>,
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::mutable_cluster_info::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() {
"brokerEBSVolumeInfo" => {
builder = builder.set_broker_ebs_volume_info(
crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
);
}
"configurationInfo" => {
builder = builder.set_configuration_info(
crate::json_deser::deser_structure_crate_model_configuration_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()?,
);
}
"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(
tokens,
)?,
);
}
"kafkaVersion" => {
builder = builder.set_kafka_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"instanceType" => {
builder = builder.set_instance_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"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,
)?,
);
}
"connectivityInfo" => {
builder = builder.set_connectivity_info(
crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn enhanced_monitoring(self, input: EnhancedMonitoring) -> Self
pub fn enhanced_monitoring(self, input: EnhancedMonitoring) -> Self
Specifies which Apache Kafka metrics Amazon MSK gathers and sends to Amazon CloudWatch for this cluster.
sourcepub fn set_enhanced_monitoring(self, input: Option<EnhancedMonitoring>) -> Self
pub fn set_enhanced_monitoring(self, input: Option<EnhancedMonitoring>) -> Self
Specifies which Apache Kafka metrics Amazon MSK gathers and sends to Amazon CloudWatch for this cluster.
Examples found in repository?
4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::MutableClusterInfo>,
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::mutable_cluster_info::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() {
"brokerEBSVolumeInfo" => {
builder = builder.set_broker_ebs_volume_info(
crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
);
}
"configurationInfo" => {
builder = builder.set_configuration_info(
crate::json_deser::deser_structure_crate_model_configuration_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()?,
);
}
"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(
tokens,
)?,
);
}
"kafkaVersion" => {
builder = builder.set_kafka_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"instanceType" => {
builder = builder.set_instance_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"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,
)?,
);
}
"connectivityInfo" => {
builder = builder.set_connectivity_info(
crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn open_monitoring(self, input: OpenMonitoring) -> Self
pub fn open_monitoring(self, input: OpenMonitoring) -> Self
The settings for open monitoring.
sourcepub fn set_open_monitoring(self, input: Option<OpenMonitoring>) -> Self
pub fn set_open_monitoring(self, input: Option<OpenMonitoring>) -> Self
The settings for open monitoring.
Examples found in repository?
4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::MutableClusterInfo>,
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::mutable_cluster_info::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() {
"brokerEBSVolumeInfo" => {
builder = builder.set_broker_ebs_volume_info(
crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
);
}
"configurationInfo" => {
builder = builder.set_configuration_info(
crate::json_deser::deser_structure_crate_model_configuration_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()?,
);
}
"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(
tokens,
)?,
);
}
"kafkaVersion" => {
builder = builder.set_kafka_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"instanceType" => {
builder = builder.set_instance_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"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,
)?,
);
}
"connectivityInfo" => {
builder = builder.set_connectivity_info(
crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn kafka_version(self, input: impl Into<String>) -> Self
pub fn kafka_version(self, input: impl Into<String>) -> Self
The Apache Kafka version.
sourcepub fn set_kafka_version(self, input: Option<String>) -> Self
pub fn set_kafka_version(self, input: Option<String>) -> Self
The Apache Kafka version.
Examples found in repository?
4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::MutableClusterInfo>,
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::mutable_cluster_info::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() {
"brokerEBSVolumeInfo" => {
builder = builder.set_broker_ebs_volume_info(
crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
);
}
"configurationInfo" => {
builder = builder.set_configuration_info(
crate::json_deser::deser_structure_crate_model_configuration_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()?,
);
}
"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(
tokens,
)?,
);
}
"kafkaVersion" => {
builder = builder.set_kafka_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"instanceType" => {
builder = builder.set_instance_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"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,
)?,
);
}
"connectivityInfo" => {
builder = builder.set_connectivity_info(
crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn logging_info(self, input: LoggingInfo) -> Self
pub fn logging_info(self, input: LoggingInfo) -> Self
You can configure your MSK cluster to send broker logs to different destination types. This is a container for the configuration details related to broker logs.
sourcepub fn set_logging_info(self, input: Option<LoggingInfo>) -> Self
pub fn set_logging_info(self, input: Option<LoggingInfo>) -> Self
You can configure your MSK cluster to send broker logs to different destination types. This is a container for the configuration details related to broker logs.
Examples found in repository?
4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::MutableClusterInfo>,
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::mutable_cluster_info::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() {
"brokerEBSVolumeInfo" => {
builder = builder.set_broker_ebs_volume_info(
crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
);
}
"configurationInfo" => {
builder = builder.set_configuration_info(
crate::json_deser::deser_structure_crate_model_configuration_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()?,
);
}
"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(
tokens,
)?,
);
}
"kafkaVersion" => {
builder = builder.set_kafka_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"instanceType" => {
builder = builder.set_instance_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"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,
)?,
);
}
"connectivityInfo" => {
builder = builder.set_connectivity_info(
crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn instance_type(self, input: impl Into<String>) -> Self
pub fn instance_type(self, input: impl Into<String>) -> Self
Information about the Amazon MSK broker type.
sourcepub fn set_instance_type(self, input: Option<String>) -> Self
pub fn set_instance_type(self, input: Option<String>) -> Self
Information about the Amazon MSK broker type.
Examples found in repository?
4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::MutableClusterInfo>,
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::mutable_cluster_info::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() {
"brokerEBSVolumeInfo" => {
builder = builder.set_broker_ebs_volume_info(
crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
);
}
"configurationInfo" => {
builder = builder.set_configuration_info(
crate::json_deser::deser_structure_crate_model_configuration_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()?,
);
}
"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(
tokens,
)?,
);
}
"kafkaVersion" => {
builder = builder.set_kafka_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"instanceType" => {
builder = builder.set_instance_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"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,
)?,
);
}
"connectivityInfo" => {
builder = builder.set_connectivity_info(
crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn client_authentication(self, input: 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?
4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::MutableClusterInfo>,
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::mutable_cluster_info::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() {
"brokerEBSVolumeInfo" => {
builder = builder.set_broker_ebs_volume_info(
crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
);
}
"configurationInfo" => {
builder = builder.set_configuration_info(
crate::json_deser::deser_structure_crate_model_configuration_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()?,
);
}
"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(
tokens,
)?,
);
}
"kafkaVersion" => {
builder = builder.set_kafka_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"instanceType" => {
builder = builder.set_instance_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"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,
)?,
);
}
"connectivityInfo" => {
builder = builder.set_connectivity_info(
crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn 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?
4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::MutableClusterInfo>,
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::mutable_cluster_info::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() {
"brokerEBSVolumeInfo" => {
builder = builder.set_broker_ebs_volume_info(
crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
);
}
"configurationInfo" => {
builder = builder.set_configuration_info(
crate::json_deser::deser_structure_crate_model_configuration_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()?,
);
}
"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(
tokens,
)?,
);
}
"kafkaVersion" => {
builder = builder.set_kafka_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"instanceType" => {
builder = builder.set_instance_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"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,
)?,
);
}
"connectivityInfo" => {
builder = builder.set_connectivity_info(
crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn connectivity_info(self, input: ConnectivityInfo) -> Self
pub fn connectivity_info(self, input: ConnectivityInfo) -> Self
Information about the broker access configuration.
sourcepub fn set_connectivity_info(self, input: Option<ConnectivityInfo>) -> Self
pub fn set_connectivity_info(self, input: Option<ConnectivityInfo>) -> Self
Information about the broker access configuration.
Examples found in repository?
4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::MutableClusterInfo>,
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::mutable_cluster_info::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() {
"brokerEBSVolumeInfo" => {
builder = builder.set_broker_ebs_volume_info(
crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
);
}
"configurationInfo" => {
builder = builder.set_configuration_info(
crate::json_deser::deser_structure_crate_model_configuration_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()?,
);
}
"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(
tokens,
)?,
);
}
"kafkaVersion" => {
builder = builder.set_kafka_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"instanceType" => {
builder = builder.set_instance_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"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,
)?,
);
}
"connectivityInfo" => {
builder = builder.set_connectivity_info(
crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}
sourcepub fn build(self) -> MutableClusterInfo
pub fn build(self) -> MutableClusterInfo
Consumes the builder and constructs a MutableClusterInfo
.
Examples found in repository?
4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269
pub(crate) fn deser_structure_crate_model_mutable_cluster_info<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::MutableClusterInfo>,
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::mutable_cluster_info::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() {
"brokerEBSVolumeInfo" => {
builder = builder.set_broker_ebs_volume_info(
crate::json_deser::deser_list_com_amazonaws_kafka___list_of_broker_ebs_volume_info(tokens)?
);
}
"configurationInfo" => {
builder = builder.set_configuration_info(
crate::json_deser::deser_structure_crate_model_configuration_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()?,
);
}
"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(
tokens,
)?,
);
}
"kafkaVersion" => {
builder = builder.set_kafka_version(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"loggingInfo" => {
builder = builder.set_logging_info(
crate::json_deser::deser_structure_crate_model_logging_info(
tokens,
)?,
);
}
"instanceType" => {
builder = builder.set_instance_type(
aws_smithy_json::deserialize::token::expect_string_or_null(
tokens.next(),
)?
.map(|s| s.to_unescaped().map(|u| u.into_owned()))
.transpose()?,
);
}
"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,
)?,
);
}
"connectivityInfo" => {
builder = builder.set_connectivity_info(
crate::json_deser::deser_structure_crate_model_connectivity_info(tokens)?
);
}
_ => aws_smithy_json::deserialize::token::skip_value(tokens)?,
}
}
other => {
return Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
"expected object key or end object, found: {:?}",
other
)),
)
}
}
}
Ok(Some(builder.build()))
}
_ => Err(
aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
),
),
}
}