AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SchedulingConfig.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/JobEndBehavior.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iot/model/MaintenanceWindow.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoT
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_IOT_API SchedulingConfig();
44
45
47
57 inline const Aws::String& GetStartTime() const{ return m_startTime; }
58 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
59 inline void SetStartTime(const Aws::String& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
60 inline void SetStartTime(Aws::String&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
61 inline void SetStartTime(const char* value) { m_startTimeHasBeenSet = true; m_startTime.assign(value); }
62 inline SchedulingConfig& WithStartTime(const Aws::String& value) { SetStartTime(value); return *this;}
63 inline SchedulingConfig& WithStartTime(Aws::String&& value) { SetStartTime(std::move(value)); return *this;}
64 inline SchedulingConfig& WithStartTime(const char* value) { SetStartTime(value); return *this;}
66
68
80 inline const Aws::String& GetEndTime() const{ return m_endTime; }
81 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
82 inline void SetEndTime(const Aws::String& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
83 inline void SetEndTime(Aws::String&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
84 inline void SetEndTime(const char* value) { m_endTimeHasBeenSet = true; m_endTime.assign(value); }
85 inline SchedulingConfig& WithEndTime(const Aws::String& value) { SetEndTime(value); return *this;}
86 inline SchedulingConfig& WithEndTime(Aws::String&& value) { SetEndTime(std::move(value)); return *this;}
87 inline SchedulingConfig& WithEndTime(const char* value) { SetEndTime(value); return *this;}
89
91
96 inline const JobEndBehavior& GetEndBehavior() const{ return m_endBehavior; }
97 inline bool EndBehaviorHasBeenSet() const { return m_endBehaviorHasBeenSet; }
98 inline void SetEndBehavior(const JobEndBehavior& value) { m_endBehaviorHasBeenSet = true; m_endBehavior = value; }
99 inline void SetEndBehavior(JobEndBehavior&& value) { m_endBehaviorHasBeenSet = true; m_endBehavior = std::move(value); }
100 inline SchedulingConfig& WithEndBehavior(const JobEndBehavior& value) { SetEndBehavior(value); return *this;}
101 inline SchedulingConfig& WithEndBehavior(JobEndBehavior&& value) { SetEndBehavior(std::move(value)); return *this;}
103
105
110 inline const Aws::Vector<MaintenanceWindow>& GetMaintenanceWindows() const{ return m_maintenanceWindows; }
111 inline bool MaintenanceWindowsHasBeenSet() const { return m_maintenanceWindowsHasBeenSet; }
112 inline void SetMaintenanceWindows(const Aws::Vector<MaintenanceWindow>& value) { m_maintenanceWindowsHasBeenSet = true; m_maintenanceWindows = value; }
113 inline void SetMaintenanceWindows(Aws::Vector<MaintenanceWindow>&& value) { m_maintenanceWindowsHasBeenSet = true; m_maintenanceWindows = std::move(value); }
116 inline SchedulingConfig& AddMaintenanceWindows(const MaintenanceWindow& value) { m_maintenanceWindowsHasBeenSet = true; m_maintenanceWindows.push_back(value); return *this; }
117 inline SchedulingConfig& AddMaintenanceWindows(MaintenanceWindow&& value) { m_maintenanceWindowsHasBeenSet = true; m_maintenanceWindows.push_back(std::move(value)); return *this; }
119 private:
120
121 Aws::String m_startTime;
122 bool m_startTimeHasBeenSet = false;
123
124 Aws::String m_endTime;
125 bool m_endTimeHasBeenSet = false;
126
127 JobEndBehavior m_endBehavior;
128 bool m_endBehaviorHasBeenSet = false;
129
130 Aws::Vector<MaintenanceWindow> m_maintenanceWindows;
131 bool m_maintenanceWindowsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace IoT
136} // namespace Aws
void SetStartTime(const Aws::String &value)
SchedulingConfig & WithEndTime(const char *value)
SchedulingConfig & WithEndTime(Aws::String &&value)
void SetStartTime(Aws::String &&value)
void SetEndTime(Aws::String &&value)
SchedulingConfig & WithEndBehavior(JobEndBehavior &&value)
SchedulingConfig & WithMaintenanceWindows(Aws::Vector< MaintenanceWindow > &&value)
SchedulingConfig & WithMaintenanceWindows(const Aws::Vector< MaintenanceWindow > &value)
SchedulingConfig & WithStartTime(const Aws::String &value)
AWS_IOT_API SchedulingConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
SchedulingConfig & WithStartTime(Aws::String &&value)
const Aws::String & GetEndTime() const
void SetEndTime(const Aws::String &value)
void SetStartTime(const char *value)
void SetMaintenanceWindows(Aws::Vector< MaintenanceWindow > &&value)
SchedulingConfig & WithStartTime(const char *value)
const Aws::Vector< MaintenanceWindow > & GetMaintenanceWindows() const
void SetMaintenanceWindows(const Aws::Vector< MaintenanceWindow > &value)
SchedulingConfig & WithEndTime(const Aws::String &value)
const Aws::String & GetStartTime() const
AWS_IOT_API SchedulingConfig(Aws::Utils::Json::JsonView jsonValue)
void SetEndBehavior(const JobEndBehavior &value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const JobEndBehavior & GetEndBehavior() const
void SetEndTime(const char *value)
SchedulingConfig & WithEndBehavior(const JobEndBehavior &value)
SchedulingConfig & AddMaintenanceWindows(MaintenanceWindow &&value)
void SetEndBehavior(JobEndBehavior &&value)
SchedulingConfig & AddMaintenanceWindows(const MaintenanceWindow &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue