AWS SDK for C++  1.9.159
AWS SDK for C++
Metric.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22  class JsonView;
23 } // namespace Json
24 } // namespace Utils
25 namespace IoTSiteWise
26 {
27 namespace Model
28 {
29 
46  {
47  public:
48  Metric();
52 
53 
61  inline const Aws::String& GetExpression() const{ return m_expression; }
62 
70  inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
71 
79  inline void SetExpression(const Aws::String& value) { m_expressionHasBeenSet = true; m_expression = value; }
80 
88  inline void SetExpression(Aws::String&& value) { m_expressionHasBeenSet = true; m_expression = std::move(value); }
89 
97  inline void SetExpression(const char* value) { m_expressionHasBeenSet = true; m_expression.assign(value); }
98 
106  inline Metric& WithExpression(const Aws::String& value) { SetExpression(value); return *this;}
107 
115  inline Metric& WithExpression(Aws::String&& value) { SetExpression(std::move(value)); return *this;}
116 
124  inline Metric& WithExpression(const char* value) { SetExpression(value); return *this;}
125 
126 
130  inline const Aws::Vector<ExpressionVariable>& GetVariables() const{ return m_variables; }
131 
135  inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
136 
140  inline void SetVariables(const Aws::Vector<ExpressionVariable>& value) { m_variablesHasBeenSet = true; m_variables = value; }
141 
145  inline void SetVariables(Aws::Vector<ExpressionVariable>&& value) { m_variablesHasBeenSet = true; m_variables = std::move(value); }
146 
150  inline Metric& WithVariables(const Aws::Vector<ExpressionVariable>& value) { SetVariables(value); return *this;}
151 
155  inline Metric& WithVariables(Aws::Vector<ExpressionVariable>&& value) { SetVariables(std::move(value)); return *this;}
156 
160  inline Metric& AddVariables(const ExpressionVariable& value) { m_variablesHasBeenSet = true; m_variables.push_back(value); return *this; }
161 
165  inline Metric& AddVariables(ExpressionVariable&& value) { m_variablesHasBeenSet = true; m_variables.push_back(std::move(value)); return *this; }
166 
167 
173  inline const MetricWindow& GetWindow() const{ return m_window; }
174 
180  inline bool WindowHasBeenSet() const { return m_windowHasBeenSet; }
181 
187  inline void SetWindow(const MetricWindow& value) { m_windowHasBeenSet = true; m_window = value; }
188 
194  inline void SetWindow(MetricWindow&& value) { m_windowHasBeenSet = true; m_window = std::move(value); }
195 
201  inline Metric& WithWindow(const MetricWindow& value) { SetWindow(value); return *this;}
202 
208  inline Metric& WithWindow(MetricWindow&& value) { SetWindow(std::move(value)); return *this;}
209 
210 
216  inline const MetricProcessingConfig& GetProcessingConfig() const{ return m_processingConfig; }
217 
223  inline bool ProcessingConfigHasBeenSet() const { return m_processingConfigHasBeenSet; }
224 
230  inline void SetProcessingConfig(const MetricProcessingConfig& value) { m_processingConfigHasBeenSet = true; m_processingConfig = value; }
231 
237  inline void SetProcessingConfig(MetricProcessingConfig&& value) { m_processingConfigHasBeenSet = true; m_processingConfig = std::move(value); }
238 
244  inline Metric& WithProcessingConfig(const MetricProcessingConfig& value) { SetProcessingConfig(value); return *this;}
245 
251  inline Metric& WithProcessingConfig(MetricProcessingConfig&& value) { SetProcessingConfig(std::move(value)); return *this;}
252 
253  private:
254 
255  Aws::String m_expression;
256  bool m_expressionHasBeenSet;
257 
259  bool m_variablesHasBeenSet;
260 
261  MetricWindow m_window;
262  bool m_windowHasBeenSet;
263 
264  MetricProcessingConfig m_processingConfig;
265  bool m_processingConfigHasBeenSet;
266  };
267 
268 } // namespace Model
269 } // namespace IoTSiteWise
270 } // namespace Aws
Aws::IoTSiteWise::Model::Metric::Metric
Metric()
Aws::IoTSiteWise::Model::Metric::WithWindow
Metric & WithWindow(const MetricWindow &value)
Definition: Metric.h:201
Aws::IoTSiteWise::Model::Metric::SetExpression
void SetExpression(const Aws::String &value)
Definition: Metric.h:79
Aws::IoTSiteWise::Model::Metric::Metric
Metric(Aws::Utils::Json::JsonView jsonValue)
MetricWindow.h
MetricProcessingConfig.h
Aws::IoTSiteWise::Model::Metric::VariablesHasBeenSet
bool VariablesHasBeenSet() const
Definition: Metric.h:135
Aws::IoTSiteWise::Model::Metric::GetVariables
const Aws::Vector< ExpressionVariable > & GetVariables() const
Definition: Metric.h:130
Aws::IoTSiteWise::Model::Metric::SetWindow
void SetWindow(MetricWindow &&value)
Definition: Metric.h:194
Aws::IoTSiteWise::Model::Metric
Definition: Metric.h:46
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::Metric::SetVariables
void SetVariables(const Aws::Vector< ExpressionVariable > &value)
Definition: Metric.h:140
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::Metric::WithWindow
Metric & WithWindow(MetricWindow &&value)
Definition: Metric.h:208
Aws::IoTSiteWise::Model::Metric::WithExpression
Metric & WithExpression(const char *value)
Definition: Metric.h:124
Aws::IoTSiteWise::Model::Metric::WithVariables
Metric & WithVariables(const Aws::Vector< ExpressionVariable > &value)
Definition: Metric.h:150
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoTSiteWise::Model::MetricWindow
Definition: MetricWindow.h:33
AWSVector.h
Aws::IoTSiteWise::Model::Metric::SetWindow
void SetWindow(const MetricWindow &value)
Definition: Metric.h:187
Aws::IoTSiteWise::Model::Metric::WindowHasBeenSet
bool WindowHasBeenSet() const
Definition: Metric.h:180
Aws::IoTSiteWise::Model::Metric::WithExpression
Metric & WithExpression(Aws::String &&value)
Definition: Metric.h:115
Aws::IoTSiteWise::Model::Metric::ExpressionHasBeenSet
bool ExpressionHasBeenSet() const
Definition: Metric.h:70
Aws::IoTSiteWise::Model::MetricProcessingConfig
Definition: MetricProcessingConfig.h:34
Aws::IoTSiteWise::Model::Metric::GetProcessingConfig
const MetricProcessingConfig & GetProcessingConfig() const
Definition: Metric.h:216
Aws::IoTSiteWise::Model::Metric::WithExpression
Metric & WithExpression(const Aws::String &value)
Definition: Metric.h:106
Aws::IoTSiteWise::Model::Metric::SetProcessingConfig
void SetProcessingConfig(const MetricProcessingConfig &value)
Definition: Metric.h:230
Aws::IoTSiteWise::Model::Metric::SetExpression
void SetExpression(const char *value)
Definition: Metric.h:97
ExpressionVariable.h
Aws::IoTSiteWise::Model::Metric::operator=
Metric & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::Metric::ProcessingConfigHasBeenSet
bool ProcessingConfigHasBeenSet() const
Definition: Metric.h:223
Aws::IoTSiteWise::Model::Metric::GetExpression
const Aws::String & GetExpression() const
Definition: Metric.h:61
Aws::IoTSiteWise::Model::Metric::GetWindow
const MetricWindow & GetWindow() const
Definition: Metric.h:173
Aws::IoTSiteWise::Model::Metric::WithProcessingConfig
Metric & WithProcessingConfig(const MetricProcessingConfig &value)
Definition: Metric.h:244
Aws::IoTSiteWise::Model::Metric::SetVariables
void SetVariables(Aws::Vector< ExpressionVariable > &&value)
Definition: Metric.h:145
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::Metric::WithProcessingConfig
Metric & WithProcessingConfig(MetricProcessingConfig &&value)
Definition: Metric.h:251
Aws::IoTSiteWise::Model::Metric::WithVariables
Metric & WithVariables(Aws::Vector< ExpressionVariable > &&value)
Definition: Metric.h:155
Aws::IoTSiteWise::Model::Metric::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoTSiteWise::Model::Metric::SetExpression
void SetExpression(Aws::String &&value)
Definition: Metric.h:88
Aws::IoTSiteWise::Model::Metric::SetProcessingConfig
void SetProcessingConfig(MetricProcessingConfig &&value)
Definition: Metric.h:237
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoTSiteWise::Model::Metric::AddVariables
Metric & AddVariables(ExpressionVariable &&value)
Definition: Metric.h:165
Aws::IoTSiteWise::Model::ExpressionVariable
Definition: ExpressionVariable.h:33
Aws::IoTSiteWise::Model::Metric::AddVariables
Metric & AddVariables(const ExpressionVariable &value)
Definition: Metric.h:160