AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetChannels(const Aws::Vector<Channel>& value) { m_channelsHasBeenSet = true; m_channels = value; }
48 inline void SetChannels(Aws::Vector<Channel>&& value) { m_channelsHasBeenSet = true; m_channels = std::move(value); }
49 inline AddNotificationChannelsRequest& WithChannels(const Aws::Vector<Channel>& value) { SetChannels(value); return *this;}
50 inline AddNotificationChannelsRequest& WithChannels(Aws::Vector<Channel>&& value) { SetChannels(std::move(value)); return *this;}
51 inline AddNotificationChannelsRequest& AddChannels(const Channel& value) { m_channelsHasBeenSet = true; m_channels.push_back(value); return *this; }
52 inline AddNotificationChannelsRequest& AddChannels(Channel&& value) { m_channelsHasBeenSet = true; m_channels.push_back(std::move(value)); return *this; }
54
56
59 inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; }
60 inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
61 inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; }
62 inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); }
63 inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); }
66 inline AddNotificationChannelsRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;}
68 private:
69
70 Aws::Vector<Channel> m_channels;
71 bool m_channelsHasBeenSet = false;
72
73 Aws::String m_profilingGroupName;
74 bool m_profilingGroupNameHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace CodeGuruProfiler
79} // namespace Aws
AddNotificationChannelsRequest & WithProfilingGroupName(const char *value)
AddNotificationChannelsRequest & AddChannels(Channel &&value)
AddNotificationChannelsRequest & WithProfilingGroupName(Aws::String &&value)
AWS_CODEGURUPROFILER_API Aws::String SerializePayload() const override
AddNotificationChannelsRequest & WithChannels(const Aws::Vector< Channel > &value)
AddNotificationChannelsRequest & AddChannels(const Channel &value)
AddNotificationChannelsRequest & WithProfilingGroupName(const Aws::String &value)
AddNotificationChannelsRequest & WithChannels(Aws::Vector< Channel > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector