AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
AddNotificationChannelsRequest.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfilerRequest.h>
8#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
9#include <aws/codeguruprofiler/model/Channel.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CodeGuruProfiler {
17namespace Model {
18
26 public:
27 AWS_CODEGURUPROFILER_API AddNotificationChannelsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "AddNotificationChannels"; }
34
35 AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::Vector<Channel>& GetChannels() const { return m_channels; }
42 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
43 template <typename ChannelsT = Aws::Vector<Channel>>
44 void SetChannels(ChannelsT&& value) {
45 m_channelsHasBeenSet = true;
46 m_channels = std::forward<ChannelsT>(value);
47 }
48 template <typename ChannelsT = Aws::Vector<Channel>>
50 SetChannels(std::forward<ChannelsT>(value));
51 return *this;
52 }
53 template <typename ChannelsT = Channel>
55 m_channelsHasBeenSet = true;
56 m_channels.emplace_back(std::forward<ChannelsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetProfilingGroupName() const { return m_profilingGroupName; }
66 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
67 template <typename ProfilingGroupNameT = Aws::String>
68 void SetProfilingGroupName(ProfilingGroupNameT&& value) {
69 m_profilingGroupNameHasBeenSet = true;
70 m_profilingGroupName = std::forward<ProfilingGroupNameT>(value);
71 }
72 template <typename ProfilingGroupNameT = Aws::String>
74 SetProfilingGroupName(std::forward<ProfilingGroupNameT>(value));
75 return *this;
76 }
78 private:
79 Aws::Vector<Channel> m_channels;
80
81 Aws::String m_profilingGroupName;
82 bool m_channelsHasBeenSet = false;
83 bool m_profilingGroupNameHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace CodeGuruProfiler
88} // namespace Aws
AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override
AddNotificationChannelsRequest & AddChannels(ChannelsT &&value)
AddNotificationChannelsRequest & WithChannels(ChannelsT &&value)
AddNotificationChannelsRequest & WithProfilingGroupName(ProfilingGroupNameT &&value)
AWS_CODEGURUPROFILER_API AddNotificationChannelsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector