Struct aws_sdk_databrew::model::input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Input
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn s3_input_definition(self, input: S3Location) -> Self
pub fn s3_input_definition(self, input: S3Location) -> Self
The Amazon S3 location where the data is stored.
sourcepub fn set_s3_input_definition(self, input: Option<S3Location>) -> Self
pub fn set_s3_input_definition(self, input: Option<S3Location>) -> Self
The Amazon S3 location where the data is stored.
Examples found in repository?
src/json_deser.rs (lines 3366-3370)
3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410
pub(crate) fn deser_structure_crate_model_input<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Input>, 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::input::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() {
"S3InputDefinition" => {
builder = builder.set_s3_input_definition(
crate::json_deser::deser_structure_crate_model_s3_location(
tokens,
)?,
);
}
"DataCatalogInputDefinition" => {
builder = builder.set_data_catalog_input_definition(
crate::json_deser::deser_structure_crate_model_data_catalog_input_definition(tokens)?
);
}
"DatabaseInputDefinition" => {
builder = builder.set_database_input_definition(
crate::json_deser::deser_structure_crate_model_database_input_definition(tokens)?
);
}
"Metadata" => {
builder = builder.set_metadata(
crate::json_deser::deser_structure_crate_model_metadata(
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 data_catalog_input_definition(
self,
input: DataCatalogInputDefinition
) -> Self
pub fn data_catalog_input_definition(
self,
input: DataCatalogInputDefinition
) -> Self
The Glue Data Catalog parameters for the data.
sourcepub fn set_data_catalog_input_definition(
self,
input: Option<DataCatalogInputDefinition>
) -> Self
pub fn set_data_catalog_input_definition(
self,
input: Option<DataCatalogInputDefinition>
) -> Self
The Glue Data Catalog parameters for the data.
Examples found in repository?
src/json_deser.rs (lines 3373-3375)
3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410
pub(crate) fn deser_structure_crate_model_input<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Input>, 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::input::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() {
"S3InputDefinition" => {
builder = builder.set_s3_input_definition(
crate::json_deser::deser_structure_crate_model_s3_location(
tokens,
)?,
);
}
"DataCatalogInputDefinition" => {
builder = builder.set_data_catalog_input_definition(
crate::json_deser::deser_structure_crate_model_data_catalog_input_definition(tokens)?
);
}
"DatabaseInputDefinition" => {
builder = builder.set_database_input_definition(
crate::json_deser::deser_structure_crate_model_database_input_definition(tokens)?
);
}
"Metadata" => {
builder = builder.set_metadata(
crate::json_deser::deser_structure_crate_model_metadata(
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 database_input_definition(self, input: DatabaseInputDefinition) -> Self
pub fn database_input_definition(self, input: DatabaseInputDefinition) -> Self
Connection information for dataset input files stored in a database.
sourcepub fn set_database_input_definition(
self,
input: Option<DatabaseInputDefinition>
) -> Self
pub fn set_database_input_definition(
self,
input: Option<DatabaseInputDefinition>
) -> Self
Connection information for dataset input files stored in a database.
Examples found in repository?
src/json_deser.rs (lines 3378-3380)
3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410
pub(crate) fn deser_structure_crate_model_input<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Input>, 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::input::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() {
"S3InputDefinition" => {
builder = builder.set_s3_input_definition(
crate::json_deser::deser_structure_crate_model_s3_location(
tokens,
)?,
);
}
"DataCatalogInputDefinition" => {
builder = builder.set_data_catalog_input_definition(
crate::json_deser::deser_structure_crate_model_data_catalog_input_definition(tokens)?
);
}
"DatabaseInputDefinition" => {
builder = builder.set_database_input_definition(
crate::json_deser::deser_structure_crate_model_database_input_definition(tokens)?
);
}
"Metadata" => {
builder = builder.set_metadata(
crate::json_deser::deser_structure_crate_model_metadata(
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 metadata(self, input: Metadata) -> Self
pub fn metadata(self, input: Metadata) -> Self
Contains additional resource information needed for specific datasets.
sourcepub fn set_metadata(self, input: Option<Metadata>) -> Self
pub fn set_metadata(self, input: Option<Metadata>) -> Self
Contains additional resource information needed for specific datasets.
Examples found in repository?
src/json_deser.rs (lines 3383-3387)
3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410
pub(crate) fn deser_structure_crate_model_input<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Input>, 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::input::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() {
"S3InputDefinition" => {
builder = builder.set_s3_input_definition(
crate::json_deser::deser_structure_crate_model_s3_location(
tokens,
)?,
);
}
"DataCatalogInputDefinition" => {
builder = builder.set_data_catalog_input_definition(
crate::json_deser::deser_structure_crate_model_data_catalog_input_definition(tokens)?
);
}
"DatabaseInputDefinition" => {
builder = builder.set_database_input_definition(
crate::json_deser::deser_structure_crate_model_database_input_definition(tokens)?
);
}
"Metadata" => {
builder = builder.set_metadata(
crate::json_deser::deser_structure_crate_model_metadata(
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) -> Input
pub fn build(self) -> Input
Consumes the builder and constructs a Input
.
Examples found in repository?
src/json_deser.rs (line 3402)
3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410
pub(crate) fn deser_structure_crate_model_input<'a, I>(
tokens: &mut std::iter::Peekable<I>,
) -> Result<Option<crate::model::Input>, 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::input::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() {
"S3InputDefinition" => {
builder = builder.set_s3_input_definition(
crate::json_deser::deser_structure_crate_model_s3_location(
tokens,
)?,
);
}
"DataCatalogInputDefinition" => {
builder = builder.set_data_catalog_input_definition(
crate::json_deser::deser_structure_crate_model_data_catalog_input_definition(tokens)?
);
}
"DatabaseInputDefinition" => {
builder = builder.set_database_input_definition(
crate::json_deser::deser_structure_crate_model_database_input_definition(tokens)?
);
}
"Metadata" => {
builder = builder.set_metadata(
crate::json_deser::deser_structure_crate_model_metadata(
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",
),
),
}
}