AWS SDK for C++  0.12.9
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 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
39  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
40 
44  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
45 
49  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
50 
54  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
55 
59  inline EnableMetricsCollectionRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
60 
64  inline EnableMetricsCollectionRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(value); return *this;}
65 
69  inline EnableMetricsCollectionRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
70 
84  inline const Aws::Vector<Aws::String>& GetMetrics() const{ return m_metrics; }
85 
99  inline void SetMetrics(const Aws::Vector<Aws::String>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
100 
114  inline void SetMetrics(Aws::Vector<Aws::String>&& value) { m_metricsHasBeenSet = true; m_metrics = value; }
115 
129  inline EnableMetricsCollectionRequest& WithMetrics(const Aws::Vector<Aws::String>& value) { SetMetrics(value); return *this;}
130 
144  inline EnableMetricsCollectionRequest& WithMetrics(Aws::Vector<Aws::String>&& value) { SetMetrics(value); return *this;}
145 
159  inline EnableMetricsCollectionRequest& AddMetrics(const Aws::String& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
160 
174  inline EnableMetricsCollectionRequest& AddMetrics(Aws::String&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
175 
189  inline EnableMetricsCollectionRequest& AddMetrics(const char* value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
190 
195  inline const Aws::String& GetGranularity() const{ return m_granularity; }
196 
201  inline void SetGranularity(const Aws::String& value) { m_granularityHasBeenSet = true; m_granularity = value; }
202 
207  inline void SetGranularity(Aws::String&& value) { m_granularityHasBeenSet = true; m_granularity = value; }
208 
213  inline void SetGranularity(const char* value) { m_granularityHasBeenSet = true; m_granularity.assign(value); }
214 
219  inline EnableMetricsCollectionRequest& WithGranularity(const Aws::String& value) { SetGranularity(value); return *this;}
220 
225  inline EnableMetricsCollectionRequest& WithGranularity(Aws::String&& value) { SetGranularity(value); return *this;}
226 
231  inline EnableMetricsCollectionRequest& WithGranularity(const char* value) { SetGranularity(value); return *this;}
232 
233  private:
234  Aws::String m_autoScalingGroupName;
235  bool m_autoScalingGroupNameHasBeenSet;
236  Aws::Vector<Aws::String> m_metrics;
237  bool m_metricsHasBeenSet;
238  Aws::String m_granularity;
239  bool m_granularityHasBeenSet;
240  };
241 
242 } // namespace Model
243 } // namespace AutoScaling
244 } // 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).