Struct aws_sdk_databrew::model::path_options::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for PathOptions
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn last_modified_date_condition(self, input: FilterExpression) -> Self
pub fn last_modified_date_condition(self, input: FilterExpression) -> Self
If provided, this structure defines a date range for matching Amazon S3 objects based on their LastModifiedDate attribute in Amazon S3.
sourcepub fn set_last_modified_date_condition(
self,
input: Option<FilterExpression>
) -> Self
pub fn set_last_modified_date_condition(
self,
input: Option<FilterExpression>
) -> Self
If provided, this structure defines a date range for matching Amazon S3 objects based on their LastModifiedDate attribute in Amazon S3.
Examples found in repository?
3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471
pub(crate) fn deser_structure_crate_model_path_options<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::PathOptions>, 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::path_options::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() {
"LastModifiedDateCondition" => {
builder = builder.set_last_modified_date_condition(
crate::json_deser::deser_structure_crate_model_filter_expression(tokens)?
);
}
"FilesLimit" => {
builder = builder.set_files_limit(
crate::json_deser::deser_structure_crate_model_files_limit(
tokens,
)?,
);
}
"Parameters" => {
builder = builder.set_parameters(
crate::json_deser::deser_map_com_amazonaws_databrew_path_parameters_map(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 files_limit(self, input: FilesLimit) -> Self
pub fn files_limit(self, input: FilesLimit) -> Self
If provided, this structure imposes a limit on a number of files that should be selected.
sourcepub fn set_files_limit(self, input: Option<FilesLimit>) -> Self
pub fn set_files_limit(self, input: Option<FilesLimit>) -> Self
If provided, this structure imposes a limit on a number of files that should be selected.
Examples found in repository?
3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471
pub(crate) fn deser_structure_crate_model_path_options<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::PathOptions>, 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::path_options::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() {
"LastModifiedDateCondition" => {
builder = builder.set_last_modified_date_condition(
crate::json_deser::deser_structure_crate_model_filter_expression(tokens)?
);
}
"FilesLimit" => {
builder = builder.set_files_limit(
crate::json_deser::deser_structure_crate_model_files_limit(
tokens,
)?,
);
}
"Parameters" => {
builder = builder.set_parameters(
crate::json_deser::deser_map_com_amazonaws_databrew_path_parameters_map(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 parameters(self, k: impl Into<String>, v: DatasetParameter) -> Self
pub fn parameters(self, k: impl Into<String>, v: DatasetParameter) -> Self
Adds a key-value pair to parameters
.
To override the contents of this collection use set_parameters
.
A structure that maps names of parameters used in the Amazon S3 path of a dataset to their definitions.
sourcepub fn set_parameters(
self,
input: Option<HashMap<String, DatasetParameter>>
) -> Self
pub fn set_parameters(
self,
input: Option<HashMap<String, DatasetParameter>>
) -> Self
A structure that maps names of parameters used in the Amazon S3 path of a dataset to their definitions.
Examples found in repository?
3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471
pub(crate) fn deser_structure_crate_model_path_options<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::PathOptions>, 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::path_options::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() {
"LastModifiedDateCondition" => {
builder = builder.set_last_modified_date_condition(
crate::json_deser::deser_structure_crate_model_filter_expression(tokens)?
);
}
"FilesLimit" => {
builder = builder.set_files_limit(
crate::json_deser::deser_structure_crate_model_files_limit(
tokens,
)?,
);
}
"Parameters" => {
builder = builder.set_parameters(
crate::json_deser::deser_map_com_amazonaws_databrew_path_parameters_map(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) -> PathOptions
pub fn build(self) -> PathOptions
Consumes the builder and constructs a PathOptions
.
Examples found in repository?
3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471
pub(crate) fn deser_structure_crate_model_path_options<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::PathOptions>, 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::path_options::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() {
"LastModifiedDateCondition" => {
builder = builder.set_last_modified_date_condition(
crate::json_deser::deser_structure_crate_model_filter_expression(tokens)?
);
}
"FilesLimit" => {
builder = builder.set_files_limit(
crate::json_deser::deser_structure_crate_model_files_limit(
tokens,
)?,
);
}
"Parameters" => {
builder = builder.set_parameters(
crate::json_deser::deser_map_com_amazonaws_databrew_path_parameters_map(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",
),
),
}
}