/** * 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 S3Control { namespace Model { /** *

A combination of a bucket and Region that's part of a Multi-Region Access * Point.

See Also:

AWS * API Reference

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

The name of the bucket.

*/ inline const Aws::String& GetBucket() const{ return m_bucket; } /** *

The name of the bucket.

*/ inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } /** *

The name of the bucket.

*/ inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; } /** *

The name of the bucket.

*/ inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); } /** *

The name of the bucket.

*/ inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); } /** *

The name of the bucket.

*/ inline RegionReport& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} /** *

The name of the bucket.

*/ inline RegionReport& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} /** *

The name of the bucket.

*/ inline RegionReport& WithBucket(const char* value) { SetBucket(value); return *this;} /** *

The name of the Region.

*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *

The name of the Region.

*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *

The name of the Region.

*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *

The name of the Region.

*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *

The name of the Region.

*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *

The name of the Region.

*/ inline RegionReport& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *

The name of the Region.

*/ inline RegionReport& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *

The name of the Region.

*/ inline RegionReport& WithRegion(const char* value) { SetRegion(value); return *this;} /** *

The Amazon Web Services account ID that owns the Amazon S3 bucket that's * associated with this Multi-Region Access Point.

*/ inline const Aws::String& GetBucketAccountId() const{ return m_bucketAccountId; } /** *

The Amazon Web Services account ID that owns the Amazon S3 bucket that's * associated with this Multi-Region Access Point.

*/ inline bool BucketAccountIdHasBeenSet() const { return m_bucketAccountIdHasBeenSet; } /** *

The Amazon Web Services account ID that owns the Amazon S3 bucket that's * associated with this Multi-Region Access Point.

*/ inline void SetBucketAccountId(const Aws::String& value) { m_bucketAccountIdHasBeenSet = true; m_bucketAccountId = value; } /** *

The Amazon Web Services account ID that owns the Amazon S3 bucket that's * associated with this Multi-Region Access Point.

*/ inline void SetBucketAccountId(Aws::String&& value) { m_bucketAccountIdHasBeenSet = true; m_bucketAccountId = std::move(value); } /** *

The Amazon Web Services account ID that owns the Amazon S3 bucket that's * associated with this Multi-Region Access Point.

*/ inline void SetBucketAccountId(const char* value) { m_bucketAccountIdHasBeenSet = true; m_bucketAccountId.assign(value); } /** *

The Amazon Web Services account ID that owns the Amazon S3 bucket that's * associated with this Multi-Region Access Point.

*/ inline RegionReport& WithBucketAccountId(const Aws::String& value) { SetBucketAccountId(value); return *this;} /** *

The Amazon Web Services account ID that owns the Amazon S3 bucket that's * associated with this Multi-Region Access Point.

*/ inline RegionReport& WithBucketAccountId(Aws::String&& value) { SetBucketAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID that owns the Amazon S3 bucket that's * associated with this Multi-Region Access Point.

*/ inline RegionReport& WithBucketAccountId(const char* value) { SetBucketAccountId(value); return *this;} private: Aws::String m_bucket; bool m_bucketHasBeenSet = false; Aws::String m_region; bool m_regionHasBeenSet = false; Aws::String m_bucketAccountId; bool m_bucketAccountIdHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws