AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ScheduleConfig.h
1
6#pragma once
7#include <aws/kinesisvideo/KinesisVideo_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 KinesisVideo
22{
23namespace Model
24{
25
40 {
41 public:
42 AWS_KINESISVIDEO_API ScheduleConfig() = default;
43 AWS_KINESISVIDEO_API ScheduleConfig(Aws::Utils::Json::JsonView jsonValue);
44 AWS_KINESISVIDEO_API ScheduleConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_KINESISVIDEO_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
59 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
60 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
61 template<typename ScheduleExpressionT = Aws::String>
62 void SetScheduleExpression(ScheduleExpressionT&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::forward<ScheduleExpressionT>(value); }
63 template<typename ScheduleExpressionT = Aws::String>
64 ScheduleConfig& WithScheduleExpression(ScheduleExpressionT&& value) { SetScheduleExpression(std::forward<ScheduleExpressionT>(value)); return *this;}
66
68
73 inline int GetDurationInSeconds() const { return m_durationInSeconds; }
74 inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; }
75 inline void SetDurationInSeconds(int value) { m_durationInSecondsHasBeenSet = true; m_durationInSeconds = value; }
76 inline ScheduleConfig& WithDurationInSeconds(int value) { SetDurationInSeconds(value); return *this;}
78 private:
79
80 Aws::String m_scheduleExpression;
81 bool m_scheduleExpressionHasBeenSet = false;
82
83 int m_durationInSeconds{0};
84 bool m_durationInSecondsHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace KinesisVideo
89} // namespace Aws
ScheduleConfig & WithDurationInSeconds(int value)
void SetScheduleExpression(ScheduleExpressionT &&value)
AWS_KINESISVIDEO_API ScheduleConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KINESISVIDEO_API ScheduleConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_KINESISVIDEO_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KINESISVIDEO_API ScheduleConfig()=default
const Aws::String & GetScheduleExpression() const
ScheduleConfig & WithScheduleExpression(ScheduleExpressionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue