Struct aws_sdk_lookoutvision::operation::delete_dataset::builders::DeleteDatasetInputBuilder
source · #[non_exhaustive]pub struct DeleteDatasetInputBuilder { /* private fields */ }Expand description
A builder for DeleteDatasetInput.
Implementations§
source§impl DeleteDatasetInputBuilder
impl DeleteDatasetInputBuilder
sourcepub fn project_name(self, input: impl Into<String>) -> Self
pub fn project_name(self, input: impl Into<String>) -> Self
The name of the project that contains the dataset that you want to delete.
This field is required.sourcepub fn set_project_name(self, input: Option<String>) -> Self
pub fn set_project_name(self, input: Option<String>) -> Self
The name of the project that contains the dataset that you want to delete.
sourcepub fn get_project_name(&self) -> &Option<String>
pub fn get_project_name(&self) -> &Option<String>
The name of the project that contains the dataset that you want to delete.
sourcepub fn dataset_type(self, input: impl Into<String>) -> Self
pub fn dataset_type(self, input: impl Into<String>) -> Self
The type of the dataset to delete. Specify train to delete the training dataset. Specify test to delete the test dataset. To delete the dataset in a single dataset project, specify train.
sourcepub fn set_dataset_type(self, input: Option<String>) -> Self
pub fn set_dataset_type(self, input: Option<String>) -> Self
The type of the dataset to delete. Specify train to delete the training dataset. Specify test to delete the test dataset. To delete the dataset in a single dataset project, specify train.
sourcepub fn get_dataset_type(&self) -> &Option<String>
pub fn get_dataset_type(&self) -> &Option<String>
The type of the dataset to delete. Specify train to delete the training dataset. Specify test to delete the test dataset. To delete the dataset in a single dataset project, specify train.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
ClientToken is an idempotency token that ensures a call to DeleteDataset completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from DeleteDataset. In this case, safely retry your call to DeleteDataset by using the same ClientToken parameter value.
If you don't supply a value for ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple deletetion requests. You'll need to provide your own value for other use cases.
An error occurs if the other input parameters are not the same as in the first request. Using a different value for ClientToken is considered a new call to DeleteDataset. An idempotency token is active for 8 hours.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
ClientToken is an idempotency token that ensures a call to DeleteDataset completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from DeleteDataset. In this case, safely retry your call to DeleteDataset by using the same ClientToken parameter value.
If you don't supply a value for ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple deletetion requests. You'll need to provide your own value for other use cases.
An error occurs if the other input parameters are not the same as in the first request. Using a different value for ClientToken is considered a new call to DeleteDataset. An idempotency token is active for 8 hours.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
ClientToken is an idempotency token that ensures a call to DeleteDataset completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from DeleteDataset. In this case, safely retry your call to DeleteDataset by using the same ClientToken parameter value.
If you don't supply a value for ClientToken, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple deletetion requests. You'll need to provide your own value for other use cases.
An error occurs if the other input parameters are not the same as in the first request. Using a different value for ClientToken is considered a new call to DeleteDataset. An idempotency token is active for 8 hours.
sourcepub fn build(self) -> Result<DeleteDatasetInput, BuildError>
pub fn build(self) -> Result<DeleteDatasetInput, BuildError>
Consumes the builder and constructs a DeleteDatasetInput.
source§impl DeleteDatasetInputBuilder
impl DeleteDatasetInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DeleteDatasetOutput, SdkError<DeleteDatasetError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DeleteDatasetOutput, SdkError<DeleteDatasetError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DeleteDatasetInputBuilder
impl Clone for DeleteDatasetInputBuilder
source§fn clone(&self) -> DeleteDatasetInputBuilder
fn clone(&self) -> DeleteDatasetInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DeleteDatasetInputBuilder
impl Debug for DeleteDatasetInputBuilder
source§impl Default for DeleteDatasetInputBuilder
impl Default for DeleteDatasetInputBuilder
source§fn default() -> DeleteDatasetInputBuilder
fn default() -> DeleteDatasetInputBuilder
source§impl PartialEq for DeleteDatasetInputBuilder
impl PartialEq for DeleteDatasetInputBuilder
source§fn eq(&self, other: &DeleteDatasetInputBuilder) -> bool
fn eq(&self, other: &DeleteDatasetInputBuilder) -> bool
self and other values to be equal, and is used
by ==.