AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
SyncSchedule.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/DailySchedule.h>
9#include <aws/bedrock-agent/model/MonthlySchedule.h>
10#include <aws/bedrock-agent/model/WeeklySchedule.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgent {
22namespace Model {
23
32 public:
33 AWS_BEDROCKAGENT_API SyncSchedule() = default;
36 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const DailySchedule& GetDaily() const { return m_daily; }
44 inline bool DailyHasBeenSet() const { return m_dailyHasBeenSet; }
45 template <typename DailyT = DailySchedule>
46 void SetDaily(DailyT&& value) {
47 m_dailyHasBeenSet = true;
48 m_daily = std::forward<DailyT>(value);
49 }
50 template <typename DailyT = DailySchedule>
52 SetDaily(std::forward<DailyT>(value));
53 return *this;
54 }
56
58
61 inline const WeeklySchedule& GetWeekly() const { return m_weekly; }
62 inline bool WeeklyHasBeenSet() const { return m_weeklyHasBeenSet; }
63 template <typename WeeklyT = WeeklySchedule>
64 void SetWeekly(WeeklyT&& value) {
65 m_weeklyHasBeenSet = true;
66 m_weekly = std::forward<WeeklyT>(value);
67 }
68 template <typename WeeklyT = WeeklySchedule>
70 SetWeekly(std::forward<WeeklyT>(value));
71 return *this;
72 }
74
76
79 inline const MonthlySchedule& GetMonthly() const { return m_monthly; }
80 inline bool MonthlyHasBeenSet() const { return m_monthlyHasBeenSet; }
81 template <typename MonthlyT = MonthlySchedule>
82 void SetMonthly(MonthlyT&& value) {
83 m_monthlyHasBeenSet = true;
84 m_monthly = std::forward<MonthlyT>(value);
85 }
86 template <typename MonthlyT = MonthlySchedule>
88 SetMonthly(std::forward<MonthlyT>(value));
89 return *this;
90 }
92 private:
93 DailySchedule m_daily;
94
95 WeeklySchedule m_weekly;
96
97 MonthlySchedule m_monthly;
98 bool m_dailyHasBeenSet = false;
99 bool m_weeklyHasBeenSet = false;
100 bool m_monthlyHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace BedrockAgent
105} // namespace Aws
const MonthlySchedule & GetMonthly() const
SyncSchedule & WithMonthly(MonthlyT &&value)
AWS_BEDROCKAGENT_API SyncSchedule(Aws::Utils::Json::JsonView jsonValue)
SyncSchedule & WithDaily(DailyT &&value)
AWS_BEDROCKAGENT_API SyncSchedule & operator=(Aws::Utils::Json::JsonView jsonValue)
const DailySchedule & GetDaily() const
const WeeklySchedule & GetWeekly() const
AWS_BEDROCKAGENT_API SyncSchedule()=default
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
SyncSchedule & WithWeekly(WeeklyT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue