AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Metric.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/iotsitewise/model/MetricWindow.h>
11#include <aws/iotsitewise/model/MetricProcessingConfig.h>
12#include <aws/iotsitewise/model/ExpressionVariable.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace IoTSiteWise
26{
27namespace Model
28{
29
45 class Metric
46 {
47 public:
48 AWS_IOTSITEWISE_API Metric();
49 AWS_IOTSITEWISE_API Metric(Aws::Utils::Json::JsonView jsonValue);
50 AWS_IOTSITEWISE_API Metric& operator=(Aws::Utils::Json::JsonView jsonValue);
51 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
52
53
55
62 inline const Aws::String& GetExpression() const{ return m_expression; }
63 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
64 inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
65 inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
66 inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
67 inline Metric& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
68 inline Metric& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
69 inline Metric& WithExpression(const char* value) { SetExpression(value); return *this;}
71
73
76 inline const Aws::Vector<ExpressionVariable>& GetVariables() const{ return m_variables; }
77 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
78 inline void SetVariables(const Aws::Vector<ExpressionVariable>& value) { m_variablesHasBeenSet = true; m_variables = value; }
79 inline void SetVariables(Aws::Vector<ExpressionVariable>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
80 inline Metric& WithVariables(const Aws::Vector<ExpressionVariable>& value) { SetVariables(value); return *this;}
81 inline Metric& WithVariables(Aws::Vector<ExpressionVariable>&& value) { SetVariables(std::move(value)); return *this;}
82 inline Metric& AddVariables(const ExpressionVariable& value) { m_variablesHasBeenSet = true; m_variables.push_back(value); return *this; }
83 inline Metric& AddVariables(ExpressionVariable&& value) { m_variablesHasBeenSet = true; m_variables.push_back(std::move(value)); return *this; }
85
87
92 inline const MetricWindow& GetWindow() const{ return m_window; }
93 inline bool WindowHasBeenSet() const { return m_windowHasBeenSet; }
94 inline void SetWindow(const MetricWindow& value) { m_windowHasBeenSet = true; m_window = value; }
95 inline void SetWindow(MetricWindow&& value) { m_windowHasBeenSet = true; m_window = std::move(value); }
96 inline Metric& WithWindow(const MetricWindow& value) { SetWindow(value); return *this;}
97 inline Metric& WithWindow(MetricWindow&& value) { SetWindow(std::move(value)); return *this;}
99
101
106 inline const MetricProcessingConfig& GetProcessingConfig() const{ return m_processingConfig; }
107 inline bool ProcessingConfigHasBeenSet() const { return m_processingConfigHasBeenSet; }
108 inline void SetProcessingConfig(const MetricProcessingConfig& value) { m_processingConfigHasBeenSet = true; m_processingConfig = value; }
109 inline void SetProcessingConfig(MetricProcessingConfig&& value) { m_processingConfigHasBeenSet = true; m_processingConfig = std::move(value); }
110 inline Metric& WithProcessingConfig(const MetricProcessingConfig& value) { SetProcessingConfig(value); return *this;}
111 inline Metric& WithProcessingConfig(MetricProcessingConfig&& value) { SetProcessingConfig(std::move(value)); return *this;}
113 private:
114
115 Aws::String m_expression;
116 bool m_expressionHasBeenSet = false;
117
119 bool m_variablesHasBeenSet = false;
120
121 MetricWindow m_window;
122 bool m_windowHasBeenSet = false;
123
124 MetricProcessingConfig m_processingConfig;
125 bool m_processingConfigHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace IoTSiteWise
130} // namespace Aws
AWS_IOTSITEWISE_API Metric(Aws::Utils::Json::JsonView jsonValue)
Metric & WithWindow(const MetricWindow &value)
Definition Metric.h:96
const MetricWindow & GetWindow() const
Definition Metric.h:92
bool ExpressionHasBeenSet() const
Definition Metric.h:63
void SetVariables(const Aws::Vector< ExpressionVariable > &value)
Definition Metric.h:78
void SetProcessingConfig(const MetricProcessingConfig &value)
Definition Metric.h:108
void SetWindow(const MetricWindow &value)
Definition Metric.h:94
bool ProcessingConfigHasBeenSet() const
Definition Metric.h:107
Metric & WithExpression(Aws::String &&value)
Definition Metric.h:68
void SetExpression(Aws::String &&value)
Definition Metric.h:65
const MetricProcessingConfig & GetProcessingConfig() const
Definition Metric.h:106
void SetVariables(Aws::Vector< ExpressionVariable > &&value)
Definition Metric.h:79
const Aws::Vector< ExpressionVariable > & GetVariables() const
Definition Metric.h:76
Metric & WithProcessingConfig(const MetricProcessingConfig &value)
Definition Metric.h:110
AWS_IOTSITEWISE_API Metric & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExpression(const Aws::String &value)
Definition Metric.h:64
Metric & WithExpression(const Aws::String &value)
Definition Metric.h:67
const Aws::String & GetExpression() const
Definition Metric.h:62
Metric & AddVariables(const ExpressionVariable &value)
Definition Metric.h:82
AWS_IOTSITEWISE_API Metric()
bool VariablesHasBeenSet() const
Definition Metric.h:77
Metric & WithWindow(MetricWindow &&value)
Definition Metric.h:97
Metric & WithVariables(Aws::Vector< ExpressionVariable > &&value)
Definition Metric.h:81
Metric & WithExpression(const char *value)
Definition Metric.h:69
void SetWindow(MetricWindow &&value)
Definition Metric.h:95
void SetProcessingConfig(MetricProcessingConfig &&value)
Definition Metric.h:109
Metric & WithProcessingConfig(MetricProcessingConfig &&value)
Definition Metric.h:111
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
Metric & AddVariables(ExpressionVariable &&value)
Definition Metric.h:83
void SetExpression(const char *value)
Definition Metric.h:66
bool WindowHasBeenSet() const
Definition Metric.h:93
Metric & WithVariables(const Aws::Vector< ExpressionVariable > &value)
Definition Metric.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue