AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeltaTime.h
1
6#pragma once
7#include <aws/iotanalytics/IoTAnalytics_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 IoTAnalytics
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_IOTANALYTICS_API DeltaTime() = default;
36 AWS_IOTANALYTICS_API DeltaTime(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTANALYTICS_API DeltaTime& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
52 inline int GetOffsetSeconds() const { return m_offsetSeconds; }
53 inline bool OffsetSecondsHasBeenSet() const { return m_offsetSecondsHasBeenSet; }
54 inline void SetOffsetSeconds(int value) { m_offsetSecondsHasBeenSet = true; m_offsetSeconds = value; }
55 inline DeltaTime& WithOffsetSeconds(int value) { SetOffsetSeconds(value); return *this;}
57
59
64 inline const Aws::String& GetTimeExpression() const { return m_timeExpression; }
65 inline bool TimeExpressionHasBeenSet() const { return m_timeExpressionHasBeenSet; }
66 template<typename TimeExpressionT = Aws::String>
67 void SetTimeExpression(TimeExpressionT&& value) { m_timeExpressionHasBeenSet = true; m_timeExpression = std::forward<TimeExpressionT>(value); }
68 template<typename TimeExpressionT = Aws::String>
69 DeltaTime& WithTimeExpression(TimeExpressionT&& value) { SetTimeExpression(std::forward<TimeExpressionT>(value)); return *this;}
71 private:
72
73 int m_offsetSeconds{0};
74 bool m_offsetSecondsHasBeenSet = false;
75
76 Aws::String m_timeExpression;
77 bool m_timeExpressionHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace IoTAnalytics
82} // namespace Aws
void SetTimeExpression(TimeExpressionT &&value)
Definition DeltaTime.h:67
AWS_IOTANALYTICS_API DeltaTime()=default
AWS_IOTANALYTICS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTimeExpression() const
Definition DeltaTime.h:64
AWS_IOTANALYTICS_API DeltaTime & operator=(Aws::Utils::Json::JsonView jsonValue)
DeltaTime & WithOffsetSeconds(int value)
Definition DeltaTime.h:55
AWS_IOTANALYTICS_API DeltaTime(Aws::Utils::Json::JsonView jsonValue)
DeltaTime & WithTimeExpression(TimeExpressionT &&value)
Definition DeltaTime.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue