AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
NotificationConfiguration.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/codeguruprofiler/model/Channel.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeGuruProfiler
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_CODEGURUPROFILER_API NotificationConfiguration() = default;
38 AWS_CODEGURUPROFILER_API NotificationConfiguration(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Vector<Channel>& GetChannels() const { return m_channels; }
49 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
50 template<typename ChannelsT = Aws::Vector<Channel>>
51 void SetChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels = std::forward<ChannelsT>(value); }
52 template<typename ChannelsT = Aws::Vector<Channel>>
53 NotificationConfiguration& WithChannels(ChannelsT&& value) { SetChannels(std::forward<ChannelsT>(value)); return *this;}
54 template<typename ChannelsT = Channel>
55 NotificationConfiguration& AddChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels.emplace_back(std::forward<ChannelsT>(value)); return *this; }
57 private:
58
59 Aws::Vector<Channel> m_channels;
60 bool m_channelsHasBeenSet = false;
61 };
62
63} // namespace Model
64} // namespace CodeGuruProfiler
65} // namespace Aws
NotificationConfiguration & WithChannels(ChannelsT &&value)
AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEGURUPROFILER_API NotificationConfiguration()=default
AWS_CODEGURUPROFILER_API NotificationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
NotificationConfiguration & AddChannels(ChannelsT &&value)
AWS_CODEGURUPROFILER_API NotificationConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue