AWS SDK for C++  1.9.156
AWS SDK for C++
TimeInNanos.h
Go to the documentation of this file.
1 
6 #pragma once
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15  class JsonValue;
16  class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace IoTSiteWise
20 {
21 namespace Model
22 {
23 
31  {
32  public:
37 
38 
43  inline long long GetTimeInSeconds() const{ return m_timeInSeconds; }
44 
49  inline bool TimeInSecondsHasBeenSet() const { return m_timeInSecondsHasBeenSet; }
50 
55  inline void SetTimeInSeconds(long long value) { m_timeInSecondsHasBeenSet = true; m_timeInSeconds = value; }
56 
61  inline TimeInNanos& WithTimeInSeconds(long long value) { SetTimeInSeconds(value); return *this;}
62 
63 
67  inline int GetOffsetInNanos() const{ return m_offsetInNanos; }
68 
72  inline bool OffsetInNanosHasBeenSet() const { return m_offsetInNanosHasBeenSet; }
73 
77  inline void SetOffsetInNanos(int value) { m_offsetInNanosHasBeenSet = true; m_offsetInNanos = value; }
78 
82  inline TimeInNanos& WithOffsetInNanos(int value) { SetOffsetInNanos(value); return *this;}
83 
84  private:
85 
86  long long m_timeInSeconds;
87  bool m_timeInSecondsHasBeenSet;
88 
89  int m_offsetInNanos;
90  bool m_offsetInNanosHasBeenSet;
91  };
92 
93 } // namespace Model
94 } // namespace IoTSiteWise
95 } // namespace Aws
Aws::IoTSiteWise::Model::TimeInNanos::SetTimeInSeconds
void SetTimeInSeconds(long long value)
Definition: TimeInNanos.h:55
Aws::IoTSiteWise::Model::TimeInNanos::OffsetInNanosHasBeenSet
bool OffsetInNanosHasBeenSet() const
Definition: TimeInNanos.h:72
IoTSiteWise_EXPORTS.h
Aws::IoTSiteWise::Model::TimeInNanos::WithOffsetInNanos
TimeInNanos & WithOffsetInNanos(int value)
Definition: TimeInNanos.h:82
AWS_IOTSITEWISE_API
#define AWS_IOTSITEWISE_API
Definition: IoTSiteWise_EXPORTS.h:28
Aws::IoTSiteWise::Model::TimeInNanos
Definition: TimeInNanos.h:31
Aws::IoTSiteWise::Model::TimeInNanos::GetTimeInSeconds
long long GetTimeInSeconds() const
Definition: TimeInNanos.h:43
Aws::IoTSiteWise::Model::TimeInNanos::TimeInNanos
TimeInNanos(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::TimeInNanos::GetOffsetInNanos
int GetOffsetInNanos() const
Definition: TimeInNanos.h:67
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoTSiteWise::Model::TimeInNanos::TimeInSecondsHasBeenSet
bool TimeInSecondsHasBeenSet() const
Definition: TimeInNanos.h:49
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::IoTSiteWise::Model::TimeInNanos::operator=
TimeInNanos & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoTSiteWise::Model::TimeInNanos::SetOffsetInNanos
void SetOffsetInNanos(int value)
Definition: TimeInNanos.h:77
Aws::IoTSiteWise::Model::TimeInNanos::TimeInNanos
TimeInNanos()
Aws::IoTSiteWise::Model::TimeInNanos::WithTimeInSeconds
TimeInNanos & WithTimeInSeconds(long long value)
Definition: TimeInNanos.h:61
Aws::IoTSiteWise::Model::TimeInNanos::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const