/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The container for the bucket configuration. This is not
* supported by Amazon S3 on Outposts buckets.See Also:
* AWS
* API Reference
Specifies the Region where the bucket will be created. If you are creating a * bucket on the US East (N. Virginia) Region (us-east-1), you do not need to * specify the location.
This is not supported by Amazon S3 on * Outposts buckets.
*/ inline const BucketLocationConstraint& GetLocationConstraint() const{ return m_locationConstraint; } /** *Specifies the Region where the bucket will be created. If you are creating a * bucket on the US East (N. Virginia) Region (us-east-1), you do not need to * specify the location.
This is not supported by Amazon S3 on * Outposts buckets.
*/ inline bool LocationConstraintHasBeenSet() const { return m_locationConstraintHasBeenSet; } /** *Specifies the Region where the bucket will be created. If you are creating a * bucket on the US East (N. Virginia) Region (us-east-1), you do not need to * specify the location.
This is not supported by Amazon S3 on * Outposts buckets.
*/ inline void SetLocationConstraint(const BucketLocationConstraint& value) { m_locationConstraintHasBeenSet = true; m_locationConstraint = value; } /** *Specifies the Region where the bucket will be created. If you are creating a * bucket on the US East (N. Virginia) Region (us-east-1), you do not need to * specify the location.
This is not supported by Amazon S3 on * Outposts buckets.
*/ inline void SetLocationConstraint(BucketLocationConstraint&& value) { m_locationConstraintHasBeenSet = true; m_locationConstraint = std::move(value); } /** *Specifies the Region where the bucket will be created. If you are creating a * bucket on the US East (N. Virginia) Region (us-east-1), you do not need to * specify the location.
This is not supported by Amazon S3 on * Outposts buckets.
*/ inline CreateBucketConfiguration& WithLocationConstraint(const BucketLocationConstraint& value) { SetLocationConstraint(value); return *this;} /** *Specifies the Region where the bucket will be created. If you are creating a * bucket on the US East (N. Virginia) Region (us-east-1), you do not need to * specify the location.
This is not supported by Amazon S3 on * Outposts buckets.
*/ inline CreateBucketConfiguration& WithLocationConstraint(BucketLocationConstraint&& value) { SetLocationConstraint(std::move(value)); return *this;} private: BucketLocationConstraint m_locationConstraint; bool m_locationConstraintHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws