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

Specifies the information about the bucket that will be created. For more * information about directory buckets, see Directory * buckets in the Amazon S3 User Guide.

This functionality * is only supported by directory buckets.

See Also:

AWS API * Reference

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

The number of Availability Zone that's used for redundancy for the * bucket.

*/ inline const DataRedundancy& GetDataRedundancy() const{ return m_dataRedundancy; } /** *

The number of Availability Zone that's used for redundancy for the * bucket.

*/ inline bool DataRedundancyHasBeenSet() const { return m_dataRedundancyHasBeenSet; } /** *

The number of Availability Zone that's used for redundancy for the * bucket.

*/ inline void SetDataRedundancy(const DataRedundancy& value) { m_dataRedundancyHasBeenSet = true; m_dataRedundancy = value; } /** *

The number of Availability Zone that's used for redundancy for the * bucket.

*/ inline void SetDataRedundancy(DataRedundancy&& value) { m_dataRedundancyHasBeenSet = true; m_dataRedundancy = std::move(value); } /** *

The number of Availability Zone that's used for redundancy for the * bucket.

*/ inline BucketInfo& WithDataRedundancy(const DataRedundancy& value) { SetDataRedundancy(value); return *this;} /** *

The number of Availability Zone that's used for redundancy for the * bucket.

*/ inline BucketInfo& WithDataRedundancy(DataRedundancy&& value) { SetDataRedundancy(std::move(value)); return *this;} /** *

The type of bucket.

*/ inline const BucketType& GetType() const{ return m_type; } /** *

The type of bucket.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of bucket.

*/ inline void SetType(const BucketType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of bucket.

*/ inline void SetType(BucketType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of bucket.

*/ inline BucketInfo& WithType(const BucketType& value) { SetType(value); return *this;} /** *

The type of bucket.

*/ inline BucketInfo& WithType(BucketType&& value) { SetType(std::move(value)); return *this;} private: DataRedundancy m_dataRedundancy; bool m_dataRedundancyHasBeenSet = false; BucketType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace S3 } // namespace Aws