#[non_exhaustive]pub struct InventoryConfigurationBuilder { /* private fields */ }
Expand description
A builder for InventoryConfiguration
.
Implementations§
source§impl InventoryConfigurationBuilder
impl InventoryConfigurationBuilder
sourcepub fn destination(self, input: InventoryDestination) -> Self
pub fn destination(self, input: InventoryDestination) -> Self
Contains information about where to publish the inventory results.
This field is required.sourcepub fn set_destination(self, input: Option<InventoryDestination>) -> Self
pub fn set_destination(self, input: Option<InventoryDestination>) -> Self
Contains information about where to publish the inventory results.
sourcepub fn get_destination(&self) -> &Option<InventoryDestination>
pub fn get_destination(&self) -> &Option<InventoryDestination>
Contains information about where to publish the inventory results.
sourcepub fn is_enabled(self, input: bool) -> Self
pub fn is_enabled(self, input: bool) -> Self
Specifies whether the inventory is enabled or disabled. If set to True
, an inventory list is generated. If set to False
, no inventory list is generated.
sourcepub fn set_is_enabled(self, input: Option<bool>) -> Self
pub fn set_is_enabled(self, input: Option<bool>) -> Self
Specifies whether the inventory is enabled or disabled. If set to True
, an inventory list is generated. If set to False
, no inventory list is generated.
sourcepub fn get_is_enabled(&self) -> &Option<bool>
pub fn get_is_enabled(&self) -> &Option<bool>
Specifies whether the inventory is enabled or disabled. If set to True
, an inventory list is generated. If set to False
, no inventory list is generated.
sourcepub fn filter(self, input: InventoryFilter) -> Self
pub fn filter(self, input: InventoryFilter) -> Self
Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria.
sourcepub fn set_filter(self, input: Option<InventoryFilter>) -> Self
pub fn set_filter(self, input: Option<InventoryFilter>) -> Self
Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria.
sourcepub fn get_filter(&self) -> &Option<InventoryFilter>
pub fn get_filter(&self) -> &Option<InventoryFilter>
Specifies an inventory filter. The inventory only includes objects that meet the filter's criteria.
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The ID used to identify the inventory configuration.
This field is required.sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The ID used to identify the inventory configuration.
sourcepub fn included_object_versions(
self,
input: InventoryIncludedObjectVersions,
) -> Self
pub fn included_object_versions( self, input: InventoryIncludedObjectVersions, ) -> Self
Object versions to include in the inventory list. If set to All
, the list includes all the object versions, which adds the version-related fields VersionId
, IsLatest
, and DeleteMarker
to the list. If set to Current
, the list does not contain these version-related fields.
sourcepub fn set_included_object_versions(
self,
input: Option<InventoryIncludedObjectVersions>,
) -> Self
pub fn set_included_object_versions( self, input: Option<InventoryIncludedObjectVersions>, ) -> Self
Object versions to include in the inventory list. If set to All
, the list includes all the object versions, which adds the version-related fields VersionId
, IsLatest
, and DeleteMarker
to the list. If set to Current
, the list does not contain these version-related fields.
sourcepub fn get_included_object_versions(
&self,
) -> &Option<InventoryIncludedObjectVersions>
pub fn get_included_object_versions( &self, ) -> &Option<InventoryIncludedObjectVersions>
Object versions to include in the inventory list. If set to All
, the list includes all the object versions, which adds the version-related fields VersionId
, IsLatest
, and DeleteMarker
to the list. If set to Current
, the list does not contain these version-related fields.
sourcepub fn optional_fields(self, input: InventoryOptionalField) -> Self
pub fn optional_fields(self, input: InventoryOptionalField) -> Self
Appends an item to optional_fields
.
To override the contents of this collection use set_optional_fields
.
Contains the optional fields that are included in the inventory results.
sourcepub fn set_optional_fields(
self,
input: Option<Vec<InventoryOptionalField>>,
) -> Self
pub fn set_optional_fields( self, input: Option<Vec<InventoryOptionalField>>, ) -> Self
Contains the optional fields that are included in the inventory results.
sourcepub fn get_optional_fields(&self) -> &Option<Vec<InventoryOptionalField>>
pub fn get_optional_fields(&self) -> &Option<Vec<InventoryOptionalField>>
Contains the optional fields that are included in the inventory results.
sourcepub fn schedule(self, input: InventorySchedule) -> Self
pub fn schedule(self, input: InventorySchedule) -> Self
Specifies the schedule for generating inventory results.
This field is required.sourcepub fn set_schedule(self, input: Option<InventorySchedule>) -> Self
pub fn set_schedule(self, input: Option<InventorySchedule>) -> Self
Specifies the schedule for generating inventory results.
sourcepub fn get_schedule(&self) -> &Option<InventorySchedule>
pub fn get_schedule(&self) -> &Option<InventorySchedule>
Specifies the schedule for generating inventory results.
sourcepub fn build(self) -> Result<InventoryConfiguration, BuildError>
pub fn build(self) -> Result<InventoryConfiguration, BuildError>
Consumes the builder and constructs a InventoryConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for InventoryConfigurationBuilder
impl Clone for InventoryConfigurationBuilder
source§fn clone(&self) -> InventoryConfigurationBuilder
fn clone(&self) -> InventoryConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for InventoryConfigurationBuilder
impl Default for InventoryConfigurationBuilder
source§fn default() -> InventoryConfigurationBuilder
fn default() -> InventoryConfigurationBuilder
source§impl PartialEq for InventoryConfigurationBuilder
impl PartialEq for InventoryConfigurationBuilder
source§fn eq(&self, other: &InventoryConfigurationBuilder) -> bool
fn eq(&self, other: &InventoryConfigurationBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for InventoryConfigurationBuilder
Auto Trait Implementations§
impl Freeze for InventoryConfigurationBuilder
impl RefUnwindSafe for InventoryConfigurationBuilder
impl Send for InventoryConfigurationBuilder
impl Sync for InventoryConfigurationBuilder
impl Unpin for InventoryConfigurationBuilder
impl UnwindSafe for InventoryConfigurationBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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