AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
AutoTuneMaintenanceSchedule.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/es/ElasticsearchService_EXPORTS.h>
10#include <aws/es/model/Duration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ElasticsearchService {
22namespace Model {
23
33 public:
34 AWS_ELASTICSEARCHSERVICE_API AutoTuneMaintenanceSchedule() = default;
35 AWS_ELASTICSEARCHSERVICE_API AutoTuneMaintenanceSchedule(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ELASTICSEARCHSERVICE_API AutoTuneMaintenanceSchedule& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Utils::DateTime& GetStartAt() const { return m_startAt; }
44 inline bool StartAtHasBeenSet() const { return m_startAtHasBeenSet; }
45 template <typename StartAtT = Aws::Utils::DateTime>
46 void SetStartAt(StartAtT&& value) {
47 m_startAtHasBeenSet = true;
48 m_startAt = std::forward<StartAtT>(value);
49 }
50 template <typename StartAtT = Aws::Utils::DateTime>
52 SetStartAt(std::forward<StartAtT>(value));
53 return *this;
54 }
56
58
64 inline const Duration& GetDuration() const { return m_duration; }
65 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
66 template <typename DurationT = Duration>
67 void SetDuration(DurationT&& value) {
68 m_durationHasBeenSet = true;
69 m_duration = std::forward<DurationT>(value);
70 }
71 template <typename DurationT = Duration>
73 SetDuration(std::forward<DurationT>(value));
74 return *this;
75 }
77
79
84 inline const Aws::String& GetCronExpressionForRecurrence() const { return m_cronExpressionForRecurrence; }
85 inline bool CronExpressionForRecurrenceHasBeenSet() const { return m_cronExpressionForRecurrenceHasBeenSet; }
86 template <typename CronExpressionForRecurrenceT = Aws::String>
87 void SetCronExpressionForRecurrence(CronExpressionForRecurrenceT&& value) {
88 m_cronExpressionForRecurrenceHasBeenSet = true;
89 m_cronExpressionForRecurrence = std::forward<CronExpressionForRecurrenceT>(value);
90 }
91 template <typename CronExpressionForRecurrenceT = Aws::String>
92 AutoTuneMaintenanceSchedule& WithCronExpressionForRecurrence(CronExpressionForRecurrenceT&& value) {
93 SetCronExpressionForRecurrence(std::forward<CronExpressionForRecurrenceT>(value));
94 return *this;
95 }
97 private:
98 Aws::Utils::DateTime m_startAt{};
99
100 Duration m_duration;
101
102 Aws::String m_cronExpressionForRecurrence;
103 bool m_startAtHasBeenSet = false;
104 bool m_durationHasBeenSet = false;
105 bool m_cronExpressionForRecurrenceHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace ElasticsearchService
110} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API AutoTuneMaintenanceSchedule()=default
AutoTuneMaintenanceSchedule & WithCronExpressionForRecurrence(CronExpressionForRecurrenceT &&value)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELASTICSEARCHSERVICE_API AutoTuneMaintenanceSchedule & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoTuneMaintenanceSchedule & WithDuration(DurationT &&value)
void SetCronExpressionForRecurrence(CronExpressionForRecurrenceT &&value)
AWS_ELASTICSEARCHSERVICE_API AutoTuneMaintenanceSchedule(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue