AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutNotificationConfigurationRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/AutoScalingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace AutoScaling
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_AUTOSCALING_API PutNotificationConfigurationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutNotificationConfiguration"; }
32
33 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
45 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
46 template<typename AutoScalingGroupNameT = Aws::String>
47 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value); }
48 template<typename AutoScalingGroupNameT = Aws::String>
49 PutNotificationConfigurationRequest& WithAutoScalingGroupName(AutoScalingGroupNameT&& value) { SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetTopicARN() const { return m_topicARN; }
57 inline bool TopicARNHasBeenSet() const { return m_topicARNHasBeenSet; }
58 template<typename TopicARNT = Aws::String>
59 void SetTopicARN(TopicARNT&& value) { m_topicARNHasBeenSet = true; m_topicARN = std::forward<TopicARNT>(value); }
60 template<typename TopicARNT = Aws::String>
61 PutNotificationConfigurationRequest& WithTopicARN(TopicARNT&& value) { SetTopicARN(std::forward<TopicARNT>(value)); return *this;}
63
65
71 inline const Aws::Vector<Aws::String>& GetNotificationTypes() const { return m_notificationTypes; }
72 inline bool NotificationTypesHasBeenSet() const { return m_notificationTypesHasBeenSet; }
73 template<typename NotificationTypesT = Aws::Vector<Aws::String>>
74 void SetNotificationTypes(NotificationTypesT&& value) { m_notificationTypesHasBeenSet = true; m_notificationTypes = std::forward<NotificationTypesT>(value); }
75 template<typename NotificationTypesT = Aws::Vector<Aws::String>>
76 PutNotificationConfigurationRequest& WithNotificationTypes(NotificationTypesT&& value) { SetNotificationTypes(std::forward<NotificationTypesT>(value)); return *this;}
77 template<typename NotificationTypesT = Aws::String>
78 PutNotificationConfigurationRequest& AddNotificationTypes(NotificationTypesT&& value) { m_notificationTypesHasBeenSet = true; m_notificationTypes.emplace_back(std::forward<NotificationTypesT>(value)); return *this; }
80 private:
81
82 Aws::String m_autoScalingGroupName;
83 bool m_autoScalingGroupNameHasBeenSet = false;
84
85 Aws::String m_topicARN;
86 bool m_topicARNHasBeenSet = false;
87
88 Aws::Vector<Aws::String> m_notificationTypes;
89 bool m_notificationTypesHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace AutoScaling
94} // 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