#[non_exhaustive]pub struct DeleteInventoryInputBuilder { /* private fields */ }Expand description
A builder for DeleteInventoryInput.
Implementations§
source§impl DeleteInventoryInputBuilder
impl DeleteInventoryInputBuilder
sourcepub fn type_name(self, input: impl Into<String>) -> Self
pub fn type_name(self, input: impl Into<String>) -> Self
The name of the custom inventory type for which you want to delete either all previously collected data or the inventory type itself.
This field is required.sourcepub fn set_type_name(self, input: Option<String>) -> Self
pub fn set_type_name(self, input: Option<String>) -> Self
The name of the custom inventory type for which you want to delete either all previously collected data or the inventory type itself.
sourcepub fn get_type_name(&self) -> &Option<String>
pub fn get_type_name(&self) -> &Option<String>
The name of the custom inventory type for which you want to delete either all previously collected data or the inventory type itself.
sourcepub fn schema_delete_option(self, input: InventorySchemaDeleteOption) -> Self
pub fn schema_delete_option(self, input: InventorySchemaDeleteOption) -> Self
Use the SchemaDeleteOption to delete a custom inventory type (schema). If you don't choose this option, the system only deletes existing inventory data associated with the custom inventory type. Choose one of the following options:
DisableSchema: If you choose this option, the system ignores all inventory data for the specified version, and any earlier versions. To enable this schema again, you must call the PutInventory operation for a version greater than the disabled version.
DeleteSchema: This option deletes the specified custom type from the Inventory service. You can recreate the schema later, if you want.
sourcepub fn set_schema_delete_option(
self,
input: Option<InventorySchemaDeleteOption>
) -> Self
pub fn set_schema_delete_option( self, input: Option<InventorySchemaDeleteOption> ) -> Self
Use the SchemaDeleteOption to delete a custom inventory type (schema). If you don't choose this option, the system only deletes existing inventory data associated with the custom inventory type. Choose one of the following options:
DisableSchema: If you choose this option, the system ignores all inventory data for the specified version, and any earlier versions. To enable this schema again, you must call the PutInventory operation for a version greater than the disabled version.
DeleteSchema: This option deletes the specified custom type from the Inventory service. You can recreate the schema later, if you want.
sourcepub fn get_schema_delete_option(&self) -> &Option<InventorySchemaDeleteOption>
pub fn get_schema_delete_option(&self) -> &Option<InventorySchemaDeleteOption>
Use the SchemaDeleteOption to delete a custom inventory type (schema). If you don't choose this option, the system only deletes existing inventory data associated with the custom inventory type. Choose one of the following options:
DisableSchema: If you choose this option, the system ignores all inventory data for the specified version, and any earlier versions. To enable this schema again, you must call the PutInventory operation for a version greater than the disabled version.
DeleteSchema: This option deletes the specified custom type from the Inventory service. You can recreate the schema later, if you want.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Use this option to view a summary of the deletion request without deleting any data or the data type. This option is useful when you only want to understand what will be deleted. Once you validate that the data to be deleted is what you intend to delete, you can run the same command without specifying the DryRun option.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Use this option to view a summary of the deletion request without deleting any data or the data type. This option is useful when you only want to understand what will be deleted. Once you validate that the data to be deleted is what you intend to delete, you can run the same command without specifying the DryRun option.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
Use this option to view a summary of the deletion request without deleting any data or the data type. This option is useful when you only want to understand what will be deleted. Once you validate that the data to be deleted is what you intend to delete, you can run the same command without specifying the DryRun option.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
User-provided idempotency token.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
User-provided idempotency token.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
User-provided idempotency token.
sourcepub fn build(self) -> Result<DeleteInventoryInput, BuildError>
pub fn build(self) -> Result<DeleteInventoryInput, BuildError>
Consumes the builder and constructs a DeleteInventoryInput.
source§impl DeleteInventoryInputBuilder
impl DeleteInventoryInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DeleteInventoryOutput, SdkError<DeleteInventoryError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DeleteInventoryOutput, SdkError<DeleteInventoryError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DeleteInventoryInputBuilder
impl Clone for DeleteInventoryInputBuilder
source§fn clone(&self) -> DeleteInventoryInputBuilder
fn clone(&self) -> DeleteInventoryInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DeleteInventoryInputBuilder
impl Debug for DeleteInventoryInputBuilder
source§impl Default for DeleteInventoryInputBuilder
impl Default for DeleteInventoryInputBuilder
source§fn default() -> DeleteInventoryInputBuilder
fn default() -> DeleteInventoryInputBuilder
source§impl PartialEq for DeleteInventoryInputBuilder
impl PartialEq for DeleteInventoryInputBuilder
source§fn eq(&self, other: &DeleteInventoryInputBuilder) -> bool
fn eq(&self, other: &DeleteInventoryInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DeleteInventoryInputBuilder
Auto Trait Implementations§
impl Freeze for DeleteInventoryInputBuilder
impl RefUnwindSafe for DeleteInventoryInputBuilder
impl Send for DeleteInventoryInputBuilder
impl Sync for DeleteInventoryInputBuilder
impl Unpin for DeleteInventoryInputBuilder
impl UnwindSafe for DeleteInventoryInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more