AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
NotificationConfiguration.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/codeguruprofiler/model/Channel.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeGuruProfiler {
21namespace Model {
22
31 public:
32 AWS_CODEGURUPROFILER_API NotificationConfiguration() = default;
33 AWS_CODEGURUPROFILER_API NotificationConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEGURUPROFILER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<Channel>& GetChannels() const { return m_channels; }
43 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
44 template <typename ChannelsT = Aws::Vector<Channel>>
45 void SetChannels(ChannelsT&& value) {
46 m_channelsHasBeenSet = true;
47 m_channels = std::forward<ChannelsT>(value);
48 }
49 template <typename ChannelsT = Aws::Vector<Channel>>
51 SetChannels(std::forward<ChannelsT>(value));
52 return *this;
53 }
54 template <typename ChannelsT = Channel>
56 m_channelsHasBeenSet = true;
57 m_channels.emplace_back(std::forward<ChannelsT>(value));
58 return *this;
59 }
61 private:
62 Aws::Vector<Channel> m_channels;
63 bool m_channelsHasBeenSet = false;
64};
65
66} // namespace Model
67} // namespace CodeGuruProfiler
68} // 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