AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MeasureValue.h
1
6#pragma once
7#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/timestream-write/model/MeasureValueType.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 TimestreamWrite
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_TIMESTREAMWRITE_API MeasureValue();
41 AWS_TIMESTREAMWRITE_API MeasureValue(Aws::Utils::Json::JsonView jsonValue);
42 AWS_TIMESTREAMWRITE_API MeasureValue& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
53 inline const Aws::String& GetName() const{ return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
56 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
58 inline MeasureValue& WithName(const Aws::String& value) { SetName(value); return *this;}
59 inline MeasureValue& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
60 inline MeasureValue& WithName(const char* value) { SetName(value); return *this;}
62
64
69 inline const Aws::String& GetValue() const{ return m_value; }
70 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
71 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
72 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
73 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
74 inline MeasureValue& WithValue(const Aws::String& value) { SetValue(value); return *this;}
75 inline MeasureValue& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
76 inline MeasureValue& WithValue(const char* value) { SetValue(value); return *this;}
78
80
84 inline const MeasureValueType& GetType() const{ return m_type; }
85 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
86 inline void SetType(const MeasureValueType& value) { m_typeHasBeenSet = true; m_type = value; }
87 inline void SetType(MeasureValueType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
88 inline MeasureValue& WithType(const MeasureValueType& value) { SetType(value); return *this;}
89 inline MeasureValue& WithType(MeasureValueType&& value) { SetType(std::move(value)); return *this;}
91 private:
92
93 Aws::String m_name;
94 bool m_nameHasBeenSet = false;
95
96 Aws::String m_value;
97 bool m_valueHasBeenSet = false;
98
99 MeasureValueType m_type;
100 bool m_typeHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace TimestreamWrite
105} // namespace Aws
MeasureValue & WithName(Aws::String &&value)
MeasureValue & WithName(const char *value)
MeasureValue & WithType(const MeasureValueType &value)
void SetType(MeasureValueType &&value)
AWS_TIMESTREAMWRITE_API MeasureValue & operator=(Aws::Utils::Json::JsonView jsonValue)
MeasureValue & WithValue(const char *value)
MeasureValue & WithValue(Aws::String &&value)
AWS_TIMESTREAMWRITE_API MeasureValue(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetValue() const
void SetValue(const Aws::String &value)
MeasureValue & WithType(MeasureValueType &&value)
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
const MeasureValueType & GetType() const
MeasureValue & WithValue(const Aws::String &value)
void SetType(const MeasureValueType &value)
void SetName(const Aws::String &value)
MeasureValue & WithName(const Aws::String &value)
const Aws::String & GetName() const
AWS_TIMESTREAMWRITE_API MeasureValue()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue