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

The configuration information for the bucket.

See Also:

AWS * API Reference

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

Specifies the Region where the bucket will be created. If you don't specify a * Region, the bucket is created in the US East (N. Virginia) Region * (us-east-1).

*/ inline const BucketLocationConstraint& GetLocationConstraint() const{ return m_locationConstraint; } /** *

Specifies the Region where the bucket will be created. If you don't specify a * Region, the bucket is created in the US East (N. Virginia) Region * (us-east-1).

*/ inline bool LocationConstraintHasBeenSet() const { return m_locationConstraintHasBeenSet; } /** *

Specifies the Region where the bucket will be created. If you don't specify a * Region, the bucket is created in the US East (N. Virginia) Region * (us-east-1).

*/ inline void SetLocationConstraint(const BucketLocationConstraint& value) { m_locationConstraintHasBeenSet = true; m_locationConstraint = value; } /** *

Specifies the Region where the bucket will be created. If you don't specify a * Region, the bucket is created in the US East (N. Virginia) Region * (us-east-1).

*/ inline void SetLocationConstraint(BucketLocationConstraint&& value) { m_locationConstraintHasBeenSet = true; m_locationConstraint = std::move(value); } /** *

Specifies the Region where the bucket will be created. If you don't specify a * Region, the bucket is created in the US East (N. Virginia) Region * (us-east-1).

*/ inline CreateBucketConfiguration& WithLocationConstraint(const BucketLocationConstraint& value) { SetLocationConstraint(value); return *this;} /** *

Specifies the Region where the bucket will be created. If you don't specify a * Region, the bucket is created in the US East (N. Virginia) Region * (us-east-1).

*/ inline CreateBucketConfiguration& WithLocationConstraint(BucketLocationConstraint&& value) { SetLocationConstraint(std::move(value)); return *this;} private: BucketLocationConstraint m_locationConstraint; bool m_locationConstraintHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws