AWS SDK for C++  0.14.3
AWS SDK for C++
EnableMetricsCollectionRequest.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 EnableMetricsCollectionRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
61 
65  inline EnableMetricsCollectionRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(value); return *this;}
66 
70  inline EnableMetricsCollectionRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
71 
84  inline const Aws::Vector<Aws::String>& GetMetrics() const{ return m_metrics; }
85 
98  inline void SetMetrics(const Aws::Vector<Aws::String>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
99 
112  inline void SetMetrics(Aws::Vector<Aws::String>&& value) { m_metricsHasBeenSet = true; m_metrics = value; }
113 
126  inline EnableMetricsCollectionRequest& WithMetrics(const Aws::Vector<Aws::String>& value) { SetMetrics(value); return *this;}
127 
140  inline EnableMetricsCollectionRequest& WithMetrics(Aws::Vector<Aws::String>&& value) { SetMetrics(value); return *this;}
141 
154  inline EnableMetricsCollectionRequest& AddMetrics(const Aws::String& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
155 
168  inline EnableMetricsCollectionRequest& AddMetrics(Aws::String&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
169 
182  inline EnableMetricsCollectionRequest& AddMetrics(const char* value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
183 
188  inline const Aws::String& GetGranularity() const{ return m_granularity; }
189 
194  inline void SetGranularity(const Aws::String& value) { m_granularityHasBeenSet = true; m_granularity = value; }
195 
200  inline void SetGranularity(Aws::String&& value) { m_granularityHasBeenSet = true; m_granularity = value; }
201 
206  inline void SetGranularity(const char* value) { m_granularityHasBeenSet = true; m_granularity.assign(value); }
207 
212  inline EnableMetricsCollectionRequest& WithGranularity(const Aws::String& value) { SetGranularity(value); return *this;}
213 
218  inline EnableMetricsCollectionRequest& WithGranularity(Aws::String&& value) { SetGranularity(value); return *this;}
219 
224  inline EnableMetricsCollectionRequest& WithGranularity(const char* value) { SetGranularity(value); return *this;}
225 
226  private:
227  Aws::String m_autoScalingGroupName;
228  bool m_autoScalingGroupNameHasBeenSet;
229  Aws::Vector<Aws::String> m_metrics;
230  bool m_metricsHasBeenSet;
231  Aws::String m_granularity;
232  bool m_granularityHasBeenSet;
233  };
234 
235 } // namespace Model
236 } // namespace AutoScaling
237 } // namespace Aws
EnableMetricsCollectionRequest & WithMetrics(const Aws::Vector< Aws::String > &value)
EnableMetricsCollectionRequest & WithGranularity(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
EnableMetricsCollectionRequest & WithAutoScalingGroupName(Aws::String &&value)
void SetMetrics(const Aws::Vector< Aws::String > &value)
EnableMetricsCollectionRequest & WithMetrics(Aws::Vector< Aws::String > &&value)
EnableMetricsCollectionRequest & WithAutoScalingGroupName(const Aws::String &value)
EnableMetricsCollectionRequest & AddMetrics(const Aws::String &value)
EnableMetricsCollectionRequest & WithGranularity(Aws::String &&value)
EnableMetricsCollectionRequest & WithGranularity(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
EnableMetricsCollectionRequest & AddMetrics(Aws::String &&value)
#define AWS_AUTOSCALING_API
EnableMetricsCollectionRequest & WithAutoScalingGroupName(const char *value)
EnableMetricsCollectionRequest & AddMetrics(const char *value)
JSON (JavaScript Object Notation).