AWS SDK for C++  1.8.71
AWS SDK for C++
AddNotificationChannelsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace CodeGuruProfiler
17 {
18 namespace Model
19 {
20 
28  {
29  public:
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::String SerializePayload() const override;
39 
40 
44  inline const Aws::Vector<Channel>& GetChannels() const{ return m_channels; }
45 
49  inline bool ChannelsHasBeenSet() const { return m_channelsHasBeenSet; }
50 
54  inline void SetChannels(const Aws::Vector<Channel>& value) { m_channelsHasBeenSet = true; m_channels = value; }
55 
59  inline void SetChannels(Aws::Vector<Channel>&& value) { m_channelsHasBeenSet = true; m_channels = std::move(value); }
60 
64  inline AddNotificationChannelsRequest& WithChannels(const Aws::Vector<Channel>& value) { SetChannels(value); return *this;}
65 
69  inline AddNotificationChannelsRequest& WithChannels(Aws::Vector<Channel>&& value) { SetChannels(std::move(value)); return *this;}
70 
74  inline AddNotificationChannelsRequest& AddChannels(const Channel& value) { m_channelsHasBeenSet = true; m_channels.push_back(value); return *this; }
75 
79  inline AddNotificationChannelsRequest& AddChannels(Channel&& value) { m_channelsHasBeenSet = true; m_channels.push_back(std::move(value)); return *this; }
80 
81 
85  inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; }
86 
90  inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
91 
95  inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; }
96 
100  inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); }
101 
105  inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); }
106 
110  inline AddNotificationChannelsRequest& WithProfilingGroupName(const Aws::String& value) { SetProfilingGroupName(value); return *this;}
111 
115  inline AddNotificationChannelsRequest& WithProfilingGroupName(Aws::String&& value) { SetProfilingGroupName(std::move(value)); return *this;}
116 
120  inline AddNotificationChannelsRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;}
121 
122  private:
123 
124  Aws::Vector<Channel> m_channels;
125  bool m_channelsHasBeenSet;
126 
127  Aws::String m_profilingGroupName;
128  bool m_profilingGroupNameHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace CodeGuruProfiler
133 } // namespace Aws
AddNotificationChannelsRequest & WithProfilingGroupName(Aws::String &&value)
AddNotificationChannelsRequest & WithChannels(Aws::Vector< Channel > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AddNotificationChannelsRequest & AddChannels(const Channel &value)
AddNotificationChannelsRequest & WithProfilingGroupName(const Aws::String &value)
AddNotificationChannelsRequest & WithProfilingGroupName(const char *value)
#define AWS_CODEGURUPROFILER_API
AddNotificationChannelsRequest & AddChannels(Channel &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AddNotificationChannelsRequest & WithChannels(const Aws::Vector< Channel > &value)