AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
AssetPropertyTimestamp.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
29 public:
30 AWS_IOT_API AssetPropertyTimestamp() = default;
34
36
40 inline const Aws::String& GetTimeInSeconds() const { return m_timeInSeconds; }
41 inline bool TimeInSecondsHasBeenSet() const { return m_timeInSecondsHasBeenSet; }
42 template <typename TimeInSecondsT = Aws::String>
43 void SetTimeInSeconds(TimeInSecondsT&& value) {
44 m_timeInSecondsHasBeenSet = true;
45 m_timeInSeconds = std::forward<TimeInSecondsT>(value);
46 }
47 template <typename TimeInSecondsT = Aws::String>
48 AssetPropertyTimestamp& WithTimeInSeconds(TimeInSecondsT&& value) {
49 SetTimeInSeconds(std::forward<TimeInSecondsT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetOffsetInNanos() const { return m_offsetInNanos; }
60 inline bool OffsetInNanosHasBeenSet() const { return m_offsetInNanosHasBeenSet; }
61 template <typename OffsetInNanosT = Aws::String>
62 void SetOffsetInNanos(OffsetInNanosT&& value) {
63 m_offsetInNanosHasBeenSet = true;
64 m_offsetInNanos = std::forward<OffsetInNanosT>(value);
65 }
66 template <typename OffsetInNanosT = Aws::String>
67 AssetPropertyTimestamp& WithOffsetInNanos(OffsetInNanosT&& value) {
68 SetOffsetInNanos(std::forward<OffsetInNanosT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_timeInSeconds;
74
75 Aws::String m_offsetInNanos;
76 bool m_timeInSecondsHasBeenSet = false;
77 bool m_offsetInNanosHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace IoT
82} // namespace Aws
AssetPropertyTimestamp & WithOffsetInNanos(OffsetInNanosT &&value)
AssetPropertyTimestamp & WithTimeInSeconds(TimeInSecondsT &&value)
AWS_IOT_API AssetPropertyTimestamp()=default
void SetTimeInSeconds(TimeInSecondsT &&value)
AWS_IOT_API AssetPropertyTimestamp & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API AssetPropertyTimestamp(Aws::Utils::Json::JsonView jsonValue)
void SetOffsetInNanos(OffsetInNanosT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue