Struct aws_sdk_databrew::input::update_dataset_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for UpdateDatasetInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn format(self, input: InputFormat) -> Self
pub fn format(self, input: InputFormat) -> Self
The file format of a dataset that is created from an Amazon S3 file or folder.
sourcepub fn set_format(self, input: Option<InputFormat>) -> Self
pub fn set_format(self, input: Option<InputFormat>) -> Self
The file format of a dataset that is created from an Amazon S3 file or folder.
sourcepub fn format_options(self, input: FormatOptions) -> Self
pub fn format_options(self, input: FormatOptions) -> Self
Represents a set of options that define the structure of either comma-separated value (CSV), Excel, or JSON input.
sourcepub fn set_format_options(self, input: Option<FormatOptions>) -> Self
pub fn set_format_options(self, input: Option<FormatOptions>) -> Self
Represents a set of options that define the structure of either comma-separated value (CSV), Excel, or JSON input.
sourcepub fn input(self, input: Input) -> Self
pub fn input(self, input: Input) -> Self
Represents information on how DataBrew can find data, in either the Glue Data Catalog or Amazon S3.
sourcepub fn set_input(self, input: Option<Input>) -> Self
pub fn set_input(self, input: Option<Input>) -> Self
Represents information on how DataBrew can find data, in either the Glue Data Catalog or Amazon S3.
sourcepub fn path_options(self, input: PathOptions) -> Self
pub fn path_options(self, input: PathOptions) -> Self
A set of options that defines how DataBrew interprets an Amazon S3 path of the dataset.
sourcepub fn set_path_options(self, input: Option<PathOptions>) -> Self
pub fn set_path_options(self, input: Option<PathOptions>) -> Self
A set of options that defines how DataBrew interprets an Amazon S3 path of the dataset.
sourcepub fn build(self) -> Result<UpdateDatasetInput, BuildError>
pub fn build(self) -> Result<UpdateDatasetInput, BuildError>
Consumes the builder and constructs a UpdateDatasetInput
.
Examples found in repository?
4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateDataset,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateDatasetError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdateDatasetOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateDatasetError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}