/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 ListBucketsResult { public: AWS_S3_API ListBucketsResult(); AWS_S3_API ListBucketsResult(const Aws::AmazonWebServiceResult& result); AWS_S3_API ListBucketsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The list of buckets owned by the requester.

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

The list of buckets owned by the requester.

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

The list of buckets owned by the requester.

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

The list of buckets owned by the requester.

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

The list of buckets owned by the requester.

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

The list of buckets owned by the requester.

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

The list of buckets owned by the requester.

*/ 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;} 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 ListBucketsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListBucketsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListBucketsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_buckets; Owner m_owner; Aws::String m_requestId; }; } // namespace Model } // namespace S3 } // namespace Aws