AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetScheduleExpression(const Aws::String& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = value; }
59 inline void SetScheduleExpression(Aws::String&& value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression = std::move(value); }
60 inline void SetScheduleExpression(const char* value) { m_scheduleExpressionHasBeenSet = true; m_scheduleExpression.assign(value); }
61 inline TaskSchedule& WithScheduleExpression(const Aws::String& value) { SetScheduleExpression(value); return *this;}
62 inline TaskSchedule& WithScheduleExpression(Aws::String&& value) { SetScheduleExpression(std::move(value)); return *this;}
63 inline TaskSchedule& WithScheduleExpression(const char* value) { SetScheduleExpression(value); return *this;}
65
67
76 inline const ScheduleStatus& GetStatus() const{ return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(const ScheduleStatus& value) { m_statusHasBeenSet = true; m_status = value; }
79 inline void SetStatus(ScheduleStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
80 inline TaskSchedule& WithStatus(const ScheduleStatus& value) { SetStatus(value); return *this;}
81 inline TaskSchedule& WithStatus(ScheduleStatus&& value) { SetStatus(std::move(value)); return *this;}
83 private:
84
85 Aws::String m_scheduleExpression;
86 bool m_scheduleExpressionHasBeenSet = false;
87
88 ScheduleStatus m_status;
89 bool m_statusHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace DataSync
94} // namespace Aws
const ScheduleStatus & GetStatus() const
TaskSchedule & WithScheduleExpression(Aws::String &&value)
TaskSchedule & WithStatus(ScheduleStatus &&value)
TaskSchedule & WithScheduleExpression(const char *value)
AWS_DATASYNC_API TaskSchedule(Aws::Utils::Json::JsonView jsonValue)
TaskSchedule & WithStatus(const ScheduleStatus &value)
void SetStatus(ScheduleStatus &&value)
AWS_DATASYNC_API TaskSchedule & operator=(Aws::Utils::Json::JsonView jsonValue)
TaskSchedule & WithScheduleExpression(const Aws::String &value)
const Aws::String & GetScheduleExpression() const
void SetScheduleExpression(Aws::String &&value)
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(const ScheduleStatus &value)
void SetScheduleExpression(const Aws::String &value)
void SetScheduleExpression(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue