AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
MeasureValue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
9#include <aws/timestream-write/model/MeasureValueType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace TimestreamWrite {
21namespace Model {
22
34 public:
35 AWS_TIMESTREAMWRITE_API MeasureValue() = default;
36 AWS_TIMESTREAMWRITE_API MeasureValue(Aws::Utils::Json::JsonView jsonValue);
37 AWS_TIMESTREAMWRITE_API MeasureValue& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template <typename NameT = Aws::String>
50 void SetName(NameT&& value) {
51 m_nameHasBeenSet = true;
52 m_name = std::forward<NameT>(value);
53 }
54 template <typename NameT = Aws::String>
55 MeasureValue& WithName(NameT&& value) {
56 SetName(std::forward<NameT>(value));
57 return *this;
58 }
60
62
67 inline const Aws::String& GetValue() const { return m_value; }
68 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
69 template <typename ValueT = Aws::String>
70 void SetValue(ValueT&& value) {
71 m_valueHasBeenSet = true;
72 m_value = std::forward<ValueT>(value);
73 }
74 template <typename ValueT = Aws::String>
75 MeasureValue& WithValue(ValueT&& value) {
76 SetValue(std::forward<ValueT>(value));
77 return *this;
78 }
80
82
86 inline MeasureValueType GetType() const { return m_type; }
87 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
88 inline void SetType(MeasureValueType value) {
89 m_typeHasBeenSet = true;
90 m_type = value;
91 }
93 SetType(value);
94 return *this;
95 }
97 private:
98 Aws::String m_name;
99
100 Aws::String m_value;
101
103 bool m_nameHasBeenSet = false;
104 bool m_valueHasBeenSet = false;
105 bool m_typeHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace TimestreamWrite
110} // namespace Aws
MeasureValue & WithName(NameT &&value)
AWS_TIMESTREAMWRITE_API MeasureValue & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMWRITE_API MeasureValue(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetValue() const
MeasureValue & WithValue(ValueT &&value)
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TIMESTREAMWRITE_API MeasureValue()=default
void SetType(MeasureValueType value)
MeasureValue & WithType(MeasureValueType value)
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue