/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace S3 { namespace Model { /** *

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

*/ class AWS_S3_API InventoryConfiguration { public: InventoryConfiguration(); InventoryConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode); InventoryConfiguration& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

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.

*/ inline bool GetIsEnabled() const{ return m_isEnabled; } /** *

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.

*/ inline bool IsEnabledHasBeenSet() const { return m_isEnabledHasBeenSet; } /** *

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.

*/ inline void SetIsEnabled(bool value) { m_isEnabledHasBeenSet = true; m_isEnabled = value; } /** *

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.

*/ inline InventoryConfiguration& WithIsEnabled(bool value) { SetIsEnabled(value); return *this;} /** *

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.

*/ inline const InventoryIncludedObjectVersions& GetIncludedObjectVersions() const{ return m_includedObjectVersions; } /** *

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.

*/ inline bool IncludedObjectVersionsHasBeenSet() const { return m_includedObjectVersionsHasBeenSet; } /** *

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.

*/ inline void SetIncludedObjectVersions(const InventoryIncludedObjectVersions& value) { m_includedObjectVersionsHasBeenSet = true; m_includedObjectVersions = value; } /** *

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.

*/ inline void SetIncludedObjectVersions(InventoryIncludedObjectVersions&& value) { m_includedObjectVersionsHasBeenSet = true; m_includedObjectVersions = std::move(value); } /** *

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.

*/ inline InventoryConfiguration& WithIncludedObjectVersions(const InventoryIncludedObjectVersions& value) { SetIncludedObjectVersions(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.

*/ inline InventoryConfiguration& WithIncludedObjectVersions(InventoryIncludedObjectVersions&& value) { SetIncludedObjectVersions(std::move(value)); return *this;} /** *

Contains the optional fields that are included in the inventory results.

*/ inline const Aws::Vector& GetOptionalFields() const{ return m_optionalFields; } /** *

Contains 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::Vector& value) { m_optionalFieldsHasBeenSet = true; m_optionalFields = value; } /** *

Contains the optional fields that are included in the inventory results.

*/ inline void SetOptionalFields(Aws::Vector&& value) { m_optionalFieldsHasBeenSet = true; m_optionalFields = std::move(value); } /** *

Contains the optional fields that are included in the inventory results.

*/ inline InventoryConfiguration& WithOptionalFields(const Aws::Vector& value) { SetOptionalFields(value); return *this;} /** *

Contains the optional fields that are included in the inventory results.

*/ inline InventoryConfiguration& WithOptionalFields(Aws::Vector&& value) { SetOptionalFields(std::move(value)); return *this;} /** *

Contains 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 m_optionalFields; bool m_optionalFieldsHasBeenSet; InventorySchedule m_schedule; bool m_scheduleHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws