pub struct Builder { /* private fields */ }
Expand description
A builder for AwsEksClusterLoggingDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn cluster_logging(
self,
input: AwsEksClusterLoggingClusterLoggingDetails
) -> Self
pub fn cluster_logging(
self,
input: AwsEksClusterLoggingClusterLoggingDetails
) -> Self
Appends an item to cluster_logging
.
To override the contents of this collection use set_cluster_logging
.
Cluster logging configurations.
sourcepub fn set_cluster_logging(
self,
input: Option<Vec<AwsEksClusterLoggingClusterLoggingDetails>>
) -> Self
pub fn set_cluster_logging(
self,
input: Option<Vec<AwsEksClusterLoggingClusterLoggingDetails>>
) -> Self
Cluster logging configurations.
Examples found in repository?
src/json_deser.rs (lines 31254-31256)
31229 31230 31231 31232 31233 31234 31235 31236 31237 31238 31239 31240 31241 31242 31243 31244 31245 31246 31247 31248 31249 31250 31251 31252 31253 31254 31255 31256 31257 31258 31259 31260 31261 31262 31263 31264 31265 31266 31267 31268 31269 31270 31271 31272 31273 31274 31275 31276 31277 31278 31279
pub(crate) fn deser_structure_crate_model_aws_eks_cluster_logging_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEksClusterLoggingDetails>,
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::aws_eks_cluster_logging_details::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() {
"ClusterLogging" => {
builder = builder.set_cluster_logging(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_eks_cluster_logging_cluster_logging_list(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) -> AwsEksClusterLoggingDetails
pub fn build(self) -> AwsEksClusterLoggingDetails
Consumes the builder and constructs a AwsEksClusterLoggingDetails
.
Examples found in repository?
src/json_deser.rs (line 31271)
31229 31230 31231 31232 31233 31234 31235 31236 31237 31238 31239 31240 31241 31242 31243 31244 31245 31246 31247 31248 31249 31250 31251 31252 31253 31254 31255 31256 31257 31258 31259 31260 31261 31262 31263 31264 31265 31266 31267 31268 31269 31270 31271 31272 31273 31274 31275 31276 31277 31278 31279
pub(crate) fn deser_structure_crate_model_aws_eks_cluster_logging_details<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::AwsEksClusterLoggingDetails>,
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::aws_eks_cluster_logging_details::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() {
"ClusterLogging" => {
builder = builder.set_cluster_logging(
crate::json_deser::deser_list_com_amazonaws_securityhub_aws_eks_cluster_logging_cluster_logging_list(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",
),
),
}
}