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

The list of buckets owned by the requestor.

*/ inline const Aws::Vector& GetBuckets() const{ return m_buckets; } /** *

The list of buckets owned by the requestor.

*/ inline void SetBuckets(const Aws::Vector& value) { m_buckets = value; } /** *

The list of buckets owned by the requestor.

*/ inline void SetBuckets(Aws::Vector&& value) { m_buckets = std::move(value); } /** *

The list of buckets owned by the requestor.

*/ inline ListBucketsResult& WithBuckets(const Aws::Vector& value) { SetBuckets(value); return *this;} /** *

The list of buckets owned by the requestor.

*/ inline ListBucketsResult& WithBuckets(Aws::Vector&& value) { SetBuckets(std::move(value)); return *this;} /** *

The list of buckets owned by the requestor.

*/ inline ListBucketsResult& AddBuckets(const Bucket& value) { m_buckets.push_back(value); return *this; } /** *

The list of buckets owned by the requestor.

*/ inline ListBucketsResult& AddBuckets(Bucket&& value) { m_buckets.push_back(std::move(value)); return *this; } /** *

The owner of the buckets listed.

*/ inline const Owner& GetOwner() const{ return m_owner; } /** *

The owner of the buckets listed.

*/ inline void SetOwner(const Owner& value) { m_owner = value; } /** *

The owner of the buckets listed.

*/ inline void SetOwner(Owner&& value) { m_owner = std::move(value); } /** *

The owner of the buckets listed.

*/ inline ListBucketsResult& WithOwner(const Owner& value) { SetOwner(value); return *this;} /** *

The owner of the buckets listed.

*/ inline ListBucketsResult& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;} private: Aws::Vector m_buckets; Owner m_owner; }; } // namespace Model } // namespace S3 } // namespace Aws