AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Schedule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glue/Glue_EXPORTS.h>
9#include <aws/glue/model/ScheduleState.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
29class Schedule {
30 public:
31 AWS_GLUE_API Schedule() = default;
32 AWS_GLUE_API Schedule(Aws::Utils::Json::JsonView jsonValue);
35
37
43 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
44 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
45 template <typename ScheduleExpressionT = Aws::String>
46 void SetScheduleExpression(ScheduleExpressionT&& value) {
47 m_scheduleExpressionHasBeenSet = true;
48 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
49 }
50 template <typename ScheduleExpressionT = Aws::String>
51 Schedule& WithScheduleExpression(ScheduleExpressionT&& value) {
52 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
53 return *this;
54 }
56
58
61 inline ScheduleState GetState() const { return m_state; }
62 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
63 inline void SetState(ScheduleState value) {
64 m_stateHasBeenSet = true;
65 m_state = value;
66 }
68 SetState(value);
69 return *this;
70 }
72 private:
73 Aws::String m_scheduleExpression;
74
76 bool m_scheduleExpressionHasBeenSet = false;
77 bool m_stateHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace Glue
82} // namespace Aws
ScheduleState GetState() const
Definition Schedule.h:61
bool ScheduleExpressionHasBeenSet() const
Definition Schedule.h:44
void SetScheduleExpression(ScheduleExpressionT &&value)
Definition Schedule.h:46
void SetState(ScheduleState value)
Definition Schedule.h:63
AWS_GLUE_API Schedule & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetScheduleExpression() const
Definition Schedule.h:43
AWS_GLUE_API Schedule(Aws::Utils::Json::JsonView jsonValue)
bool StateHasBeenSet() const
Definition Schedule.h:62
Schedule & WithState(ScheduleState value)
Definition Schedule.h:67
AWS_GLUE_API Schedule()=default
Schedule & WithScheduleExpression(ScheduleExpressionT &&value)
Definition Schedule.h:51
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue