AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TimeInNanos.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoTSiteWise
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_IOTSITEWISE_API TimeInNanos();
34 AWS_IOTSITEWISE_API TimeInNanos(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTSITEWISE_API TimeInNanos& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
38
40
44 inline long long GetTimeInSeconds() const{ return m_timeInSeconds; }
45 inline bool TimeInSecondsHasBeenSet() const { return m_timeInSecondsHasBeenSet; }
46 inline void SetTimeInSeconds(long long value) { m_timeInSecondsHasBeenSet = true; m_timeInSeconds = value; }
47 inline TimeInNanos& WithTimeInSeconds(long long value) { SetTimeInSeconds(value); return *this;}
49
51
54 inline int GetOffsetInNanos() const{ return m_offsetInNanos; }
55 inline bool OffsetInNanosHasBeenSet() const { return m_offsetInNanosHasBeenSet; }
56 inline void SetOffsetInNanos(int value) { m_offsetInNanosHasBeenSet = true; m_offsetInNanos = value; }
57 inline TimeInNanos& WithOffsetInNanos(int value) { SetOffsetInNanos(value); return *this;}
59 private:
60
61 long long m_timeInSeconds;
62 bool m_timeInSecondsHasBeenSet = false;
63
64 int m_offsetInNanos;
65 bool m_offsetInNanosHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace IoTSiteWise
70} // namespace Aws
AWS_IOTSITEWISE_API TimeInNanos(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API TimeInNanos & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSITEWISE_API Aws::Utils::Json::JsonValue Jsonize() const
TimeInNanos & WithOffsetInNanos(int value)
Definition TimeInNanos.h:57
TimeInNanos & WithTimeInSeconds(long long value)
Definition TimeInNanos.h:47
AWS_IOTSITEWISE_API TimeInNanos()
void SetTimeInSeconds(long long value)
Definition TimeInNanos.h:46
Aws::Utils::Json::JsonValue JsonValue