AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SetTimerAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iotevents/IoTEvents_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoTEvents {
20namespace Model {
21
28 public:
29 AWS_IOTEVENTS_API SetTimerAction() = default;
30 AWS_IOTEVENTS_API SetTimerAction(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetTimerName() const { return m_timerName; }
39 inline bool TimerNameHasBeenSet() const { return m_timerNameHasBeenSet; }
40 template <typename TimerNameT = Aws::String>
41 void SetTimerName(TimerNameT&& value) {
42 m_timerNameHasBeenSet = true;
43 m_timerName = std::forward<TimerNameT>(value);
44 }
45 template <typename TimerNameT = Aws::String>
46 SetTimerAction& WithTimerName(TimerNameT&& value) {
47 SetTimerName(std::forward<TimerNameT>(value));
48 return *this;
49 }
51
53
61 inline const Aws::String& GetDurationExpression() const { return m_durationExpression; }
62 inline bool DurationExpressionHasBeenSet() const { return m_durationExpressionHasBeenSet; }
63 template <typename DurationExpressionT = Aws::String>
64 void SetDurationExpression(DurationExpressionT&& value) {
65 m_durationExpressionHasBeenSet = true;
66 m_durationExpression = std::forward<DurationExpressionT>(value);
67 }
68 template <typename DurationExpressionT = Aws::String>
69 SetTimerAction& WithDurationExpression(DurationExpressionT&& value) {
70 SetDurationExpression(std::forward<DurationExpressionT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_timerName;
76
77 Aws::String m_durationExpression;
78 bool m_timerNameHasBeenSet = false;
79 bool m_durationExpressionHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace IoTEvents
84} // namespace Aws
const Aws::String & GetDurationExpression() const
SetTimerAction & WithDurationExpression(DurationExpressionT &&value)
const Aws::String & GetTimerName() const
AWS_IOTEVENTS_API SetTimerAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTS_API SetTimerAction(Aws::Utils::Json::JsonView jsonValue)
SetTimerAction & WithTimerName(TimerNameT &&value)
void SetDurationExpression(DurationExpressionT &&value)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimerName(TimerNameT &&value)
AWS_IOTEVENTS_API SetTimerAction()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue