AWS SDK for C++

AWS SDK for C++ Version 1.11.910

Loading...
Searching...
No Matches
Recurrence.h
1
6#pragma once
7#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
8#include <aws/devops-agent/model/DailyRecurrence.h>
9#include <aws/devops-agent/model/MonthlyRecurrence.h>
10#include <aws/devops-agent/model/WeeklyRecurrence.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DevOpsAgent {
22namespace Model {
23
30 public:
31 AWS_DEVOPSAGENT_API Recurrence() = default;
32 AWS_DEVOPSAGENT_API Recurrence(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVOPSAGENT_API Recurrence& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const DailyRecurrence& GetDaily() const { return m_daily; }
41 inline bool DailyHasBeenSet() const { return m_dailyHasBeenSet; }
42 template <typename DailyT = DailyRecurrence>
43 void SetDaily(DailyT&& value) {
44 m_dailyHasBeenSet = true;
45 m_daily = std::forward<DailyT>(value);
46 }
47 template <typename DailyT = DailyRecurrence>
48 Recurrence& WithDaily(DailyT&& value) {
49 SetDaily(std::forward<DailyT>(value));
50 return *this;
51 }
53
55
58 inline const WeeklyRecurrence& GetWeekly() const { return m_weekly; }
59 inline bool WeeklyHasBeenSet() const { return m_weeklyHasBeenSet; }
60 template <typename WeeklyT = WeeklyRecurrence>
61 void SetWeekly(WeeklyT&& value) {
62 m_weeklyHasBeenSet = true;
63 m_weekly = std::forward<WeeklyT>(value);
64 }
65 template <typename WeeklyT = WeeklyRecurrence>
66 Recurrence& WithWeekly(WeeklyT&& value) {
67 SetWeekly(std::forward<WeeklyT>(value));
68 return *this;
69 }
71
73
76 inline const MonthlyRecurrence& GetMonthly() const { return m_monthly; }
77 inline bool MonthlyHasBeenSet() const { return m_monthlyHasBeenSet; }
78 template <typename MonthlyT = MonthlyRecurrence>
79 void SetMonthly(MonthlyT&& value) {
80 m_monthlyHasBeenSet = true;
81 m_monthly = std::forward<MonthlyT>(value);
82 }
83 template <typename MonthlyT = MonthlyRecurrence>
84 Recurrence& WithMonthly(MonthlyT&& value) {
85 SetMonthly(std::forward<MonthlyT>(value));
86 return *this;
87 }
89 private:
90 DailyRecurrence m_daily;
91
92 WeeklyRecurrence m_weekly;
93
94 MonthlyRecurrence m_monthly;
95 bool m_dailyHasBeenSet = false;
96 bool m_weeklyHasBeenSet = false;
97 bool m_monthlyHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace DevOpsAgent
102} // namespace Aws
const WeeklyRecurrence & GetWeekly() const
Definition Recurrence.h:58
Recurrence & WithWeekly(WeeklyT &&value)
Definition Recurrence.h:66
void SetWeekly(WeeklyT &&value)
Definition Recurrence.h:61
void SetMonthly(MonthlyT &&value)
Definition Recurrence.h:79
const DailyRecurrence & GetDaily() const
Definition Recurrence.h:40
AWS_DEVOPSAGENT_API Recurrence(Aws::Utils::Json::JsonView jsonValue)
const MonthlyRecurrence & GetMonthly() const
Definition Recurrence.h:76
AWS_DEVOPSAGENT_API Recurrence()=default
AWS_DEVOPSAGENT_API Recurrence & operator=(Aws::Utils::Json::JsonView jsonValue)
Recurrence & WithMonthly(MonthlyT &&value)
Definition Recurrence.h:84
Recurrence & WithDaily(DailyT &&value)
Definition Recurrence.h:48
void SetDaily(DailyT &&value)
Definition Recurrence.h:43
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue