AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
ChannelsResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/pinpoint/Pinpoint_EXPORTS.h>
10#include <aws/pinpoint/model/ChannelResponse.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Pinpoint {
22namespace Model {
23
32 public:
33 AWS_PINPOINT_API ChannelsResponse() = default;
34 AWS_PINPOINT_API ChannelsResponse(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::Map<Aws::String, ChannelResponse>& GetChannels() const { return m_channels; }
44 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
45 template <typename ChannelsT = Aws::Map<Aws::String, ChannelResponse>>
46 void SetChannels(ChannelsT&& value) {
47 m_channelsHasBeenSet = true;
48 m_channels = std::forward<ChannelsT>(value);
49 }
50 template <typename ChannelsT = Aws::Map<Aws::String, ChannelResponse>>
51 ChannelsResponse& WithChannels(ChannelsT&& value) {
52 SetChannels(std::forward<ChannelsT>(value));
53 return *this;
54 }
55 template <typename ChannelsKeyT = Aws::String, typename ChannelsValueT = ChannelResponse>
56 ChannelsResponse& AddChannels(ChannelsKeyT&& key, ChannelsValueT&& value) {
57 m_channelsHasBeenSet = true;
58 m_channels.emplace(std::forward<ChannelsKeyT>(key), std::forward<ChannelsValueT>(value));
59 return *this;
60 }
62 private:
64 bool m_channelsHasBeenSet = false;
65};
66
67} // namespace Model
68} // namespace Pinpoint
69} // namespace Aws
AWS_PINPOINT_API ChannelsResponse()=default
ChannelsResponse & WithChannels(ChannelsT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
ChannelsResponse & AddChannels(ChannelsKeyT &&key, ChannelsValueT &&value)
const Aws::Map< Aws::String, ChannelResponse > & GetChannels() const
AWS_PINPOINT_API ChannelsResponse(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API ChannelsResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue