AWS SDK for C++  1.9.125
AWS SDK for C++
MetricToRetain.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetMetric() const{ return m_metric; }
46 
50  inline bool MetricHasBeenSet() const { return m_metricHasBeenSet; }
51 
55  inline void SetMetric(const Aws::String& value) { m_metricHasBeenSet = true; m_metric = value; }
56 
60  inline void SetMetric(Aws::String&& value) { m_metricHasBeenSet = true; m_metric = std::move(value); }
61 
65  inline void SetMetric(const char* value) { m_metricHasBeenSet = true; m_metric.assign(value); }
66 
70  inline MetricToRetain& WithMetric(const Aws::String& value) { SetMetric(value); return *this;}
71 
75  inline MetricToRetain& WithMetric(Aws::String&& value) { SetMetric(std::move(value)); return *this;}
76 
80  inline MetricToRetain& WithMetric(const char* value) { SetMetric(value); return *this;}
81 
82 
86  inline const MetricDimension& GetMetricDimension() const{ return m_metricDimension; }
87 
91  inline bool MetricDimensionHasBeenSet() const { return m_metricDimensionHasBeenSet; }
92 
96  inline void SetMetricDimension(const MetricDimension& value) { m_metricDimensionHasBeenSet = true; m_metricDimension = value; }
97 
101  inline void SetMetricDimension(MetricDimension&& value) { m_metricDimensionHasBeenSet = true; m_metricDimension = std::move(value); }
102 
106  inline MetricToRetain& WithMetricDimension(const MetricDimension& value) { SetMetricDimension(value); return *this;}
107 
111  inline MetricToRetain& WithMetricDimension(MetricDimension&& value) { SetMetricDimension(std::move(value)); return *this;}
112 
113  private:
114 
115  Aws::String m_metric;
116  bool m_metricHasBeenSet;
117 
118  MetricDimension m_metricDimension;
119  bool m_metricDimensionHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace IoT
124 } // namespace Aws
Aws::IoT::Model::MetricToRetain::WithMetricDimension
MetricToRetain & WithMetricDimension(const MetricDimension &value)
Definition: MetricToRetain.h:106
Aws::IoT::Model::MetricToRetain::WithMetricDimension
MetricToRetain & WithMetricDimension(MetricDimension &&value)
Definition: MetricToRetain.h:111
Aws::IoT::Model::MetricToRetain::WithMetric
MetricToRetain & WithMetric(const Aws::String &value)
Definition: MetricToRetain.h:70
Aws::IoT::Model::MetricToRetain
Definition: MetricToRetain.h:34
Aws::IoT::Model::MetricDimension
Definition: MetricDimension.h:33
MetricDimension.h
Aws::IoT::Model::MetricToRetain::SetMetricDimension
void SetMetricDimension(const MetricDimension &value)
Definition: MetricToRetain.h:96
Aws::IoT::Model::MetricToRetain::GetMetricDimension
const MetricDimension & GetMetricDimension() const
Definition: MetricToRetain.h:86
Aws::IoT::Model::MetricToRetain::MetricToRetain
MetricToRetain()
Aws::IoT::Model::MetricToRetain::GetMetric
const Aws::String & GetMetric() const
Definition: MetricToRetain.h:45
Aws::IoT::Model::MetricToRetain::SetMetric
void SetMetric(const Aws::String &value)
Definition: MetricToRetain.h:55
Aws::IoT::Model::MetricToRetain::SetMetric
void SetMetric(const char *value)
Definition: MetricToRetain.h:65
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::MetricToRetain::MetricToRetain
MetricToRetain(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::MetricToRetain::SetMetric
void SetMetric(Aws::String &&value)
Definition: MetricToRetain.h:60
Aws::IoT::Model::MetricToRetain::WithMetric
MetricToRetain & WithMetric(const char *value)
Definition: MetricToRetain.h:80
Aws::IoT::Model::MetricToRetain::operator=
MetricToRetain & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::MetricToRetain::SetMetricDimension
void SetMetricDimension(MetricDimension &&value)
Definition: MetricToRetain.h:101
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::MetricToRetain::WithMetric
MetricToRetain & WithMetric(Aws::String &&value)
Definition: MetricToRetain.h:75
Aws::IoT::Model::MetricToRetain::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::MetricToRetain::MetricHasBeenSet
bool MetricHasBeenSet() const
Definition: MetricToRetain.h:50
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::MetricToRetain::MetricDimensionHasBeenSet
bool MetricDimensionHasBeenSet() const
Definition: MetricToRetain.h:91
IoT_EXPORTS.h