/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace S3 { namespace Model { class HeadBucketResult { public: AWS_S3_API HeadBucketResult(); AWS_S3_API HeadBucketResult(const Aws::AmazonWebServiceResult& result); AWS_S3_API HeadBucketResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The type of location where the bucket is created.

This * functionality is only supported by directory buckets.

*/ inline const LocationType& GetBucketLocationType() const{ return m_bucketLocationType; } /** *

The type of location where the bucket is created.

This * functionality is only supported by directory buckets.

*/ inline void SetBucketLocationType(const LocationType& value) { m_bucketLocationType = value; } /** *

The type of location where the bucket is created.

This * functionality is only supported by directory buckets.

*/ inline void SetBucketLocationType(LocationType&& value) { m_bucketLocationType = std::move(value); } /** *

The type of location where the bucket is created.

This * functionality is only supported by directory buckets.

*/ inline HeadBucketResult& WithBucketLocationType(const LocationType& value) { SetBucketLocationType(value); return *this;} /** *

The type of location where the bucket is created.

This * functionality is only supported by directory buckets.

*/ inline HeadBucketResult& WithBucketLocationType(LocationType&& value) { SetBucketLocationType(std::move(value)); return *this;} /** *

The name of the location where the bucket will be created.

For * directory buckets, the AZ ID of the Availability Zone where the bucket is * created. An example AZ ID value is usw2-az1.

This * functionality is only supported by directory buckets.

*/ inline const Aws::String& GetBucketLocationName() const{ return m_bucketLocationName; } /** *

The name of the location where the bucket will be created.

For * directory buckets, the AZ ID of the Availability Zone where the bucket is * created. An example AZ ID value is usw2-az1.

This * functionality is only supported by directory buckets.

*/ inline void SetBucketLocationName(const Aws::String& value) { m_bucketLocationName = value; } /** *

The name of the location where the bucket will be created.

For * directory buckets, the AZ ID of the Availability Zone where the bucket is * created. An example AZ ID value is usw2-az1.

This * functionality is only supported by directory buckets.

*/ inline void SetBucketLocationName(Aws::String&& value) { m_bucketLocationName = std::move(value); } /** *

The name of the location where the bucket will be created.

For * directory buckets, the AZ ID of the Availability Zone where the bucket is * created. An example AZ ID value is usw2-az1.

This * functionality is only supported by directory buckets.

*/ inline void SetBucketLocationName(const char* value) { m_bucketLocationName.assign(value); } /** *

The name of the location where the bucket will be created.

For * directory buckets, the AZ ID of the Availability Zone where the bucket is * created. An example AZ ID value is usw2-az1.

This * functionality is only supported by directory buckets.

*/ inline HeadBucketResult& WithBucketLocationName(const Aws::String& value) { SetBucketLocationName(value); return *this;} /** *

The name of the location where the bucket will be created.

For * directory buckets, the AZ ID of the Availability Zone where the bucket is * created. An example AZ ID value is usw2-az1.

This * functionality is only supported by directory buckets.

*/ inline HeadBucketResult& WithBucketLocationName(Aws::String&& value) { SetBucketLocationName(std::move(value)); return *this;} /** *

The name of the location where the bucket will be created.

For * directory buckets, the AZ ID of the Availability Zone where the bucket is * created. An example AZ ID value is usw2-az1.

This * functionality is only supported by directory buckets.

*/ inline HeadBucketResult& WithBucketLocationName(const char* value) { SetBucketLocationName(value); return *this;} /** *

The Region that the bucket is located.

This functionality is * not supported for directory buckets.

*/ inline const Aws::String& GetBucketRegion() const{ return m_bucketRegion; } /** *

The Region that the bucket is located.

This functionality is * not supported for directory buckets.

*/ inline void SetBucketRegion(const Aws::String& value) { m_bucketRegion = value; } /** *

The Region that the bucket is located.

This functionality is * not supported for directory buckets.

*/ inline void SetBucketRegion(Aws::String&& value) { m_bucketRegion = std::move(value); } /** *

The Region that the bucket is located.

This functionality is * not supported for directory buckets.

*/ inline void SetBucketRegion(const char* value) { m_bucketRegion.assign(value); } /** *

The Region that the bucket is located.

This functionality is * not supported for directory buckets.

*/ inline HeadBucketResult& WithBucketRegion(const Aws::String& value) { SetBucketRegion(value); return *this;} /** *

The Region that the bucket is located.

This functionality is * not supported for directory buckets.

*/ inline HeadBucketResult& WithBucketRegion(Aws::String&& value) { SetBucketRegion(std::move(value)); return *this;} /** *

The Region that the bucket is located.

This functionality is * not supported for directory buckets.

*/ inline HeadBucketResult& WithBucketRegion(const char* value) { SetBucketRegion(value); return *this;} /** *

Indicates whether the bucket name used in the request is an access point * alias.

This functionality is not supported for directory * buckets.

*/ inline bool GetAccessPointAlias() const{ return m_accessPointAlias; } /** *

Indicates whether the bucket name used in the request is an access point * alias.

This functionality is not supported for directory * buckets.

*/ inline void SetAccessPointAlias(bool value) { m_accessPointAlias = value; } /** *

Indicates whether the bucket name used in the request is an access point * alias.

This functionality is not supported for directory * buckets.

*/ inline HeadBucketResult& WithAccessPointAlias(bool value) { SetAccessPointAlias(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline HeadBucketResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline HeadBucketResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline HeadBucketResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: LocationType m_bucketLocationType; Aws::String m_bucketLocationName; Aws::String m_bucketRegion; bool m_accessPointAlias; Aws::String m_requestId; }; } // namespace Model } // namespace S3 } // namespace Aws