AWS SDK for C++  1.9.132
AWS SDK for C++
MetricDimension.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 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetDimensionName() const{ return m_dimensionName; }
45 
49  inline bool DimensionNameHasBeenSet() const { return m_dimensionNameHasBeenSet; }
50 
54  inline void SetDimensionName(const Aws::String& value) { m_dimensionNameHasBeenSet = true; m_dimensionName = value; }
55 
59  inline void SetDimensionName(Aws::String&& value) { m_dimensionNameHasBeenSet = true; m_dimensionName = std::move(value); }
60 
64  inline void SetDimensionName(const char* value) { m_dimensionNameHasBeenSet = true; m_dimensionName.assign(value); }
65 
69  inline MetricDimension& WithDimensionName(const Aws::String& value) { SetDimensionName(value); return *this;}
70 
74  inline MetricDimension& WithDimensionName(Aws::String&& value) { SetDimensionName(std::move(value)); return *this;}
75 
79  inline MetricDimension& WithDimensionName(const char* value) { SetDimensionName(value); return *this;}
80 
81 
90  inline const DimensionValueOperator& GetOperator() const{ return m_operator; }
91 
100  inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
101 
110  inline void SetOperator(const DimensionValueOperator& value) { m_operatorHasBeenSet = true; m_operator = value; }
111 
120  inline void SetOperator(DimensionValueOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
121 
130  inline MetricDimension& WithOperator(const DimensionValueOperator& value) { SetOperator(value); return *this;}
131 
140  inline MetricDimension& WithOperator(DimensionValueOperator&& value) { SetOperator(std::move(value)); return *this;}
141 
142  private:
143 
144  Aws::String m_dimensionName;
145  bool m_dimensionNameHasBeenSet;
146 
147  DimensionValueOperator m_operator;
148  bool m_operatorHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace IoT
153 } // namespace Aws
Aws::IoT::Model::MetricDimension::MetricDimension
MetricDimension(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::MetricDimension::OperatorHasBeenSet
bool OperatorHasBeenSet() const
Definition: MetricDimension.h:100
Aws::IoT::Model::MetricDimension::SetDimensionName
void SetDimensionName(Aws::String &&value)
Definition: MetricDimension.h:59
Aws::IoT::Model::MetricDimension::WithOperator
MetricDimension & WithOperator(DimensionValueOperator &&value)
Definition: MetricDimension.h:140
Aws::IoT::Model::MetricDimension
Definition: MetricDimension.h:33
Aws::IoT::Model::MetricDimension::WithDimensionName
MetricDimension & WithDimensionName(const char *value)
Definition: MetricDimension.h:79
Aws::IoT::Model::MetricDimension::WithOperator
MetricDimension & WithOperator(const DimensionValueOperator &value)
Definition: MetricDimension.h:130
Aws::IoT::Model::MetricDimension::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
DimensionValueOperator.h
Aws::IoT::Model::MetricDimension::WithDimensionName
MetricDimension & WithDimensionName(const Aws::String &value)
Definition: MetricDimension.h:69
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::MetricDimension::SetDimensionName
void SetDimensionName(const Aws::String &value)
Definition: MetricDimension.h:54
Aws::IoT::Model::MetricDimension::GetDimensionName
const Aws::String & GetDimensionName() const
Definition: MetricDimension.h:44
Aws::IoT::Model::MetricDimension::DimensionNameHasBeenSet
bool DimensionNameHasBeenSet() const
Definition: MetricDimension.h:49
Aws::IoT::Model::MetricDimension::operator=
MetricDimension & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::MetricDimension::SetOperator
void SetOperator(DimensionValueOperator &&value)
Definition: MetricDimension.h:120
Aws::IoT::Model::MetricDimension::SetOperator
void SetOperator(const DimensionValueOperator &value)
Definition: MetricDimension.h:110
Aws::IoT::Model::MetricDimension::WithDimensionName
MetricDimension & WithDimensionName(Aws::String &&value)
Definition: MetricDimension.h:74
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::MetricDimension::MetricDimension
MetricDimension()
Aws::IoT::Model::DimensionValueOperator
DimensionValueOperator
Definition: DimensionValueOperator.h:17
Aws::IoT::Model::MetricDimension::GetOperator
const DimensionValueOperator & GetOperator() const
Definition: MetricDimension.h:90
Aws::IoT::Model::MetricDimension::SetDimensionName
void SetDimensionName(const char *value)
Definition: MetricDimension.h:64
IoT_EXPORTS.h