AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnableMetricsCollectionRequest.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:
25 AWS_AUTOSCALING_API EnableMetricsCollectionRequest();
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 "EnableMetricsCollection"; }
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); }
51 inline EnableMetricsCollectionRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
53
55
83 inline const Aws::Vector<Aws::String>& GetMetrics() const{ return m_metrics; }
84 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
85 inline void SetMetrics(const Aws::Vector<Aws::String>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
86 inline void SetMetrics(Aws::Vector<Aws::String>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
88 inline EnableMetricsCollectionRequest& WithMetrics(Aws::Vector<Aws::String>&& value) { SetMetrics(std::move(value)); return *this;}
89 inline EnableMetricsCollectionRequest& AddMetrics(const Aws::String& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
90 inline EnableMetricsCollectionRequest& AddMetrics(Aws::String&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(std::move(value)); return *this; }
91 inline EnableMetricsCollectionRequest& AddMetrics(const char* value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
93
95
99 inline const Aws::String& GetGranularity() const{ return m_granularity; }
100 inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
101 inline void SetGranularity(const Aws::String& value) { m_granularityHasBeenSet = true; m_granularity = value; }
102 inline void SetGranularity(Aws::String&& value) { m_granularityHasBeenSet = true; m_granularity = std::move(value); }
103 inline void SetGranularity(const char* value) { m_granularityHasBeenSet = true; m_granularity.assign(value); }
104 inline EnableMetricsCollectionRequest& WithGranularity(const Aws::String& value) { SetGranularity(value); return *this;}
105 inline EnableMetricsCollectionRequest& WithGranularity(Aws::String&& value) { SetGranularity(std::move(value)); return *this;}
106 inline EnableMetricsCollectionRequest& WithGranularity(const char* value) { SetGranularity(value); return *this;}
108 private:
109
110 Aws::String m_autoScalingGroupName;
111 bool m_autoScalingGroupNameHasBeenSet = false;
112
113 Aws::Vector<Aws::String> m_metrics;
114 bool m_metricsHasBeenSet = false;
115
116 Aws::String m_granularity;
117 bool m_granularityHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace AutoScaling
122} // namespace Aws
EnableMetricsCollectionRequest & WithAutoScalingGroupName(Aws::String &&value)
EnableMetricsCollectionRequest & AddMetrics(Aws::String &&value)
EnableMetricsCollectionRequest & WithGranularity(const char *value)
EnableMetricsCollectionRequest & WithGranularity(const Aws::String &value)
EnableMetricsCollectionRequest & WithAutoScalingGroupName(const Aws::String &value)
EnableMetricsCollectionRequest & WithMetrics(const Aws::Vector< Aws::String > &value)
EnableMetricsCollectionRequest & AddMetrics(const char *value)
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
EnableMetricsCollectionRequest & WithAutoScalingGroupName(const char *value)
EnableMetricsCollectionRequest & WithGranularity(Aws::String &&value)
EnableMetricsCollectionRequest & WithMetrics(Aws::Vector< Aws::String > &&value)
EnableMetricsCollectionRequest & AddMetrics(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector