AWS SDK for C++

AWS SDK for C++ Version 1.11.790

Loading...
Searching...
No Matches
Rule.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/monitoring/CloudWatch_EXPORTS.h>
9#include <aws/monitoring/model/Schedule.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 Rule {
31 public:
32 AWS_CLOUDWATCH_API Rule() = default;
33 AWS_CLOUDWATCH_API Rule(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCH_API Rule& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
42 inline const Schedule& GetSchedule() const { return m_schedule; }
43 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
44 template <typename ScheduleT = Schedule>
45 void SetSchedule(ScheduleT&& value) {
46 m_scheduleHasBeenSet = true;
47 m_schedule = std::forward<ScheduleT>(value);
48 }
49 template <typename ScheduleT = Schedule>
50 Rule& WithSchedule(ScheduleT&& value) {
51 SetSchedule(std::forward<ScheduleT>(value));
52 return *this;
53 }
55 private:
56 Schedule m_schedule;
57 bool m_scheduleHasBeenSet = false;
58};
59
60} // namespace Model
61} // namespace CloudWatch
62} // namespace Aws
Rule & WithSchedule(ScheduleT &&value)
Definition Rule.h:50
AWS_CLOUDWATCH_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
bool ScheduleHasBeenSet() const
Definition Rule.h:43
AWS_CLOUDWATCH_API Rule & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Schedule & GetSchedule() const
Definition Rule.h:42
AWS_CLOUDWATCH_API Rule()=default
AWS_CLOUDWATCH_API Rule(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetSchedule(ScheduleT &&value)
Definition Rule.h:45