AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AddNotificationChannelsRequest.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/codeguruprofiler/CodeGuruProfilerRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/codeguruprofiler/model/Channel.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CodeGuruProfiler
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_CODEGURUPROFILER_API AddNotificationChannelsRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "AddNotificationChannels"; }
37
38 AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::Vector<Channel>& GetChannels() const { return m_channels; }
46 inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
47 template<typename ChannelsT = Aws::Vector<Channel>>
48 void SetChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels = std::forward<ChannelsT>(value); }
49 template<typename ChannelsT = Aws::Vector<Channel>>
50 AddNotificationChannelsRequest& WithChannels(ChannelsT&& value) { SetChannels(std::forward<ChannelsT>(value)); return *this;}
51 template<typename ChannelsT = Channel>
52 AddNotificationChannelsRequest& AddChannels(ChannelsT&& value) { m_channelsHasBeenSet = true; m_channels.emplace_back(std::forward<ChannelsT>(value)); return *this; }
54
56
59 inline const Aws::String& GetProfilingGroupName() const { return m_profilingGroupName; }
60 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
61 template<typename ProfilingGroupNameT = Aws::String>
62 void SetProfilingGroupName(ProfilingGroupNameT&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::forward<ProfilingGroupNameT>(value); }
63 template<typename ProfilingGroupNameT = Aws::String>
64 AddNotificationChannelsRequest& WithProfilingGroupName(ProfilingGroupNameT&& value) { SetProfilingGroupName(std::forward<ProfilingGroupNameT>(value)); return *this;}
66 private:
67
68 Aws::Vector<Channel> m_channels;
69 bool m_channelsHasBeenSet = false;
70
71 Aws::String m_profilingGroupName;
72 bool m_profilingGroupNameHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace CodeGuruProfiler
77} // 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