/** * 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 location where the bucket will be created.

For directory * buckets, the location type is Availability Zone. 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 LocationInfo { public: AWS_S3_API LocationInfo(); AWS_S3_API LocationInfo(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3_API LocationInfo& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

The type of location where the bucket will be created.

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

The type of location where the bucket will be created.

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

The type of location where the bucket will be created.

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

The type of location where the bucket will be created.

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

The type of location where the bucket will be created.

*/ inline LocationInfo& WithType(const LocationType& value) { SetType(value); return *this;} /** *

The type of location where the bucket will be created.

*/ inline LocationInfo& WithType(LocationType&& value) { SetType(std::move(value)); return *this;} /** *

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

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

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

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

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

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

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

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

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

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

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

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

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

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

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

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

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

*/ inline LocationInfo& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

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

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

*/ inline LocationInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

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

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

*/ inline LocationInfo& WithName(const char* value) { SetName(value); return *this;} private: LocationType m_type; bool m_typeHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace S3 } // namespace Aws