/** * 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 Json { class JsonValue; } // namespace Json } // namespace Utils namespace SWF { namespace Model { /** *

Contains a paginated collection of DomainInfo structures.

See * Also:

AWS API * Reference

*/ class ListDomainsResult { public: AWS_SWF_API ListDomainsResult(); AWS_SWF_API ListDomainsResult(const Aws::AmazonWebServiceResult& result); AWS_SWF_API ListDomainsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of DomainInfo structures.

*/ inline const Aws::Vector& GetDomainInfos() const{ return m_domainInfos; } /** *

A list of DomainInfo structures.

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

A list of DomainInfo structures.

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

A list of DomainInfo structures.

*/ inline ListDomainsResult& WithDomainInfos(const Aws::Vector& value) { SetDomainInfos(value); return *this;} /** *

A list of DomainInfo structures.

*/ inline ListDomainsResult& WithDomainInfos(Aws::Vector&& value) { SetDomainInfos(std::move(value)); return *this;} /** *

A list of DomainInfo structures.

*/ inline ListDomainsResult& AddDomainInfos(const DomainInfo& value) { m_domainInfos.push_back(value); return *this; } /** *

A list of DomainInfo structures.

*/ inline ListDomainsResult& AddDomainInfos(DomainInfo&& value) { m_domainInfos.push_back(std::move(value)); return *this; } /** *

If a NextPageToken was returned by a previous call, there are * more results available. To retrieve the next page of results, make the call * again using the returned token in nextPageToken. Keep all other * arguments unchanged.

The configured maximumPageSize * determines how many results can be returned in a single call.

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

If a NextPageToken was returned by a previous call, there are * more results available. To retrieve the next page of results, make the call * again using the returned token in nextPageToken. Keep all other * arguments unchanged.

The configured maximumPageSize * determines how many results can be returned in a single call.

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

If a NextPageToken was returned by a previous call, there are * more results available. To retrieve the next page of results, make the call * again using the returned token in nextPageToken. Keep all other * arguments unchanged.

The configured maximumPageSize * determines how many results can be returned in a single call.

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

If a NextPageToken was returned by a previous call, there are * more results available. To retrieve the next page of results, make the call * again using the returned token in nextPageToken. Keep all other * arguments unchanged.

The configured maximumPageSize * determines how many results can be returned in a single call.

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

If a NextPageToken was returned by a previous call, there are * more results available. To retrieve the next page of results, make the call * again using the returned token in nextPageToken. Keep all other * arguments unchanged.

The configured maximumPageSize * determines how many results can be returned in a single call.

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

If a NextPageToken was returned by a previous call, there are * more results available. To retrieve the next page of results, make the call * again using the returned token in nextPageToken. Keep all other * arguments unchanged.

The configured maximumPageSize * determines how many results can be returned in a single call.

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

If a NextPageToken was returned by a previous call, there are * more results available. To retrieve the next page of results, make the call * again using the returned token in nextPageToken. Keep all other * arguments unchanged.

The configured maximumPageSize * determines how many results can be returned in a single call.

*/ inline ListDomainsResult& WithNextPageToken(const char* value) { SetNextPageToken(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 ListDomainsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListDomainsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListDomainsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_domainInfos; Aws::String m_nextPageToken; Aws::String m_requestId; }; } // namespace Model } // namespace SWF } // namespace Aws