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/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Pinpoint
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_PINPOINT_API MetricDimension();
37 AWS_PINPOINT_API MetricDimension(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const Aws::String& GetComparisonOperator() const{ return m_comparisonOperator; }
49 inline bool ComparisonOperatorHasBeenSet() const { return m_comparisonOperatorHasBeenSet; }
50 inline void SetComparisonOperator(const Aws::String& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = value; }
51 inline void SetComparisonOperator(Aws::String&& value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator = std::move(value); }
52 inline void SetComparisonOperator(const char* value) { m_comparisonOperatorHasBeenSet = true; m_comparisonOperator.assign(value); }
53 inline MetricDimension& WithComparisonOperator(const Aws::String& value) { SetComparisonOperator(value); return *this;}
54 inline MetricDimension& WithComparisonOperator(Aws::String&& value) { SetComparisonOperator(std::move(value)); return *this;}
55 inline MetricDimension& WithComparisonOperator(const char* value) { SetComparisonOperator(value); return *this;}
57
59
62 inline double GetValue() const{ return m_value; }
63 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
64 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
65 inline MetricDimension& WithValue(double value) { SetValue(value); return *this;}
67 private:
68
69 Aws::String m_comparisonOperator;
70 bool m_comparisonOperatorHasBeenSet = false;
71
72 double m_value;
73 bool m_valueHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Pinpoint
78} // namespace Aws
AWS_PINPOINT_API MetricDimension & operator=(Aws::Utils::Json::JsonView jsonValue)
MetricDimension & WithComparisonOperator(const char *value)
void SetComparisonOperator(const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetComparisonOperator(const char *value)
MetricDimension & WithValue(double value)
AWS_PINPOINT_API MetricDimension(Aws::Utils::Json::JsonView jsonValue)
void SetComparisonOperator(Aws::String &&value)
const Aws::String & GetComparisonOperator() const
MetricDimension & WithComparisonOperator(const Aws::String &value)
MetricDimension & WithComparisonOperator(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue