AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
Schedule.h
1
6#pragma once
7#include <aws/compute-optimizer-automation/ComputeOptimizerAutomation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace ComputeOptimizerAutomation {
20namespace Model {
21
28class Schedule {
29 public:
30 AWS_COMPUTEOPTIMIZERAUTOMATION_API Schedule() = default;
31 AWS_COMPUTEOPTIMIZERAUTOMATION_API Schedule(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_COMPUTEOPTIMIZERAUTOMATION_API Schedule& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_COMPUTEOPTIMIZERAUTOMATION_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
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
64 inline const Aws::String& GetScheduleExpressionTimezone() const { return m_scheduleExpressionTimezone; }
65 inline bool ScheduleExpressionTimezoneHasBeenSet() const { return m_scheduleExpressionTimezoneHasBeenSet; }
66 template <typename ScheduleExpressionTimezoneT = Aws::String>
67 void SetScheduleExpressionTimezone(ScheduleExpressionTimezoneT&& value) {
68 m_scheduleExpressionTimezoneHasBeenSet = true;
69 m_scheduleExpressionTimezone = std::forward<ScheduleExpressionTimezoneT>(value);
70 }
71 template <typename ScheduleExpressionTimezoneT = Aws::String>
72 Schedule& WithScheduleExpressionTimezone(ScheduleExpressionTimezoneT&& value) {
73 SetScheduleExpressionTimezone(std::forward<ScheduleExpressionTimezoneT>(value));
74 return *this;
75 }
77
79
83 inline int64_t GetExecutionWindowInMinutes() const { return m_executionWindowInMinutes; }
84 inline bool ExecutionWindowInMinutesHasBeenSet() const { return m_executionWindowInMinutesHasBeenSet; }
85 inline void SetExecutionWindowInMinutes(int64_t value) {
86 m_executionWindowInMinutesHasBeenSet = true;
87 m_executionWindowInMinutes = value;
88 }
89 inline Schedule& WithExecutionWindowInMinutes(int64_t value) {
91 return *this;
92 }
94 private:
95 Aws::String m_scheduleExpression;
96
97 Aws::String m_scheduleExpressionTimezone;
98
99 int64_t m_executionWindowInMinutes{0};
100 bool m_scheduleExpressionHasBeenSet = false;
101 bool m_scheduleExpressionTimezoneHasBeenSet = false;
102 bool m_executionWindowInMinutesHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace ComputeOptimizerAutomation
107} // namespace Aws
AWS_COMPUTEOPTIMIZERAUTOMATION_API Schedule()=default
void SetScheduleExpression(ScheduleExpressionT &&value)
Definition Schedule.h:49
Schedule & WithScheduleExpression(ScheduleExpressionT &&value)
Definition Schedule.h:54
AWS_COMPUTEOPTIMIZERAUTOMATION_API Schedule & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPUTEOPTIMIZERAUTOMATION_API Schedule(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetScheduleExpressionTimezone() const
Definition Schedule.h:64
Schedule & WithExecutionWindowInMinutes(int64_t value)
Definition Schedule.h:89
Schedule & WithScheduleExpressionTimezone(ScheduleExpressionTimezoneT &&value)
Definition Schedule.h:72
AWS_COMPUTEOPTIMIZERAUTOMATION_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetScheduleExpression() const
Definition Schedule.h:46
void SetScheduleExpressionTimezone(ScheduleExpressionTimezoneT &&value)
Definition Schedule.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String