AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
47 inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
48 inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
53
55
58 inline const Aws::String& GetTopicARN() const{ return m_topicARN; }
59 inline bool TopicARNHasBeenSet() const { return m_topicARNHasBeenSet; }
60 inline void SetTopicARN(const Aws::String& value) { m_topicARNHasBeenSet = true; m_topicARN = value; }
61 inline void SetTopicARN(Aws::String&& value) { m_topicARNHasBeenSet = true; m_topicARN = std::move(value); }
62 inline void SetTopicARN(const char* value) { m_topicARNHasBeenSet = true; m_topicARN.assign(value); }
63 inline PutNotificationConfigurationRequest& WithTopicARN(const Aws::String& value) { SetTopicARN(value); return *this;}
64 inline PutNotificationConfigurationRequest& WithTopicARN(Aws::String&& value) { SetTopicARN(std::move(value)); return *this;}
65 inline PutNotificationConfigurationRequest& WithTopicARN(const char* value) { SetTopicARN(value); return *this;}
67
69
75 inline const Aws::Vector<Aws::String>& GetNotificationTypes() const{ return m_notificationTypes; }
76 inline bool NotificationTypesHasBeenSet() const { return m_notificationTypesHasBeenSet; }
77 inline void SetNotificationTypes(const Aws::Vector<Aws::String>& value) { m_notificationTypesHasBeenSet = true; m_notificationTypes = value; }
78 inline void SetNotificationTypes(Aws::Vector<Aws::String>&& value) { m_notificationTypesHasBeenSet = true; m_notificationTypes = std::move(value); }
81 inline PutNotificationConfigurationRequest& AddNotificationTypes(const Aws::String& value) { m_notificationTypesHasBeenSet = true; m_notificationTypes.push_back(value); return *this; }
82 inline PutNotificationConfigurationRequest& AddNotificationTypes(Aws::String&& value) { m_notificationTypesHasBeenSet = true; m_notificationTypes.push_back(std::move(value)); return *this; }
83 inline PutNotificationConfigurationRequest& AddNotificationTypes(const char* value) { m_notificationTypesHasBeenSet = true; m_notificationTypes.push_back(value); return *this; }
85 private:
86
87 Aws::String m_autoScalingGroupName;
88 bool m_autoScalingGroupNameHasBeenSet = false;
89
90 Aws::String m_topicARN;
91 bool m_topicARNHasBeenSet = false;
92
93 Aws::Vector<Aws::String> m_notificationTypes;
94 bool m_notificationTypesHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace AutoScaling
99} // namespace Aws
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
PutNotificationConfigurationRequest & WithTopicARN(Aws::String &&value)
PutNotificationConfigurationRequest & AddNotificationTypes(const Aws::String &value)
PutNotificationConfigurationRequest & WithAutoScalingGroupName(const Aws::String &value)
PutNotificationConfigurationRequest & WithAutoScalingGroupName(const char *value)
PutNotificationConfigurationRequest & WithTopicARN(const Aws::String &value)
PutNotificationConfigurationRequest & WithAutoScalingGroupName(Aws::String &&value)
PutNotificationConfigurationRequest & WithNotificationTypes(Aws::Vector< Aws::String > &&value)
PutNotificationConfigurationRequest & AddNotificationTypes(const char *value)
PutNotificationConfigurationRequest & WithTopicARN(const char *value)
PutNotificationConfigurationRequest & AddNotificationTypes(Aws::String &&value)
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
PutNotificationConfigurationRequest & WithNotificationTypes(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector