AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
ScheduleConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kinesisvideo/KinesisVideo_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace KinesisVideo {
20namespace Model {
21
36 public:
37 AWS_KINESISVIDEO_API ScheduleConfig() = default;
38 AWS_KINESISVIDEO_API ScheduleConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_KINESISVIDEO_API ScheduleConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_KINESISVIDEO_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
53 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
54 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
55 template <typename ScheduleExpressionT = Aws::String>
56 void SetScheduleExpression(ScheduleExpressionT&& value) {
57 m_scheduleExpressionHasBeenSet = true;
58 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
59 }
60 template <typename ScheduleExpressionT = Aws::String>
61 ScheduleConfig& WithScheduleExpression(ScheduleExpressionT&& value) {
62 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
63 return *this;
64 }
66
68
73 inline int GetDurationInSeconds() const { return m_durationInSeconds; }
74 inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; }
75 inline void SetDurationInSeconds(int value) {
76 m_durationInSecondsHasBeenSet = true;
77 m_durationInSeconds = value;
78 }
81 return *this;
82 }
84 private:
85 Aws::String m_scheduleExpression;
86
87 int m_durationInSeconds{0};
88 bool m_scheduleExpressionHasBeenSet = false;
89 bool m_durationInSecondsHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace KinesisVideo
94} // 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