/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies the inventory configuration for an Amazon S3 bucket. For more
* information, see GET
* Bucket inventory in the Amazon S3 API Reference. See
* Also:
AWS
* API Reference
Contains information about where to publish the inventory results.
*/ inline const InventoryDestination& GetDestination() const{ return m_destination; } /** *Contains information about where to publish the inventory results.
*/ inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; } /** *Contains information about where to publish the inventory results.
*/ inline void SetDestination(const InventoryDestination& value) { m_destinationHasBeenSet = true; m_destination = value; } /** *Contains information about where to publish the inventory results.
*/ inline void SetDestination(InventoryDestination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); } /** *Contains information about where to publish the inventory results.
*/ inline InventoryConfiguration& WithDestination(const InventoryDestination& value) { SetDestination(value); return *this;} /** *Contains information about where to publish the inventory results.
*/ inline InventoryConfiguration& WithDestination(InventoryDestination&& value) { SetDestination(std::move(value)); return *this;} /** *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.
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.
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.
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.
Specifies an inventory filter. The inventory only includes objects that meet * the filter's criteria.
*/ inline const InventoryFilter& GetFilter() const{ return m_filter; } /** *Specifies an inventory filter. The inventory only includes objects that meet * the filter's criteria.
*/ inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } /** *Specifies an inventory filter. The inventory only includes objects that meet * the filter's criteria.
*/ inline void SetFilter(const InventoryFilter& value) { m_filterHasBeenSet = true; m_filter = value; } /** *Specifies an inventory filter. The inventory only includes objects that meet * the filter's criteria.
*/ inline void SetFilter(InventoryFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); } /** *Specifies an inventory filter. The inventory only includes objects that meet * the filter's criteria.
*/ inline InventoryConfiguration& WithFilter(const InventoryFilter& value) { SetFilter(value); return *this;} /** *Specifies an inventory filter. The inventory only includes objects that meet * the filter's criteria.
*/ inline InventoryConfiguration& WithFilter(InventoryFilter&& value) { SetFilter(std::move(value)); return *this;} /** *The ID used to identify the inventory configuration.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The ID used to identify the inventory configuration.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The ID used to identify the inventory configuration.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The ID used to identify the inventory configuration.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The ID used to identify the inventory configuration.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The ID used to identify the inventory configuration.
*/ inline InventoryConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The ID used to identify the inventory configuration.
*/ inline InventoryConfiguration& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The ID used to identify the inventory configuration.
*/ inline InventoryConfiguration& WithId(const char* value) { SetId(value); return *this;} /** *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.
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.
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.
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.
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.
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.
Contains the optional fields that are included in the inventory results.
*/ inline const Aws::VectorContains the optional fields that are included in the inventory results.
*/ inline bool OptionalFieldsHasBeenSet() const { return m_optionalFieldsHasBeenSet; } /** *Contains the optional fields that are included in the inventory results.
*/ inline void SetOptionalFields(const Aws::VectorContains the optional fields that are included in the inventory results.
*/ inline void SetOptionalFields(Aws::VectorContains the optional fields that are included in the inventory results.
*/ inline InventoryConfiguration& WithOptionalFields(const Aws::VectorContains the optional fields that are included in the inventory results.
*/ inline InventoryConfiguration& WithOptionalFields(Aws::VectorContains the optional fields that are included in the inventory results.
*/ inline InventoryConfiguration& AddOptionalFields(const InventoryOptionalField& value) { m_optionalFieldsHasBeenSet = true; m_optionalFields.push_back(value); return *this; } /** *Contains the optional fields that are included in the inventory results.
*/ inline InventoryConfiguration& AddOptionalFields(InventoryOptionalField&& value) { m_optionalFieldsHasBeenSet = true; m_optionalFields.push_back(std::move(value)); return *this; } /** *Specifies the schedule for generating inventory results.
*/ inline const InventorySchedule& GetSchedule() const{ return m_schedule; } /** *Specifies the schedule for generating inventory results.
*/ inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; } /** *Specifies the schedule for generating inventory results.
*/ inline void SetSchedule(const InventorySchedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; } /** *Specifies the schedule for generating inventory results.
*/ inline void SetSchedule(InventorySchedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); } /** *Specifies the schedule for generating inventory results.
*/ inline InventoryConfiguration& WithSchedule(const InventorySchedule& value) { SetSchedule(value); return *this;} /** *Specifies the schedule for generating inventory results.
*/ inline InventoryConfiguration& WithSchedule(InventorySchedule&& value) { SetSchedule(std::move(value)); return *this;} private: InventoryDestination m_destination; bool m_destinationHasBeenSet; bool m_isEnabled; bool m_isEnabledHasBeenSet; InventoryFilter m_filter; bool m_filterHasBeenSet; Aws::String m_id; bool m_idHasBeenSet; InventoryIncludedObjectVersions m_includedObjectVersions; bool m_includedObjectVersionsHasBeenSet; Aws::Vector