/** * 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 Json { class JsonValue; } // namespace Json } // namespace Utils namespace Lightsail { namespace Model { class GetBucketsResult { public: AWS_LIGHTSAIL_API GetBucketsResult(); AWS_LIGHTSAIL_API GetBucketsResult(const Aws::AmazonWebServiceResult& result); AWS_LIGHTSAIL_API GetBucketsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of objects that describe buckets.

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

An array of objects that describe buckets.

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

An array of objects that describe buckets.

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

An array of objects that describe buckets.

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

An array of objects that describe buckets.

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

An array of objects that describe buckets.

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

An array of objects that describe buckets.

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

The token to advance to the next page of results from your request.

A * next page token is not returned if there are no more results to display.

*

To get the next page of results, perform another GetBuckets * request and specify the next page token using the pageToken * parameter.

*/ inline const Aws::String& GetNextPageToken() const{ return m_nextPageToken; } /** *

The token to advance to the next page of results from your request.

A * next page token is not returned if there are no more results to display.

*

To get the next page of results, perform another GetBuckets * request and specify the next page token using the pageToken * parameter.

*/ inline void SetNextPageToken(const Aws::String& value) { m_nextPageToken = value; } /** *

The token to advance to the next page of results from your request.

A * next page token is not returned if there are no more results to display.

*

To get the next page of results, perform another GetBuckets * request and specify the next page token using the pageToken * parameter.

*/ inline void SetNextPageToken(Aws::String&& value) { m_nextPageToken = std::move(value); } /** *

The token to advance to the next page of results from your request.

A * next page token is not returned if there are no more results to display.

*

To get the next page of results, perform another GetBuckets * request and specify the next page token using the pageToken * parameter.

*/ inline void SetNextPageToken(const char* value) { m_nextPageToken.assign(value); } /** *

The token to advance to the next page of results from your request.

A * next page token is not returned if there are no more results to display.

*

To get the next page of results, perform another GetBuckets * request and specify the next page token using the pageToken * parameter.

*/ inline GetBucketsResult& WithNextPageToken(const Aws::String& value) { SetNextPageToken(value); return *this;} /** *

The token to advance to the next page of results from your request.

A * next page token is not returned if there are no more results to display.

*

To get the next page of results, perform another GetBuckets * request and specify the next page token using the pageToken * parameter.

*/ inline GetBucketsResult& WithNextPageToken(Aws::String&& value) { SetNextPageToken(std::move(value)); return *this;} /** *

The token to advance to the next page of results from your request.

A * next page token is not returned if there are no more results to display.

*

To get the next page of results, perform another GetBuckets * request and specify the next page token using the pageToken * parameter.

*/ inline GetBucketsResult& WithNextPageToken(const char* value) { SetNextPageToken(value); return *this;} /** *

An object that describes the synchronization status of the Amazon S3 * account-level block public access feature for your Lightsail buckets.

For * more information about this feature and how it affects Lightsail buckets, see Block * public access for buckets in Amazon Lightsail.

*/ inline const AccountLevelBpaSync& GetAccountLevelBpaSync() const{ return m_accountLevelBpaSync; } /** *

An object that describes the synchronization status of the Amazon S3 * account-level block public access feature for your Lightsail buckets.

For * more information about this feature and how it affects Lightsail buckets, see Block * public access for buckets in Amazon Lightsail.

*/ inline void SetAccountLevelBpaSync(const AccountLevelBpaSync& value) { m_accountLevelBpaSync = value; } /** *

An object that describes the synchronization status of the Amazon S3 * account-level block public access feature for your Lightsail buckets.

For * more information about this feature and how it affects Lightsail buckets, see Block * public access for buckets in Amazon Lightsail.

*/ inline void SetAccountLevelBpaSync(AccountLevelBpaSync&& value) { m_accountLevelBpaSync = std::move(value); } /** *

An object that describes the synchronization status of the Amazon S3 * account-level block public access feature for your Lightsail buckets.

For * more information about this feature and how it affects Lightsail buckets, see Block * public access for buckets in Amazon Lightsail.

*/ inline GetBucketsResult& WithAccountLevelBpaSync(const AccountLevelBpaSync& value) { SetAccountLevelBpaSync(value); return *this;} /** *

An object that describes the synchronization status of the Amazon S3 * account-level block public access feature for your Lightsail buckets.

For * more information about this feature and how it affects Lightsail buckets, see Block * public access for buckets in Amazon Lightsail.

*/ inline GetBucketsResult& WithAccountLevelBpaSync(AccountLevelBpaSync&& value) { SetAccountLevelBpaSync(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 GetBucketsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetBucketsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetBucketsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_buckets; Aws::String m_nextPageToken; AccountLevelBpaSync m_accountLevelBpaSync; Aws::String m_requestId; }; } // namespace Model } // namespace Lightsail } // namespace Aws