AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Schedule.h
1
6#pragma once
7#include <aws/glue/Glue_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/model/ScheduleState.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Glue
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GLUE_API Schedule() = default;
37 AWS_GLUE_API Schedule(Aws::Utils::Json::JsonView jsonValue);
40
41
43
49 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
50 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
51 template<typename ScheduleExpressionT = Aws::String>
52 void SetScheduleExpression(ScheduleExpressionT&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::forward<ScheduleExpressionT>(value); }
53 template<typename ScheduleExpressionT = Aws::String>
54 Schedule& WithScheduleExpression(ScheduleExpressionT&& value) { SetScheduleExpression(std::forward<ScheduleExpressionT>(value)); return *this;}
56
58
61 inline ScheduleState GetState() const { return m_state; }
62 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
63 inline void SetState(ScheduleState value) { m_stateHasBeenSet = true; m_state = value; }
64 inline Schedule& WithState(ScheduleState value) { SetState(value); return *this;}
66 private:
67
68 Aws::String m_scheduleExpression;
69 bool m_scheduleExpressionHasBeenSet = false;
70
72 bool m_stateHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Glue
77} // namespace Aws
ScheduleState GetState() const
Definition Schedule.h:61
bool ScheduleExpressionHasBeenSet() const
Definition Schedule.h:50
void SetScheduleExpression(ScheduleExpressionT &&value)
Definition Schedule.h:52
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:49
AWS_GLUE_API Schedule(Aws::Utils::Json::JsonView jsonValue)
bool StateHasBeenSet() const
Definition Schedule.h:62
Schedule & WithState(ScheduleState value)
Definition Schedule.h:64
AWS_GLUE_API Schedule()=default
Schedule & WithScheduleExpression(ScheduleExpressionT &&value)
Definition Schedule.h:54
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