/** * 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 namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace S3 { namespace Model { /** *

Specifies the S3 Intelligent-Tiering configuration for an Amazon S3 * bucket.

For information about the S3 Intelligent-Tiering storage class, * see Storage * class for automatically optimizing frequently and infrequently accessed * objects.

See Also:

AWS * API Reference

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

The ID used to identify the S3 Intelligent-Tiering configuration.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID used to identify the S3 Intelligent-Tiering configuration.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID used to identify the S3 Intelligent-Tiering configuration.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID used to identify the S3 Intelligent-Tiering configuration.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID used to identify the S3 Intelligent-Tiering configuration.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID used to identify the S3 Intelligent-Tiering configuration.

*/ inline IntelligentTieringConfiguration& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID used to identify the S3 Intelligent-Tiering configuration.

*/ inline IntelligentTieringConfiguration& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID used to identify the S3 Intelligent-Tiering configuration.

*/ inline IntelligentTieringConfiguration& WithId(const char* value) { SetId(value); return *this;} /** *

Specifies a bucket filter. The configuration only includes objects that meet * the filter's criteria.

*/ inline const IntelligentTieringFilter& GetFilter() const{ return m_filter; } /** *

Specifies a bucket filter. The configuration only includes objects that meet * the filter's criteria.

*/ inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } /** *

Specifies a bucket filter. The configuration only includes objects that meet * the filter's criteria.

*/ inline void SetFilter(const IntelligentTieringFilter& value) { m_filterHasBeenSet = true; m_filter = value; } /** *

Specifies a bucket filter. The configuration only includes objects that meet * the filter's criteria.

*/ inline void SetFilter(IntelligentTieringFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); } /** *

Specifies a bucket filter. The configuration only includes objects that meet * the filter's criteria.

*/ inline IntelligentTieringConfiguration& WithFilter(const IntelligentTieringFilter& value) { SetFilter(value); return *this;} /** *

Specifies a bucket filter. The configuration only includes objects that meet * the filter's criteria.

*/ inline IntelligentTieringConfiguration& WithFilter(IntelligentTieringFilter&& value) { SetFilter(std::move(value)); return *this;} /** *

Specifies the status of the configuration.

*/ inline const IntelligentTieringStatus& GetStatus() const{ return m_status; } /** *

Specifies the status of the configuration.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

Specifies the status of the configuration.

*/ inline void SetStatus(const IntelligentTieringStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

Specifies the status of the configuration.

*/ inline void SetStatus(IntelligentTieringStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

Specifies the status of the configuration.

*/ inline IntelligentTieringConfiguration& WithStatus(const IntelligentTieringStatus& value) { SetStatus(value); return *this;} /** *

Specifies the status of the configuration.

*/ inline IntelligentTieringConfiguration& WithStatus(IntelligentTieringStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

Specifies the S3 Intelligent-Tiering storage class tier of the * configuration.

*/ inline const Aws::Vector& GetTierings() const{ return m_tierings; } /** *

Specifies the S3 Intelligent-Tiering storage class tier of the * configuration.

*/ inline bool TieringsHasBeenSet() const { return m_tieringsHasBeenSet; } /** *

Specifies the S3 Intelligent-Tiering storage class tier of the * configuration.

*/ inline void SetTierings(const Aws::Vector& value) { m_tieringsHasBeenSet = true; m_tierings = value; } /** *

Specifies the S3 Intelligent-Tiering storage class tier of the * configuration.

*/ inline void SetTierings(Aws::Vector&& value) { m_tieringsHasBeenSet = true; m_tierings = std::move(value); } /** *

Specifies the S3 Intelligent-Tiering storage class tier of the * configuration.

*/ inline IntelligentTieringConfiguration& WithTierings(const Aws::Vector& value) { SetTierings(value); return *this;} /** *

Specifies the S3 Intelligent-Tiering storage class tier of the * configuration.

*/ inline IntelligentTieringConfiguration& WithTierings(Aws::Vector&& value) { SetTierings(std::move(value)); return *this;} /** *

Specifies the S3 Intelligent-Tiering storage class tier of the * configuration.

*/ inline IntelligentTieringConfiguration& AddTierings(const Tiering& value) { m_tieringsHasBeenSet = true; m_tierings.push_back(value); return *this; } /** *

Specifies the S3 Intelligent-Tiering storage class tier of the * configuration.

*/ inline IntelligentTieringConfiguration& AddTierings(Tiering&& value) { m_tieringsHasBeenSet = true; m_tierings.push_back(std::move(value)); return *this; } private: Aws::String m_id; bool m_idHasBeenSet; IntelligentTieringFilter m_filter; bool m_filterHasBeenSet; IntelligentTieringStatus m_status; bool m_statusHasBeenSet; Aws::Vector m_tierings; bool m_tieringsHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws