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

The ARN of the channel.

*/ inline const Aws::String& GetChannelArn() const{ return m_channelArn; } /** *

The ARN of the channel.

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

The ARN of the channel.

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

The ARN of the channel.

*/ inline void SetChannelArn(const char* value) { m_channelArn.assign(value); } /** *

The ARN of the channel.

*/ inline ListChannelBansResult& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;} /** *

The ARN of the channel.

*/ inline ListChannelBansResult& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;} /** *

The ARN of the channel.

*/ inline ListChannelBansResult& WithChannelArn(const char* value) { SetChannelArn(value); return *this;} /** *

The token passed by previous API calls until all requested bans are * returned.

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

The token passed by previous API calls until all requested bans are * returned.

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

The token passed by previous API calls until all requested bans are * returned.

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

The token passed by previous API calls until all requested bans are * returned.

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

The token passed by previous API calls until all requested bans are * returned.

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

The token passed by previous API calls until all requested bans are * returned.

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

The token passed by previous API calls until all requested bans are * returned.

*/ inline ListChannelBansResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The information for each requested ban.

*/ inline const Aws::Vector& GetChannelBans() const{ return m_channelBans; } /** *

The information for each requested ban.

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

The information for each requested ban.

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

The information for each requested ban.

*/ inline ListChannelBansResult& WithChannelBans(const Aws::Vector& value) { SetChannelBans(value); return *this;} /** *

The information for each requested ban.

*/ inline ListChannelBansResult& WithChannelBans(Aws::Vector&& value) { SetChannelBans(std::move(value)); return *this;} /** *

The information for each requested ban.

*/ inline ListChannelBansResult& AddChannelBans(const ChannelBanSummary& value) { m_channelBans.push_back(value); return *this; } /** *

The information for each requested ban.

*/ inline ListChannelBansResult& AddChannelBans(ChannelBanSummary&& value) { m_channelBans.push_back(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 ListChannelBansResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListChannelBansResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListChannelBansResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_channelArn; Aws::String m_nextToken; Aws::Vector m_channelBans; Aws::String m_requestId; }; } // namespace Model } // namespace ChimeSDKMessaging } // namespace Aws