AWS SDK for C++  1.9.72
AWS SDK for C++
AddNotificationChannelRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace DevOpsGuru
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "AddNotificationChannel"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
40  inline const NotificationChannelConfig& GetConfig() const{ return m_config; }
41 
47  inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
48 
54  inline void SetConfig(const NotificationChannelConfig& value) { m_configHasBeenSet = true; m_config = value; }
55 
61  inline void SetConfig(NotificationChannelConfig&& value) { m_configHasBeenSet = true; m_config = std::move(value); }
62 
68  inline AddNotificationChannelRequest& WithConfig(const NotificationChannelConfig& value) { SetConfig(value); return *this;}
69 
75  inline AddNotificationChannelRequest& WithConfig(NotificationChannelConfig&& value) { SetConfig(std::move(value)); return *this;}
76 
77  private:
78 
80  bool m_configHasBeenSet;
81  };
82 
83 } // namespace Model
84 } // namespace DevOpsGuru
85 } // namespace Aws
Aws::DevOpsGuru::Model::NotificationChannelConfig
Definition: NotificationChannelConfig.h:34
Aws::DevOpsGuru::Model::AddNotificationChannelRequest::WithConfig
AddNotificationChannelRequest & WithConfig(NotificationChannelConfig &&value)
Definition: AddNotificationChannelRequest.h:75
Aws::DevOpsGuru::Model::AddNotificationChannelRequest::SetConfig
void SetConfig(NotificationChannelConfig &&value)
Definition: AddNotificationChannelRequest.h:61
Aws::DevOpsGuru::Model::AddNotificationChannelRequest::AddNotificationChannelRequest
AddNotificationChannelRequest()
NotificationChannelConfig.h
Aws::DevOpsGuru::Model::AddNotificationChannelRequest::SetConfig
void SetConfig(const NotificationChannelConfig &value)
Definition: AddNotificationChannelRequest.h:54
Aws::DevOpsGuru::Model::AddNotificationChannelRequest::WithConfig
AddNotificationChannelRequest & WithConfig(const NotificationChannelConfig &value)
Definition: AddNotificationChannelRequest.h:68
DevOpsGuruRequest.h
Aws::DevOpsGuru::DevOpsGuruRequest
Definition: DevOpsGuruRequest.h:17
Aws::DevOpsGuru::Model::AddNotificationChannelRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AddNotificationChannelRequest.h:30
Aws::DevOpsGuru::Model::AddNotificationChannelRequest::GetConfig
const NotificationChannelConfig & GetConfig() const
Definition: AddNotificationChannelRequest.h:40
Aws::DevOpsGuru::Model::AddNotificationChannelRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::DevOpsGuru::Model::AddNotificationChannelRequest::ConfigHasBeenSet
bool ConfigHasBeenSet() const
Definition: AddNotificationChannelRequest.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_DEVOPSGURU_API
#define AWS_DEVOPSGURU_API
Definition: DevOpsGuru_EXPORTS.h:28
DevOpsGuru_EXPORTS.h
Aws::DevOpsGuru::Model::AddNotificationChannelRequest
Definition: AddNotificationChannelRequest.h:22