AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
TaskSchedule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datasync/DataSync_EXPORTS.h>
9#include <aws/datasync/model/ScheduleStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataSync {
21namespace Model {
22
31 public:
32 AWS_DATASYNC_API TaskSchedule() = default;
33 AWS_DATASYNC_API TaskSchedule(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
50 inline const Aws::String& GetScheduleExpression() const { return m_scheduleExpression; }
51 inline bool ScheduleExpressionHasBeenSet() const { return m_scheduleExpressionHasBeenSet; }
52 template <typename ScheduleExpressionT = Aws::String>
53 void SetScheduleExpression(ScheduleExpressionT&& value) {
54 m_scheduleExpressionHasBeenSet = true;
55 m_scheduleExpression = std::forward<ScheduleExpressionT>(value);
56 }
57 template <typename ScheduleExpressionT = Aws::String>
58 TaskSchedule& WithScheduleExpression(ScheduleExpressionT&& value) {
59 SetScheduleExpression(std::forward<ScheduleExpressionT>(value));
60 return *this;
61 }
63
65
74 inline ScheduleStatus GetStatus() const { return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 inline void SetStatus(ScheduleStatus value) {
77 m_statusHasBeenSet = true;
78 m_status = value;
79 }
81 SetStatus(value);
82 return *this;
83 }
85 private:
86 Aws::String m_scheduleExpression;
87
89 bool m_scheduleExpressionHasBeenSet = false;
90 bool m_statusHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace DataSync
95} // 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