AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MetricDimension.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/DimensionValueOperator.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_IOT_API MetricDimension();
39
40
42
45 inline const Aws::String& GetDimensionName() const{ return m_dimensionName; }
46 inline bool DimensionNameHasBeenSet() const { return m_dimensionNameHasBeenSet; }
47 inline void SetDimensionName(const Aws::String& value) { m_dimensionNameHasBeenSet = true; m_dimensionName = value; }
48 inline void SetDimensionName(Aws::String&& value) { m_dimensionNameHasBeenSet = true; m_dimensionName = std::move(value); }
49 inline void SetDimensionName(const char* value) { m_dimensionNameHasBeenSet = true; m_dimensionName.assign(value); }
50 inline MetricDimension& WithDimensionName(const Aws::String& value) { SetDimensionName(value); return *this;}
51 inline MetricDimension& WithDimensionName(Aws::String&& value) { SetDimensionName(std::move(value)); return *this;}
52 inline MetricDimension& WithDimensionName(const char* value) { SetDimensionName(value); return *this;}
54
56
64 inline const DimensionValueOperator& GetOperator() const{ return m_operator; }
65 inline bool OperatorHasBeenSet() const { return m_operatorHasBeenSet; }
66 inline void SetOperator(const DimensionValueOperator& value) { m_operatorHasBeenSet = true; m_operator = value; }
67 inline void SetOperator(DimensionValueOperator&& value) { m_operatorHasBeenSet = true; m_operator = std::move(value); }
68 inline MetricDimension& WithOperator(const DimensionValueOperator& value) { SetOperator(value); return *this;}
69 inline MetricDimension& WithOperator(DimensionValueOperator&& value) { SetOperator(std::move(value)); return *this;}
71 private:
72
73 Aws::String m_dimensionName;
74 bool m_dimensionNameHasBeenSet = false;
75
76 DimensionValueOperator m_operator;
77 bool m_operatorHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace IoT
82} // namespace Aws
MetricDimension & WithOperator(DimensionValueOperator &&value)
const DimensionValueOperator & GetOperator() const
MetricDimension & WithDimensionName(Aws::String &&value)
void SetOperator(DimensionValueOperator &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API MetricDimension & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricDimension & WithDimensionName(const Aws::String &value)
const Aws::String & GetDimensionName() const
void SetDimensionName(const Aws::String &value)
AWS_IOT_API MetricDimension(Aws::Utils::Json::JsonView jsonValue)
MetricDimension & WithOperator(const DimensionValueOperator &value)
void SetDimensionName(Aws::String &&value)
MetricDimension & WithDimensionName(const char *value)
void SetOperator(const DimensionValueOperator &value)
void SetDimensionName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue