AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Schedule.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace RedshiftServerless {
21namespace Model {
22
29class Schedule {
30 public:
31 AWS_REDSHIFTSERVERLESS_API Schedule() = default;
32 AWS_REDSHIFTSERVERLESS_API Schedule(Aws::Utils::Json::JsonView jsonValue);
33 AWS_REDSHIFTSERVERLESS_API Schedule& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline const Aws::Utils::DateTime& GetAt() const { return m_at; }
44 inline bool AtHasBeenSet() const { return m_atHasBeenSet; }
45 template <typename AtT = Aws::Utils::DateTime>
46 void SetAt(AtT&& value) {
47 m_atHasBeenSet = true;
48 m_at = std::forward<AtT>(value);
49 }
50 template <typename AtT = Aws::Utils::DateTime>
51 Schedule& WithAt(AtT&& value) {
52 SetAt(std::forward<AtT>(value));
53 return *this;
54 }
56
58
67 inline const Aws::String& GetCron() const { return m_cron; }
68 inline bool CronHasBeenSet() const { return m_cronHasBeenSet; }
69 template <typename CronT = Aws::String>
70 void SetCron(CronT&& value) {
71 m_cronHasBeenSet = true;
72 m_cron = std::forward<CronT>(value);
73 }
74 template <typename CronT = Aws::String>
75 Schedule& WithCron(CronT&& value) {
76 SetCron(std::forward<CronT>(value));
77 return *this;
78 }
80 private:
82
83 Aws::String m_cron;
84 bool m_atHasBeenSet = false;
85 bool m_cronHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace RedshiftServerless
90} // namespace Aws
Schedule & WithAt(AtT &&value)
Definition Schedule.h:51
AWS_REDSHIFTSERVERLESS_API Schedule & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCron() const
Definition Schedule.h:67
AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REDSHIFTSERVERLESS_API Schedule(Aws::Utils::Json::JsonView jsonValue)
AWS_REDSHIFTSERVERLESS_API Schedule()=default
const Aws::Utils::DateTime & GetAt() const
Definition Schedule.h:43
Schedule & WithCron(CronT &&value)
Definition Schedule.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue