AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
SyncSchedule.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/SyncFrequency.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Context {
21namespace Model {
22
33 public:
34 AWS_CONTEXT_API SyncSchedule() = default;
35 AWS_CONTEXT_API SyncSchedule(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CONTEXT_API SyncSchedule& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
52 inline SyncFrequency GetFrequency() const { return m_frequency; }
53 inline bool FrequencyHasBeenSet() const { return m_frequencyHasBeenSet; }
54 inline void SetFrequency(SyncFrequency value) {
55 m_frequencyHasBeenSet = true;
56 m_frequency = value;
57 }
59 SetFrequency(value);
60 return *this;
61 }
63
65
70 inline const Aws::String& GetCronExpression() const { return m_cronExpression; }
71 inline bool CronExpressionHasBeenSet() const { return m_cronExpressionHasBeenSet; }
72 template <typename CronExpressionT = Aws::String>
73 void SetCronExpression(CronExpressionT&& value) {
74 m_cronExpressionHasBeenSet = true;
75 m_cronExpression = std::forward<CronExpressionT>(value);
76 }
77 template <typename CronExpressionT = Aws::String>
78 SyncSchedule& WithCronExpression(CronExpressionT&& value) {
79 SetCronExpression(std::forward<CronExpressionT>(value));
80 return *this;
81 }
83 private:
85
86 Aws::String m_cronExpression;
87 bool m_frequencyHasBeenSet = false;
88 bool m_cronExpressionHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace Context
93} // namespace Aws
AWS_CONTEXT_API SyncSchedule & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetCronExpression(CronExpressionT &&value)
const Aws::String & GetCronExpression() const
SyncSchedule & WithFrequency(SyncFrequency value)
SyncSchedule & WithCronExpression(CronExpressionT &&value)
AWS_CONTEXT_API SyncSchedule()=default
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
SyncFrequency GetFrequency() const
void SetFrequency(SyncFrequency value)
AWS_CONTEXT_API SyncSchedule(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String