AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Dimension.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/DimensionValueType.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
35 {
36 public:
37 AWS_TIMESTREAMWRITE_API Dimension();
38 AWS_TIMESTREAMWRITE_API Dimension(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TIMESTREAMWRITE_API Dimension& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
52 inline const Aws::String& GetName() const{ return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
56 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
57 inline Dimension& WithName(const Aws::String& value) { SetName(value); return *this;}
58 inline Dimension& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
59 inline Dimension& WithName(const char* value) { SetName(value); return *this;}
61
63
66 inline const Aws::String& GetValue() const{ return m_value; }
67 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
68 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
69 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
70 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
71 inline Dimension& WithValue(const Aws::String& value) { SetValue(value); return *this;}
72 inline Dimension& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
73 inline Dimension& WithValue(const char* value) { SetValue(value); return *this;}
75
77
80 inline const DimensionValueType& GetDimensionValueType() const{ return m_dimensionValueType; }
81 inline bool DimensionValueTypeHasBeenSet() const { return m_dimensionValueTypeHasBeenSet; }
82 inline void SetDimensionValueType(const DimensionValueType& value) { m_dimensionValueTypeHasBeenSet = true; m_dimensionValueType = value; }
83 inline void SetDimensionValueType(DimensionValueType&& value) { m_dimensionValueTypeHasBeenSet = true; m_dimensionValueType = std::move(value); }
84 inline Dimension& WithDimensionValueType(const DimensionValueType& value) { SetDimensionValueType(value); return *this;}
85 inline Dimension& WithDimensionValueType(DimensionValueType&& value) { SetDimensionValueType(std::move(value)); return *this;}
87 private:
88
89 Aws::String m_name;
90 bool m_nameHasBeenSet = false;
91
92 Aws::String m_value;
93 bool m_valueHasBeenSet = false;
94
95 DimensionValueType m_dimensionValueType;
96 bool m_dimensionValueTypeHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace TimestreamWrite
101} // namespace Aws
Dimension & WithDimensionValueType(const DimensionValueType &value)
Definition Dimension.h:84
Dimension & WithValue(Aws::String &&value)
Definition Dimension.h:72
void SetDimensionValueType(DimensionValueType &&value)
Definition Dimension.h:83
void SetName(Aws::String &&value)
Definition Dimension.h:55
Dimension & WithValue(const Aws::String &value)
Definition Dimension.h:71
const DimensionValueType & GetDimensionValueType() const
Definition Dimension.h:80
void SetValue(const char *value)
Definition Dimension.h:70
const Aws::String & GetName() const
Definition Dimension.h:52
void SetValue(Aws::String &&value)
Definition Dimension.h:69
AWS_TIMESTREAMWRITE_API Dimension(Aws::Utils::Json::JsonView jsonValue)
Dimension & WithName(const char *value)
Definition Dimension.h:59
void SetDimensionValueType(const DimensionValueType &value)
Definition Dimension.h:82
Dimension & WithName(const Aws::String &value)
Definition Dimension.h:57
AWS_TIMESTREAMWRITE_API Dimension()
void SetValue(const Aws::String &value)
Definition Dimension.h:68
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(const char *value)
Definition Dimension.h:56
AWS_TIMESTREAMWRITE_API Dimension & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetValue() const
Definition Dimension.h:66
Dimension & WithValue(const char *value)
Definition Dimension.h:73
void SetName(const Aws::String &value)
Definition Dimension.h:54
Dimension & WithName(Aws::String &&value)
Definition Dimension.h:58
Dimension & WithDimensionValueType(DimensionValueType &&value)
Definition Dimension.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue