pub struct Builder { /* private fields */ }Expand description
A builder for DescribeExportTasksInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn export_ids(self, input: impl Into<String>) -> Self
pub fn export_ids(self, input: impl Into<String>) -> Self
Appends an item to export_ids.
To override the contents of this collection use set_export_ids.
One or more unique identifiers used to query the status of an export request.
sourcepub fn set_export_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_export_ids(self, input: Option<Vec<String>>) -> Self
One or more unique identifiers used to query the status of an export request.
sourcepub fn filters(self, input: ExportFilter) -> Self
pub fn filters(self, input: ExportFilter) -> Self
Appends an item to filters.
To override the contents of this collection use set_filters.
One or more filters.
-
AgentId- ID of the agent whose collected data will be exported
sourcepub fn set_filters(self, input: Option<Vec<ExportFilter>>) -> Self
pub fn set_filters(self, input: Option<Vec<ExportFilter>>) -> Self
One or more filters.
-
AgentId- ID of the agent whose collected data will be exported
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of volume results returned by DescribeExportTasks in paginated output. When this parameter is used, DescribeExportTasks only returns maxResults results in a single page along with a nextToken response element.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of volume results returned by DescribeExportTasks in paginated output. When this parameter is used, DescribeExportTasks only returns maxResults results in a single page along with a nextToken response element.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The nextToken value returned from a previous paginated DescribeExportTasks request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The nextToken value returned from a previous paginated DescribeExportTasks request where maxResults was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned the nextToken value. This value is null when there are no more results to return.
sourcepub fn build(self) -> Result<DescribeExportTasksInput, BuildError>
pub fn build(self) -> Result<DescribeExportTasksInput, BuildError>
Consumes the builder and constructs a DescribeExportTasksInput.
Examples found in repository?
1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DescribeExportTasks,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DescribeExportTasksError>,
> {
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::DescribeExportTasksOutput,
aws_smithy_http::result::SdkError<crate::error::DescribeExportTasksError>,
> {
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
}