AWS SDK for C++

AWS SDK for C++ Version 1.11.852

Loading...
Searching...
No Matches
ScheduleConfiguration.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
30 public:
31 AWS_CLOUDWATCH_API ScheduleConfiguration() = default;
32 AWS_CLOUDWATCH_API ScheduleConfiguration(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CLOUDWATCH_API ScheduleConfiguration& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
42 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
43 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
44 template <typename ScheduleExpressionT = Aws::String>
45 void SetScheduleExpression(ScheduleExpressionT&& value) {
46 m_scheduleExpressionHasBeenSet = true;
47 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
48 }
49 template <typename ScheduleExpressionT = Aws::String>
50 ScheduleConfiguration& WithScheduleExpression(ScheduleExpressionT&& value) {
51 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
52 return *this;
53 }
55
57
62 inline long long GetStartTimeOffset() const { return m_startTimeOffset; }
63 inline bool StartTimeOffsetHasBeenSet() const { return m_startTimeOffsetHasBeenSet; }
64 inline void SetStartTimeOffset(long long value) {
65 m_startTimeOffsetHasBeenSet = true;
66 m_startTimeOffset = value;
67 }
68 inline ScheduleConfiguration& WithStartTimeOffset(long long value) {
69 SetStartTimeOffset(value);
70 return *this;
71 }
73
75
80 inline long long GetEndTimeOffset() const { return m_endTimeOffset; }
81 inline bool EndTimeOffsetHasBeenSet() const { return m_endTimeOffsetHasBeenSet; }
82 inline void SetEndTimeOffset(long long value) {
83 m_endTimeOffsetHasBeenSet = true;
84 m_endTimeOffset = value;
85 }
86 inline ScheduleConfiguration& WithEndTimeOffset(long long value) {
87 SetEndTimeOffset(value);
88 return *this;
89 }
91 private:
92 Aws::String m_scheduleExpression;
93
94 long long m_startTimeOffset{0};
95
96 long long m_endTimeOffset{0};
97 bool m_scheduleExpressionHasBeenSet = false;
98 bool m_startTimeOffsetHasBeenSet = false;
99 bool m_endTimeOffsetHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace CloudWatch
104} // namespace Aws
ScheduleConfiguration & WithScheduleExpression(ScheduleExpressionT &&value)
ScheduleConfiguration & WithStartTimeOffset(long long value)
AWS_CLOUDWATCH_API ScheduleConfiguration & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCH_API ScheduleConfiguration()=default
AWS_CLOUDWATCH_API ScheduleConfiguration(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetScheduleExpression(ScheduleExpressionT &&value)
ScheduleConfiguration & WithEndTimeOffset(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String