AWS SDK for C++  1.9.20
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
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::WithChannels
AddNotificationChannelsRequest & WithChannels(const Aws::Vector< Channel > &value)
Definition: AddNotificationChannelsRequest.h:64
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::SetChannels
void SetChannels(const Aws::Vector< Channel > &value)
Definition: AddNotificationChannelsRequest.h:54
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddNotificationChannelsRequest.h:36
AWS_CODEGURUPROFILER_API
#define AWS_CODEGURUPROFILER_API
Definition: CodeGuruProfiler_EXPORTS.h:28
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::SetProfilingGroupName
void SetProfilingGroupName(const char *value)
Definition: AddNotificationChannelsRequest.h:105
Aws::CodeGuruProfiler::Model::Channel
Definition: Channel.h:36
Channel.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::SerializePayload
Aws::String SerializePayload() const override
AWSVector.h
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::SetProfilingGroupName
void SetProfilingGroupName(Aws::String &&value)
Definition: AddNotificationChannelsRequest.h:100
CodeGuruProfiler_EXPORTS.h
CodeGuruProfilerRequest.h
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::GetProfilingGroupName
const Aws::String & GetProfilingGroupName() const
Definition: AddNotificationChannelsRequest.h:85
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::WithProfilingGroupName
AddNotificationChannelsRequest & WithProfilingGroupName(Aws::String &&value)
Definition: AddNotificationChannelsRequest.h:115
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::AddChannels
AddNotificationChannelsRequest & AddChannels(Channel &&value)
Definition: AddNotificationChannelsRequest.h:79
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::ChannelsHasBeenSet
bool ChannelsHasBeenSet() const
Definition: AddNotificationChannelsRequest.h:49
AWSString.h
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::GetChannels
const Aws::Vector< Channel > & GetChannels() const
Definition: AddNotificationChannelsRequest.h:44
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::WithChannels
AddNotificationChannelsRequest & WithChannels(Aws::Vector< Channel > &&value)
Definition: AddNotificationChannelsRequest.h:69
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::SetProfilingGroupName
void SetProfilingGroupName(const Aws::String &value)
Definition: AddNotificationChannelsRequest.h:95
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::ProfilingGroupNameHasBeenSet
bool ProfilingGroupNameHasBeenSet() const
Definition: AddNotificationChannelsRequest.h:90
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest
Definition: AddNotificationChannelsRequest.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::WithProfilingGroupName
AddNotificationChannelsRequest & WithProfilingGroupName(const char *value)
Definition: AddNotificationChannelsRequest.h:120
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::AddChannels
AddNotificationChannelsRequest & AddChannels(const Channel &value)
Definition: AddNotificationChannelsRequest.h:74
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::AddNotificationChannelsRequest
AddNotificationChannelsRequest()
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::WithProfilingGroupName
AddNotificationChannelsRequest & WithProfilingGroupName(const Aws::String &value)
Definition: AddNotificationChannelsRequest.h:110
Aws::CodeGuruProfiler::CodeGuruProfilerRequest
Definition: CodeGuruProfilerRequest.h:18
Aws::CodeGuruProfiler::Model::AddNotificationChannelsRequest::SetChannels
void SetChannels(Aws::Vector< Channel > &&value)
Definition: AddNotificationChannelsRequest.h:59