AWS SDK for C++

AWS SDK for C++ Version 1.11.902

Loading...
Searching...
No Matches
Schedule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
9#include <aws/imagebuilder/model/AutoDisablePolicy.h>
10#include <aws/imagebuilder/model/PipelineExecutionStartCondition.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace imagebuilder {
22namespace Model {
23
30class Schedule {
31 public:
32 AWS_IMAGEBUILDER_API Schedule() = default;
33 AWS_IMAGEBUILDER_API Schedule(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IMAGEBUILDER_API Schedule& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
46 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
47 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
48 template <typename ScheduleExpressionT = Aws::String>
49 void SetScheduleExpression(ScheduleExpressionT&& value) {
50 m_scheduleExpressionHasBeenSet = true;
51 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
52 }
53 template <typename ScheduleExpressionT = Aws::String>
54 Schedule& WithScheduleExpression(ScheduleExpressionT&& value) {
55 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
56 return *this;
57 }
59
61
67 inline const Aws::String& GetTimezone() const { return m_timezone; }
68 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
69 template <typename TimezoneT = Aws::String>
70 void SetTimezone(TimezoneT&& value) {
71 m_timezoneHasBeenSet = true;
72 m_timezone = std::forward<TimezoneT>(value);
73 }
74 template <typename TimezoneT = Aws::String>
75 Schedule& WithTimezone(TimezoneT&& value) {
76 SetTimezone(std::forward<TimezoneT>(value));
77 return *this;
78 }
80
82
98 inline PipelineExecutionStartCondition GetPipelineExecutionStartCondition() const { return m_pipelineExecutionStartCondition; }
99 inline bool PipelineExecutionStartConditionHasBeenSet() const { return m_pipelineExecutionStartConditionHasBeenSet; }
101 m_pipelineExecutionStartConditionHasBeenSet = true;
102 m_pipelineExecutionStartCondition = value;
103 }
106 return *this;
107 }
109
111
115 inline const AutoDisablePolicy& GetAutoDisablePolicy() const { return m_autoDisablePolicy; }
116 inline bool AutoDisablePolicyHasBeenSet() const { return m_autoDisablePolicyHasBeenSet; }
117 template <typename AutoDisablePolicyT = AutoDisablePolicy>
118 void SetAutoDisablePolicy(AutoDisablePolicyT&& value) {
119 m_autoDisablePolicyHasBeenSet = true;
120 m_autoDisablePolicy = std::forward<AutoDisablePolicyT>(value);
121 }
122 template <typename AutoDisablePolicyT = AutoDisablePolicy>
123 Schedule& WithAutoDisablePolicy(AutoDisablePolicyT&& value) {
124 SetAutoDisablePolicy(std::forward<AutoDisablePolicyT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_scheduleExpression;
130
131 Aws::String m_timezone;
132
134
135 AutoDisablePolicy m_autoDisablePolicy;
136 bool m_scheduleExpressionHasBeenSet = false;
137 bool m_timezoneHasBeenSet = false;
138 bool m_pipelineExecutionStartConditionHasBeenSet = false;
139 bool m_autoDisablePolicyHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace imagebuilder
144} // namespace Aws
const AutoDisablePolicy & GetAutoDisablePolicy() const
Definition Schedule.h:115
void SetTimezone(TimezoneT &&value)
Definition Schedule.h:70
PipelineExecutionStartCondition GetPipelineExecutionStartCondition() const
Definition Schedule.h:98
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
Schedule & WithScheduleExpression(ScheduleExpressionT &&value)
Definition Schedule.h:54
bool PipelineExecutionStartConditionHasBeenSet() const
Definition Schedule.h:99
const Aws::String & GetTimezone() const
Definition Schedule.h:67
bool ScheduleExpressionHasBeenSet() const
Definition Schedule.h:47
Schedule & WithAutoDisablePolicy(AutoDisablePolicyT &&value)
Definition Schedule.h:123
Schedule & WithTimezone(TimezoneT &&value)
Definition Schedule.h:75
AWS_IMAGEBUILDER_API Schedule()=default
Schedule & WithPipelineExecutionStartCondition(PipelineExecutionStartCondition value)
Definition Schedule.h:104
AWS_IMAGEBUILDER_API Schedule(Aws::Utils::Json::JsonView jsonValue)
void SetPipelineExecutionStartCondition(PipelineExecutionStartCondition value)
Definition Schedule.h:100
const Aws::String & GetScheduleExpression() const
Definition Schedule.h:46
void SetScheduleExpression(ScheduleExpressionT &&value)
Definition Schedule.h:49
void SetAutoDisablePolicy(AutoDisablePolicyT &&value)
Definition Schedule.h:118
AWS_IMAGEBUILDER_API Schedule & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue