AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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
45 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
46 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
47 template <typename ScheduleExpressionT = Aws::String>
48 void SetScheduleExpression(ScheduleExpressionT&& value) {
49 m_scheduleExpressionHasBeenSet = true;
50 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
51 }
52 template <typename ScheduleExpressionT = Aws::String>
53 Schedule& WithScheduleExpression(ScheduleExpressionT&& value) {
54 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
55 return *this;
56 }
58
60
66 inline const Aws::String& GetTimezone() const { return m_timezone; }
67 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
68 template <typename TimezoneT = Aws::String>
69 void SetTimezone(TimezoneT&& value) {
70 m_timezoneHasBeenSet = true;
71 m_timezone = std::forward<TimezoneT>(value);
72 }
73 template <typename TimezoneT = Aws::String>
74 Schedule& WithTimezone(TimezoneT&& value) {
75 SetTimezone(std::forward<TimezoneT>(value));
76 return *this;
77 }
79
81
95 inline PipelineExecutionStartCondition GetPipelineExecutionStartCondition() const { return m_pipelineExecutionStartCondition; }
96 inline bool PipelineExecutionStartConditionHasBeenSet() const { return m_pipelineExecutionStartConditionHasBeenSet; }
98 m_pipelineExecutionStartConditionHasBeenSet = true;
99 m_pipelineExecutionStartCondition = value;
100 }
103 return *this;
104 }
106
108
112 inline const AutoDisablePolicy& GetAutoDisablePolicy() const { return m_autoDisablePolicy; }
113 inline bool AutoDisablePolicyHasBeenSet() const { return m_autoDisablePolicyHasBeenSet; }
114 template <typename AutoDisablePolicyT = AutoDisablePolicy>
115 void SetAutoDisablePolicy(AutoDisablePolicyT&& value) {
116 m_autoDisablePolicyHasBeenSet = true;
117 m_autoDisablePolicy = std::forward<AutoDisablePolicyT>(value);
118 }
119 template <typename AutoDisablePolicyT = AutoDisablePolicy>
120 Schedule& WithAutoDisablePolicy(AutoDisablePolicyT&& value) {
121 SetAutoDisablePolicy(std::forward<AutoDisablePolicyT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_scheduleExpression;
127
128 Aws::String m_timezone;
129
131
132 AutoDisablePolicy m_autoDisablePolicy;
133 bool m_scheduleExpressionHasBeenSet = false;
134 bool m_timezoneHasBeenSet = false;
135 bool m_pipelineExecutionStartConditionHasBeenSet = false;
136 bool m_autoDisablePolicyHasBeenSet = false;
137};
138
139} // namespace Model
140} // namespace imagebuilder
141} // namespace Aws
const AutoDisablePolicy & GetAutoDisablePolicy() const
Definition Schedule.h:112
void SetTimezone(TimezoneT &&value)
Definition Schedule.h:69
PipelineExecutionStartCondition GetPipelineExecutionStartCondition() const
Definition Schedule.h:95
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
Schedule & WithScheduleExpression(ScheduleExpressionT &&value)
Definition Schedule.h:53
bool PipelineExecutionStartConditionHasBeenSet() const
Definition Schedule.h:96
const Aws::String & GetTimezone() const
Definition Schedule.h:66
bool ScheduleExpressionHasBeenSet() const
Definition Schedule.h:46
Schedule & WithAutoDisablePolicy(AutoDisablePolicyT &&value)
Definition Schedule.h:120
Schedule & WithTimezone(TimezoneT &&value)
Definition Schedule.h:74
AWS_IMAGEBUILDER_API Schedule()=default
Schedule & WithPipelineExecutionStartCondition(PipelineExecutionStartCondition value)
Definition Schedule.h:101
AWS_IMAGEBUILDER_API Schedule(Aws::Utils::Json::JsonView jsonValue)
void SetPipelineExecutionStartCondition(PipelineExecutionStartCondition value)
Definition Schedule.h:97
const Aws::String & GetScheduleExpression() const
Definition Schedule.h:45
void SetScheduleExpression(ScheduleExpressionT &&value)
Definition Schedule.h:48
void SetAutoDisablePolicy(AutoDisablePolicyT &&value)
Definition Schedule.h:115
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