AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TaskSchedule.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datasync/model/ScheduleStatus.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DataSync
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_DATASYNC_API TaskSchedule() = default;
38 AWS_DATASYNC_API TaskSchedule(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
56 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
57 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
58 template<typename ScheduleExpressionT = Aws::String>
59 void SetScheduleExpression(ScheduleExpressionT&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::forward<ScheduleExpressionT>(value); }
60 template<typename ScheduleExpressionT = Aws::String>
61 TaskSchedule& WithScheduleExpression(ScheduleExpressionT&& value) { SetScheduleExpression(std::forward<ScheduleExpressionT>(value)); return *this;}
63
65
74 inline ScheduleStatus GetStatus() const { return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 inline void SetStatus(ScheduleStatus value) { m_statusHasBeenSet = true; m_status = value; }
77 inline TaskSchedule& WithStatus(ScheduleStatus value) { SetStatus(value); return *this;}
79 private:
80
81 Aws::String m_scheduleExpression;
82 bool m_scheduleExpressionHasBeenSet = false;
83
85 bool m_statusHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace DataSync
90} // namespace Aws
AWS_DATASYNC_API TaskSchedule()=default
AWS_DATASYNC_API TaskSchedule(Aws::Utils::Json::JsonView jsonValue)
AWS_DATASYNC_API TaskSchedule & operator=(Aws::Utils::Json::JsonView jsonValue)
TaskSchedule & WithScheduleExpression(ScheduleExpressionT &&value)
void SetScheduleExpression(ScheduleExpressionT &&value)
ScheduleStatus GetStatus() const
const Aws::String & GetScheduleExpression() const
void SetStatus(ScheduleStatus value)
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
TaskSchedule & WithStatus(ScheduleStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue