AWS SDK for C++  1.9.109
AWS SDK for C++
PutNotificationConfigurationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace AutoScaling
16 {
17 namespace 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::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
44 
48  inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
49 
53  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
54 
58  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
59 
63  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
64 
68  inline PutNotificationConfigurationRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
69 
73  inline PutNotificationConfigurationRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
74 
78  inline PutNotificationConfigurationRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
79 
80 
85  inline const Aws::String& GetTopicARN() const{ return m_topicARN; }
86 
91  inline bool TopicARNHasBeenSet() const { return m_topicARNHasBeenSet; }
92 
97  inline void SetTopicARN(const Aws::String& value) { m_topicARNHasBeenSet = true; m_topicARN = value; }
98 
103  inline void SetTopicARN(Aws::String&& value) { m_topicARNHasBeenSet = true; m_topicARN = std::move(value); }
104 
109  inline void SetTopicARN(const char* value) { m_topicARNHasBeenSet = true; m_topicARN.assign(value); }
110 
115  inline PutNotificationConfigurationRequest& WithTopicARN(const Aws::String& value) { SetTopicARN(value); return *this;}
116 
121  inline PutNotificationConfigurationRequest& WithTopicARN(Aws::String&& value) { SetTopicARN(std::move(value)); return *this;}
122 
127  inline PutNotificationConfigurationRequest& WithTopicARN(const char* value) { SetTopicARN(value); return *this;}
128 
129 
135  inline const Aws::Vector<Aws::String>& GetNotificationTypes() const{ return m_notificationTypes; }
136 
142  inline bool NotificationTypesHasBeenSet() const { return m_notificationTypesHasBeenSet; }
143 
149  inline void SetNotificationTypes(const Aws::Vector<Aws::String>& value) { m_notificationTypesHasBeenSet = true; m_notificationTypes = value; }
150 
156  inline void SetNotificationTypes(Aws::Vector<Aws::String>&& value) { m_notificationTypesHasBeenSet = true; m_notificationTypes = std::move(value); }
157 
163  inline PutNotificationConfigurationRequest& WithNotificationTypes(const Aws::Vector<Aws::String>& value) { SetNotificationTypes(value); return *this;}
164 
170  inline PutNotificationConfigurationRequest& WithNotificationTypes(Aws::Vector<Aws::String>&& value) { SetNotificationTypes(std::move(value)); return *this;}
171 
177  inline PutNotificationConfigurationRequest& AddNotificationTypes(const Aws::String& value) { m_notificationTypesHasBeenSet = true; m_notificationTypes.push_back(value); return *this; }
178 
184  inline PutNotificationConfigurationRequest& AddNotificationTypes(Aws::String&& value) { m_notificationTypesHasBeenSet = true; m_notificationTypes.push_back(std::move(value)); return *this; }
185 
191  inline PutNotificationConfigurationRequest& AddNotificationTypes(const char* value) { m_notificationTypesHasBeenSet = true; m_notificationTypes.push_back(value); return *this; }
192 
193  private:
194 
195  Aws::String m_autoScalingGroupName;
196  bool m_autoScalingGroupNameHasBeenSet;
197 
198  Aws::String m_topicARN;
199  bool m_topicARNHasBeenSet;
200 
201  Aws::Vector<Aws::String> m_notificationTypes;
202  bool m_notificationTypesHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace AutoScaling
207 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::TopicARNHasBeenSet
bool TopicARNHasBeenSet() const
Definition: PutNotificationConfigurationRequest.h:91
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::PutNotificationConfigurationRequest
PutNotificationConfigurationRequest()
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::SetAutoScalingGroupName
void SetAutoScalingGroupName(const Aws::String &value)
Definition: PutNotificationConfigurationRequest.h:53
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::WithTopicARN
PutNotificationConfigurationRequest & WithTopicARN(const Aws::String &value)
Definition: PutNotificationConfigurationRequest.h:115
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::NotificationTypesHasBeenSet
bool NotificationTypesHasBeenSet() const
Definition: PutNotificationConfigurationRequest.h:142
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::GetAutoScalingGroupName
const Aws::String & GetAutoScalingGroupName() const
Definition: PutNotificationConfigurationRequest.h:43
AWSVector.h
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::WithAutoScalingGroupName
PutNotificationConfigurationRequest & WithAutoScalingGroupName(Aws::String &&value)
Definition: PutNotificationConfigurationRequest.h:73
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::SetTopicARN
void SetTopicARN(const char *value)
Definition: PutNotificationConfigurationRequest.h:109
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::AddNotificationTypes
PutNotificationConfigurationRequest & AddNotificationTypes(Aws::String &&value)
Definition: PutNotificationConfigurationRequest.h:184
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::SetAutoScalingGroupName
void SetAutoScalingGroupName(const char *value)
Definition: PutNotificationConfigurationRequest.h:63
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::SetTopicARN
void SetTopicARN(const Aws::String &value)
Definition: PutNotificationConfigurationRequest.h:97
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::SetAutoScalingGroupName
void SetAutoScalingGroupName(Aws::String &&value)
Definition: PutNotificationConfigurationRequest.h:58
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::WithTopicARN
PutNotificationConfigurationRequest & WithTopicARN(Aws::String &&value)
Definition: PutNotificationConfigurationRequest.h:121
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::WithAutoScalingGroupName
PutNotificationConfigurationRequest & WithAutoScalingGroupName(const char *value)
Definition: PutNotificationConfigurationRequest.h:78
AutoScalingRequest.h
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
AWSString.h
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::GetNotificationTypes
const Aws::Vector< Aws::String > & GetNotificationTypes() const
Definition: PutNotificationConfigurationRequest.h:135
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::SetNotificationTypes
void SetNotificationTypes(const Aws::Vector< Aws::String > &value)
Definition: PutNotificationConfigurationRequest.h:149
Aws::AutoScaling::AutoScalingRequest
Definition: AutoScalingRequest.h:17
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::AddNotificationTypes
PutNotificationConfigurationRequest & AddNotificationTypes(const char *value)
Definition: PutNotificationConfigurationRequest.h:191
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::AddNotificationTypes
PutNotificationConfigurationRequest & AddNotificationTypes(const Aws::String &value)
Definition: PutNotificationConfigurationRequest.h:177
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::WithNotificationTypes
PutNotificationConfigurationRequest & WithNotificationTypes(const Aws::Vector< Aws::String > &value)
Definition: PutNotificationConfigurationRequest.h:163
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::WithAutoScalingGroupName
PutNotificationConfigurationRequest & WithAutoScalingGroupName(const Aws::String &value)
Definition: PutNotificationConfigurationRequest.h:68
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutNotificationConfigurationRequest.h:31
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::SetNotificationTypes
void SetNotificationTypes(Aws::Vector< Aws::String > &&value)
Definition: PutNotificationConfigurationRequest.h:156
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::SetTopicARN
void SetTopicARN(Aws::String &&value)
Definition: PutNotificationConfigurationRequest.h:103
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::WithNotificationTypes
PutNotificationConfigurationRequest & WithNotificationTypes(Aws::Vector< Aws::String > &&value)
Definition: PutNotificationConfigurationRequest.h:170
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::GetTopicARN
const Aws::String & GetTopicARN() const
Definition: PutNotificationConfigurationRequest.h:85
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::AutoScalingGroupNameHasBeenSet
bool AutoScalingGroupNameHasBeenSet() const
Definition: PutNotificationConfigurationRequest.h:48
Aws::AutoScaling::Model::PutNotificationConfigurationRequest::WithTopicARN
PutNotificationConfigurationRequest & WithTopicARN(const char *value)
Definition: PutNotificationConfigurationRequest.h:127
Aws::AutoScaling::Model::PutNotificationConfigurationRequest
Definition: PutNotificationConfigurationRequest.h:23