AWS SDK for C++  0.14.3
AWS SDK for C++
PutNotificationConfigurationRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace AutoScaling
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
41 
45  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
46 
50  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
51 
55  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
56 
60  inline PutNotificationConfigurationRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
61 
65  inline PutNotificationConfigurationRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(value); return *this;}
66 
70  inline PutNotificationConfigurationRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
71 
76  inline const Aws::String& GetTopicARN() const{ return m_topicARN; }
77 
82  inline void SetTopicARN(const Aws::String& value) { m_topicARNHasBeenSet = true; m_topicARN = value; }
83 
88  inline void SetTopicARN(Aws::String&& value) { m_topicARNHasBeenSet = true; m_topicARN = value; }
89 
94  inline void SetTopicARN(const char* value) { m_topicARNHasBeenSet = true; m_topicARN.assign(value); }
95 
100  inline PutNotificationConfigurationRequest& WithTopicARN(const Aws::String& value) { SetTopicARN(value); return *this;}
101 
106  inline PutNotificationConfigurationRequest& WithTopicARN(Aws::String&& value) { SetTopicARN(value); return *this;}
107 
112  inline PutNotificationConfigurationRequest& WithTopicARN(const char* value) { SetTopicARN(value); return *this;}
113 
119  inline const Aws::Vector<Aws::String>& GetNotificationTypes() const{ return m_notificationTypes; }
120 
126  inline void SetNotificationTypes(const Aws::Vector<Aws::String>& value) { m_notificationTypesHasBeenSet = true; m_notificationTypes = value; }
127 
133  inline void SetNotificationTypes(Aws::Vector<Aws::String>&& value) { m_notificationTypesHasBeenSet = true; m_notificationTypes = value; }
134 
140  inline PutNotificationConfigurationRequest& WithNotificationTypes(const Aws::Vector<Aws::String>& value) { SetNotificationTypes(value); return *this;}
141 
147  inline PutNotificationConfigurationRequest& WithNotificationTypes(Aws::Vector<Aws::String>&& value) { SetNotificationTypes(value); return *this;}
148 
154  inline PutNotificationConfigurationRequest& AddNotificationTypes(const Aws::String& value) { m_notificationTypesHasBeenSet = true; m_notificationTypes.push_back(value); return *this; }
155 
161  inline PutNotificationConfigurationRequest& AddNotificationTypes(Aws::String&& value) { m_notificationTypesHasBeenSet = true; m_notificationTypes.push_back(value); return *this; }
162 
168  inline PutNotificationConfigurationRequest& AddNotificationTypes(const char* value) { m_notificationTypesHasBeenSet = true; m_notificationTypes.push_back(value); return *this; }
169 
170  private:
171  Aws::String m_autoScalingGroupName;
172  bool m_autoScalingGroupNameHasBeenSet;
173  Aws::String m_topicARN;
174  bool m_topicARNHasBeenSet;
175  Aws::Vector<Aws::String> m_notificationTypes;
176  bool m_notificationTypesHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace AutoScaling
181 } // namespace Aws
PutNotificationConfigurationRequest & WithAutoScalingGroupName(Aws::String &&value)
PutNotificationConfigurationRequest & AddNotificationTypes(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
PutNotificationConfigurationRequest & WithAutoScalingGroupName(const Aws::String &value)
PutNotificationConfigurationRequest & WithTopicARN(Aws::String &&value)
PutNotificationConfigurationRequest & AddNotificationTypes(const Aws::String &value)
PutNotificationConfigurationRequest & AddNotificationTypes(const char *value)
PutNotificationConfigurationRequest & WithNotificationTypes(const Aws::Vector< Aws::String > &value)
PutNotificationConfigurationRequest & WithNotificationTypes(Aws::Vector< Aws::String > &&value)
PutNotificationConfigurationRequest & WithTopicARN(const char *value)
PutNotificationConfigurationRequest & WithAutoScalingGroupName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_AUTOSCALING_API
PutNotificationConfigurationRequest & WithTopicARN(const Aws::String &value)
JSON (JavaScript Object Notation).