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

Provides information about the general settings and status of all channels * for an application, including channels that aren't enabled for the * application.

See Also:

AWS * API Reference

*/ class ChannelsResponse { public: AWS_PINPOINT_API ChannelsResponse(); AWS_PINPOINT_API ChannelsResponse(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API ChannelsResponse& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A map that contains a multipart response for each channel. For each item in * this object, the ChannelType is the key and the Channel is the value.

*/ inline const Aws::Map& GetChannels() const{ return m_channels; } /** *

A map that contains a multipart response for each channel. For each item in * this object, the ChannelType is the key and the Channel is the value.

*/ inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; } /** *

A map that contains a multipart response for each channel. For each item in * this object, the ChannelType is the key and the Channel is the value.

*/ inline void SetChannels(const Aws::Map& value) { m_channelsHasBeenSet = true; m_channels = value; } /** *

A map that contains a multipart response for each channel. For each item in * this object, the ChannelType is the key and the Channel is the value.

*/ inline void SetChannels(Aws::Map&& value) { m_channelsHasBeenSet = true; m_channels = std::move(value); } /** *

A map that contains a multipart response for each channel. For each item in * this object, the ChannelType is the key and the Channel is the value.

*/ inline ChannelsResponse& WithChannels(const Aws::Map& value) { SetChannels(value); return *this;} /** *

A map that contains a multipart response for each channel. For each item in * this object, the ChannelType is the key and the Channel is the value.

*/ inline ChannelsResponse& WithChannels(Aws::Map&& value) { SetChannels(std::move(value)); return *this;} /** *

A map that contains a multipart response for each channel. For each item in * this object, the ChannelType is the key and the Channel is the value.

*/ inline ChannelsResponse& AddChannels(const Aws::String& key, const ChannelResponse& value) { m_channelsHasBeenSet = true; m_channels.emplace(key, value); return *this; } /** *

A map that contains a multipart response for each channel. For each item in * this object, the ChannelType is the key and the Channel is the value.

*/ inline ChannelsResponse& AddChannels(Aws::String&& key, const ChannelResponse& value) { m_channelsHasBeenSet = true; m_channels.emplace(std::move(key), value); return *this; } /** *

A map that contains a multipart response for each channel. For each item in * this object, the ChannelType is the key and the Channel is the value.

*/ inline ChannelsResponse& AddChannels(const Aws::String& key, ChannelResponse&& value) { m_channelsHasBeenSet = true; m_channels.emplace(key, std::move(value)); return *this; } /** *

A map that contains a multipart response for each channel. For each item in * this object, the ChannelType is the key and the Channel is the value.

*/ inline ChannelsResponse& AddChannels(Aws::String&& key, ChannelResponse&& value) { m_channelsHasBeenSet = true; m_channels.emplace(std::move(key), std::move(value)); return *this; } /** *

A map that contains a multipart response for each channel. For each item in * this object, the ChannelType is the key and the Channel is the value.

*/ inline ChannelsResponse& AddChannels(const char* key, ChannelResponse&& value) { m_channelsHasBeenSet = true; m_channels.emplace(key, std::move(value)); return *this; } /** *

A map that contains a multipart response for each channel. For each item in * this object, the ChannelType is the key and the Channel is the value.

*/ inline ChannelsResponse& AddChannels(const char* key, const ChannelResponse& value) { m_channelsHasBeenSet = true; m_channels.emplace(key, value); return *this; } private: Aws::Map m_channels; bool m_channelsHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws