AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TimestreamTimestamp.h
1
6#pragma once
7#include <aws/iot/IoT_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 IoT
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_IOT_API TimestreamTimestamp();
40
41
43
46 inline const Aws::String& GetValue() const{ return m_value; }
47 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
48 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
49 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
50 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
51 inline TimestreamTimestamp& WithValue(const Aws::String& value) { SetValue(value); return *this;}
52 inline TimestreamTimestamp& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
53 inline TimestreamTimestamp& WithValue(const char* value) { SetValue(value); return *this;}
55
57
63 inline const Aws::String& GetUnit() const{ return m_unit; }
64 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
65 inline void SetUnit(const Aws::String& value) { m_unitHasBeenSet = true; m_unit = value; }
66 inline void SetUnit(Aws::String&& value) { m_unitHasBeenSet = true; m_unit = std::move(value); }
67 inline void SetUnit(const char* value) { m_unitHasBeenSet = true; m_unit.assign(value); }
68 inline TimestreamTimestamp& WithUnit(const Aws::String& value) { SetUnit(value); return *this;}
69 inline TimestreamTimestamp& WithUnit(Aws::String&& value) { SetUnit(std::move(value)); return *this;}
70 inline TimestreamTimestamp& WithUnit(const char* value) { SetUnit(value); return *this;}
72 private:
73
74 Aws::String m_value;
75 bool m_valueHasBeenSet = false;
76
77 Aws::String m_unit;
78 bool m_unitHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace IoT
83} // namespace Aws
TimestreamTimestamp & WithUnit(const char *value)
void SetUnit(const Aws::String &value)
AWS_IOT_API TimestreamTimestamp(Aws::Utils::Json::JsonView jsonValue)
void SetValue(const Aws::String &value)
TimestreamTimestamp & WithValue(const char *value)
const Aws::String & GetValue() const
const Aws::String & GetUnit() const
AWS_IOT_API TimestreamTimestamp & operator=(Aws::Utils::Json::JsonView jsonValue)
TimestreamTimestamp & WithValue(const Aws::String &value)
TimestreamTimestamp & WithUnit(const Aws::String &value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
TimestreamTimestamp & WithValue(Aws::String &&value)
TimestreamTimestamp & WithUnit(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue