Struct aws_sdk_databrew::model::statistics_configuration::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for StatisticsConfiguration
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn included_statistics(self, input: impl Into<String>) -> Self
pub fn included_statistics(self, input: impl Into<String>) -> Self
Appends an item to included_statistics
.
To override the contents of this collection use set_included_statistics
.
List of included evaluations. When the list is undefined, all supported evaluations will be included.
sourcepub fn set_included_statistics(self, input: Option<Vec<String>>) -> Self
pub fn set_included_statistics(self, input: Option<Vec<String>>) -> Self
List of included evaluations. When the list is undefined, all supported evaluations will be included.
Examples found in repository?
src/json_deser.rs (lines 5419-5421)
5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449
pub(crate) fn deser_structure_crate_model_statistics_configuration<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::StatisticsConfiguration>,
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::statistics_configuration::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() {
"IncludedStatistics" => {
builder = builder.set_included_statistics(
crate::json_deser::deser_list_com_amazonaws_databrew_statistic_list(tokens)?
);
}
"Overrides" => {
builder = builder.set_overrides(
crate::json_deser::deser_list_com_amazonaws_databrew_statistic_override_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 overrides(self, input: StatisticOverride) -> Self
pub fn overrides(self, input: StatisticOverride) -> Self
Appends an item to overrides
.
To override the contents of this collection use set_overrides
.
List of overrides for evaluations.
sourcepub fn set_overrides(self, input: Option<Vec<StatisticOverride>>) -> Self
pub fn set_overrides(self, input: Option<Vec<StatisticOverride>>) -> Self
List of overrides for evaluations.
Examples found in repository?
src/json_deser.rs (lines 5424-5426)
5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449
pub(crate) fn deser_structure_crate_model_statistics_configuration<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::StatisticsConfiguration>,
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::statistics_configuration::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() {
"IncludedStatistics" => {
builder = builder.set_included_statistics(
crate::json_deser::deser_list_com_amazonaws_databrew_statistic_list(tokens)?
);
}
"Overrides" => {
builder = builder.set_overrides(
crate::json_deser::deser_list_com_amazonaws_databrew_statistic_override_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) -> StatisticsConfiguration
pub fn build(self) -> StatisticsConfiguration
Consumes the builder and constructs a StatisticsConfiguration
.
Examples found in repository?
src/json_deser.rs (line 5441)
5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449
pub(crate) fn deser_structure_crate_model_statistics_configuration<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<
Option<crate::model::StatisticsConfiguration>,
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::statistics_configuration::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() {
"IncludedStatistics" => {
builder = builder.set_included_statistics(
crate::json_deser::deser_list_com_amazonaws_databrew_statistic_list(tokens)?
);
}
"Overrides" => {
builder = builder.set_overrides(
crate::json_deser::deser_list_com_amazonaws_databrew_statistic_override_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",
),
),
}
}