AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
PutNotificationConfigurationRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScalingRequest.h>
8#include <aws/autoscaling/AutoScaling_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AutoScaling {
16namespace Model {
17
21 public:
22 AWS_AUTOSCALING_API PutNotificationConfigurationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "PutNotificationConfiguration"; }
29
30 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
41 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
42 template <typename AutoScalingGroupNameT = Aws::String>
43 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) {
44 m_autoScalingGroupNameHasBeenSet = true;
45 m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value);
46 }
47 template <typename AutoScalingGroupNameT = Aws::String>
49 SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetTopicARN() const { return m_topicARN; }
59 inline bool TopicARNHasBeenSet() const { return m_topicARNHasBeenSet; }
60 template <typename TopicARNT = Aws::String>
61 void SetTopicARN(TopicARNT&& value) {
62 m_topicARNHasBeenSet = true;
63 m_topicARN = std::forward<TopicARNT>(value);
64 }
65 template <typename TopicARNT = Aws::String>
67 SetTopicARN(std::forward<TopicARNT>(value));
68 return *this;
69 }
71
73
79 inline const Aws::Vector<Aws::String>& GetNotificationTypes() const { return m_notificationTypes; }
80 inline bool NotificationTypesHasBeenSet() const { return m_notificationTypesHasBeenSet; }
81 template <typename NotificationTypesT = Aws::Vector<Aws::String>>
82 void SetNotificationTypes(NotificationTypesT&& value) {
83 m_notificationTypesHasBeenSet = true;
84 m_notificationTypes = std::forward<NotificationTypesT>(value);
85 }
86 template <typename NotificationTypesT = Aws::Vector<Aws::String>>
88 SetNotificationTypes(std::forward<NotificationTypesT>(value));
89 return *this;
90 }
91 template <typename NotificationTypesT = Aws::String>
93 m_notificationTypesHasBeenSet = true;
94 m_notificationTypes.emplace_back(std::forward<NotificationTypesT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_autoScalingGroupName;
100 bool m_autoScalingGroupNameHasBeenSet = false;
101
102 Aws::String m_topicARN;
103 bool m_topicARNHasBeenSet = false;
104
105 Aws::Vector<Aws::String> m_notificationTypes;
106 bool m_notificationTypesHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace AutoScaling
111} // namespace Aws
PutNotificationConfigurationRequest & AddNotificationTypes(NotificationTypesT &&value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_AUTOSCALING_API PutNotificationConfigurationRequest()=default
PutNotificationConfigurationRequest & WithTopicARN(TopicARNT &&value)
PutNotificationConfigurationRequest & WithNotificationTypes(NotificationTypesT &&value)
PutNotificationConfigurationRequest & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector