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

The ARN of the channel containing the requested messages.

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

The ARN of the channel containing the requested messages.

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

The ARN of the channel containing the requested messages.

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

The ARN of the channel containing the requested messages.

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

The ARN of the channel containing the requested messages.

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

The ARN of the channel containing the requested messages.

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

The ARN of the channel containing the requested messages.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

The information about, and content of, each requested message.

*/ inline const Aws::Vector& GetChannelMessages() const{ return m_channelMessages; } /** *

The information about, and content of, each requested message.

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

The information about, and content of, each requested message.

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

The information about, and content of, each requested message.

*/ inline ListChannelMessagesResult& WithChannelMessages(const Aws::Vector& value) { SetChannelMessages(value); return *this;} /** *

The information about, and content of, each requested message.

*/ inline ListChannelMessagesResult& WithChannelMessages(Aws::Vector&& value) { SetChannelMessages(std::move(value)); return *this;} /** *

The information about, and content of, each requested message.

*/ inline ListChannelMessagesResult& AddChannelMessages(const ChannelMessageSummary& value) { m_channelMessages.push_back(value); return *this; } /** *

The information about, and content of, each requested message.

*/ inline ListChannelMessagesResult& AddChannelMessages(ChannelMessageSummary&& value) { m_channelMessages.push_back(std::move(value)); return *this; } /** *

The ID of the SubChannel in the response.

*/ inline const Aws::String& GetSubChannelId() const{ return m_subChannelId; } /** *

The ID of the SubChannel in the response.

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

The ID of the SubChannel in the response.

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

The ID of the SubChannel in the response.

*/ inline void SetSubChannelId(const char* value) { m_subChannelId.assign(value); } /** *

The ID of the SubChannel in the response.

*/ inline ListChannelMessagesResult& WithSubChannelId(const Aws::String& value) { SetSubChannelId(value); return *this;} /** *

The ID of the SubChannel in the response.

*/ inline ListChannelMessagesResult& WithSubChannelId(Aws::String&& value) { SetSubChannelId(std::move(value)); return *this;} /** *

The ID of the SubChannel in the response.

*/ inline ListChannelMessagesResult& WithSubChannelId(const char* value) { SetSubChannelId(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 ListChannelMessagesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ListChannelMessagesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ListChannelMessagesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_channelArn; Aws::String m_nextToken; Aws::Vector m_channelMessages; Aws::String m_subChannelId; Aws::String m_requestId; }; } // namespace Model } // namespace ChimeSDKMessaging } // namespace Aws