AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssetPropertyTimestamp.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
33 {
34 public:
35 AWS_IOT_API AssetPropertyTimestamp() = default;
39
40
42
46 inline const Aws::String& GetTimeInSeconds() const { return m_timeInSeconds; }
47 inline bool TimeInSecondsHasBeenSet() const { return m_timeInSecondsHasBeenSet; }
48 template<typename TimeInSecondsT = Aws::String>
49 void SetTimeInSeconds(TimeInSecondsT&& value) { m_timeInSecondsHasBeenSet = true; m_timeInSeconds = std::forward<TimeInSecondsT>(value); }
50 template<typename TimeInSecondsT = Aws::String>
51 AssetPropertyTimestamp& WithTimeInSeconds(TimeInSecondsT&& value) { SetTimeInSeconds(std::forward<TimeInSecondsT>(value)); return *this;}
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) { m_offsetInNanosHasBeenSet = true; m_offsetInNanos = std::forward<OffsetInNanosT>(value); }
63 template<typename OffsetInNanosT = Aws::String>
64 AssetPropertyTimestamp& WithOffsetInNanos(OffsetInNanosT&& value) { SetOffsetInNanos(std::forward<OffsetInNanosT>(value)); return *this;}
66 private:
67
68 Aws::String m_timeInSeconds;
69 bool m_timeInSecondsHasBeenSet = false;
70
71 Aws::String m_offsetInNanos;
72 bool m_offsetInNanosHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace IoT
77} // 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