86 lines
3.1 KiB
C++
86 lines
3.1 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/s3/S3_EXPORTS.h>
|
|
#include <aws/s3/model/LocationType.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Xml
|
|
{
|
|
class XmlNode;
|
|
} // namespace Xml
|
|
} // namespace Utils
|
|
namespace S3
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Specifies the location where the bucket will be created.</p> <p>For directory
|
|
* buckets, the location type is Availability Zone. For more information about
|
|
* directory buckets, see <a
|
|
* href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-overview.html">Directory
|
|
* buckets</a> in the <i>Amazon S3 User Guide</i>.</p> <p>This functionality
|
|
* is only supported by directory buckets.</p> <p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/s3-2006-03-01/LocationInfo">AWS API
|
|
* Reference</a></p>
|
|
*/
|
|
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;
|
|
|
|
|
|
///@{
|
|
/**
|
|
* <p>The type of location where the bucket will be created.</p>
|
|
*/
|
|
inline const LocationType& GetType() const{ return m_type; }
|
|
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
|
inline void SetType(const LocationType& value) { m_typeHasBeenSet = true; m_type = value; }
|
|
inline void SetType(LocationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
|
inline LocationInfo& WithType(const LocationType& value) { SetType(value); return *this;}
|
|
inline LocationInfo& WithType(LocationType&& value) { SetType(std::move(value)); return *this;}
|
|
///@}
|
|
|
|
///@{
|
|
/**
|
|
* <p>The name of the location where the bucket will be created.</p> <p>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
|
|
* <code>usw2-az1</code>.</p>
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|
inline LocationInfo& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
inline LocationInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
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
|