AWS SDK for C++

AWS SDK for C++ Version 1.11.790

Loading...
Searching...
No Matches
Schedule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/monitoring/CloudWatch_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CloudWatch {
20namespace Model {
21
30class Schedule {
31 public:
32 AWS_CLOUDWATCH_API Schedule() = default;
33 AWS_CLOUDWATCH_API Schedule(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCH_API Schedule& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
60 inline const Aws::String& GetExpression() const { return m_expression; }
61 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
62 template <typename ExpressionT = Aws::String>
63 void SetExpression(ExpressionT&& value) {
64 m_expressionHasBeenSet = true;
65 m_expression = std::forward<ExpressionT>(value);
66 }
67 template <typename ExpressionT = Aws::String>
68 Schedule& WithExpression(ExpressionT&& value) {
69 SetExpression(std::forward<ExpressionT>(value));
70 return *this;
71 }
73
75
89 inline const Aws::String& GetDuration() const { return m_duration; }
90 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
91 template <typename DurationT = Aws::String>
92 void SetDuration(DurationT&& value) {
93 m_durationHasBeenSet = true;
94 m_duration = std::forward<DurationT>(value);
95 }
96 template <typename DurationT = Aws::String>
97 Schedule& WithDuration(DurationT&& value) {
98 SetDuration(std::forward<DurationT>(value));
99 return *this;
100 }
102
104
117 inline const Aws::String& GetTimezone() const { return m_timezone; }
118 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
119 template <typename TimezoneT = Aws::String>
120 void SetTimezone(TimezoneT&& value) {
121 m_timezoneHasBeenSet = true;
122 m_timezone = std::forward<TimezoneT>(value);
123 }
124 template <typename TimezoneT = Aws::String>
125 Schedule& WithTimezone(TimezoneT&& value) {
126 SetTimezone(std::forward<TimezoneT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_expression;
132
133 Aws::String m_duration;
134
135 Aws::String m_timezone;
136 bool m_expressionHasBeenSet = false;
137 bool m_durationHasBeenSet = false;
138 bool m_timezoneHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace CloudWatch
143} // namespace Aws
void SetDuration(DurationT &&value)
Definition Schedule.h:92
void SetTimezone(TimezoneT &&value)
Definition Schedule.h:120
AWS_CLOUDWATCH_API Schedule & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetTimezone() const
Definition Schedule.h:117
AWS_CLOUDWATCH_API Schedule(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
Schedule & WithTimezone(TimezoneT &&value)
Definition Schedule.h:125
void SetExpression(ExpressionT &&value)
Definition Schedule.h:63
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
Schedule & WithExpression(ExpressionT &&value)
Definition Schedule.h:68
Schedule & WithDuration(DurationT &&value)
Definition Schedule.h:97
AWS_CLOUDWATCH_API Schedule()=default
const Aws::String & GetDuration() const
Definition Schedule.h:89
const Aws::String & GetExpression() const
Definition Schedule.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String