/** * 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 MQ { namespace Model { class ListBrokersResult { public: AWS_MQ_API ListBrokersResult(); AWS_MQ_API ListBrokersResult(const Aws::AmazonWebServiceResult& result); AWS_MQ_API ListBrokersResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A list of information about all brokers.

*/ inline const Aws::Vector& GetBrokerSummaries() const{ return m_brokerSummaries; } /** *

A list of information about all brokers.

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

A list of information about all brokers.

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

A list of information about all brokers.

*/ inline ListBrokersResult& WithBrokerSummaries(const Aws::Vector& value) { SetBrokerSummaries(value); return *this;} /** *

A list of information about all brokers.

*/ inline ListBrokersResult& WithBrokerSummaries(Aws::Vector&& value) { SetBrokerSummaries(std::move(value)); return *this;} /** *

A list of information about all brokers.

*/ inline ListBrokersResult& AddBrokerSummaries(const BrokerSummary& value) { m_brokerSummaries.push_back(value); return *this; } /** *

A list of information about all brokers.

*/ inline ListBrokersResult& AddBrokerSummaries(BrokerSummary&& value) { m_brokerSummaries.push_back(std::move(value)); return *this; } /** *

The token that specifies the next page of results Amazon MQ should return. To * request the first page, leave nextToken empty.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token that specifies the next page of results Amazon MQ should return. To * request the first page, leave nextToken empty.

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

The token that specifies the next page of results Amazon MQ should return. To * request the first page, leave nextToken empty.

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

The token that specifies the next page of results Amazon MQ should return. To * request the first page, leave nextToken empty.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

The token that specifies the next page of results Amazon MQ should return. To * request the first page, leave nextToken empty.

*/ inline ListBrokersResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token that specifies the next page of results Amazon MQ should return. To * request the first page, leave nextToken empty.

*/ inline ListBrokersResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token that specifies the next page of results Amazon MQ should return. To * request the first page, leave nextToken empty.

*/ inline ListBrokersResult& WithNextToken(const char* value) { SetNextToken(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 ListBrokersResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListBrokersResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListBrokersResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_brokerSummaries; Aws::String m_nextToken; Aws::String m_requestId; }; } // namespace Model } // namespace MQ } // namespace Aws