AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
LocationTimestamp.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT {
20namespace Model {
21
30 public:
31 AWS_IOT_API LocationTimestamp() = default;
35
37
40 inline const Aws::String& GetValue() const { return m_value; }
41 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
42 template <typename ValueT = Aws::String>
43 void SetValue(ValueT&& value) {
44 m_valueHasBeenSet = true;
45 m_value = std::forward<ValueT>(value);
46 }
47 template <typename ValueT = Aws::String>
48 LocationTimestamp& WithValue(ValueT&& value) {
49 SetValue(std::forward<ValueT>(value));
50 return *this;
51 }
53
55
61 inline const Aws::String& GetUnit() const { return m_unit; }
62 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
63 template <typename UnitT = Aws::String>
64 void SetUnit(UnitT&& value) {
65 m_unitHasBeenSet = true;
66 m_unit = std::forward<UnitT>(value);
67 }
68 template <typename UnitT = Aws::String>
69 LocationTimestamp& WithUnit(UnitT&& value) {
70 SetUnit(std::forward<UnitT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_value;
76
77 Aws::String m_unit;
78 bool m_valueHasBeenSet = false;
79 bool m_unitHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace IoT
84} // namespace Aws
AWS_IOT_API LocationTimestamp()=default
LocationTimestamp & WithValue(ValueT &&value)
const Aws::String & GetValue() const
AWS_IOT_API LocationTimestamp & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API LocationTimestamp(Aws::Utils::Json::JsonView jsonValue)
LocationTimestamp & WithUnit(UnitT &&value)
const Aws::String & GetUnit() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue