AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AutoTuneMaintenanceSchedule.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/es/model/Duration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ElasticsearchService
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_ELASTICSEARCHSERVICE_API AutoTuneMaintenanceSchedule() = default;
40 AWS_ELASTICSEARCHSERVICE_API AutoTuneMaintenanceSchedule(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ELASTICSEARCHSERVICE_API AutoTuneMaintenanceSchedule& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Utils::DateTime& GetStartAt() const { return m_startAt; }
50 inline bool StartAtHasBeenSet() const { return m_startAtHasBeenSet; }
51 template<typename StartAtT = Aws::Utils::DateTime>
52 void SetStartAt(StartAtT&& value) { m_startAtHasBeenSet = true; m_startAt = std::forward<StartAtT>(value); }
53 template<typename StartAtT = Aws::Utils::DateTime>
54 AutoTuneMaintenanceSchedule& WithStartAt(StartAtT&& value) { SetStartAt(std::forward<StartAtT>(value)); return *this;}
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) { m_durationHasBeenSet = true; m_duration = std::forward<DurationT>(value); }
68 template<typename DurationT = Duration>
69 AutoTuneMaintenanceSchedule& WithDuration(DurationT&& value) { SetDuration(std::forward<DurationT>(value)); return *this;}
71
73
78 inline const Aws::String& GetCronExpressionForRecurrence() const { return m_cronExpressionForRecurrence; }
79 inline bool CronExpressionForRecurrenceHasBeenSet() const { return m_cronExpressionForRecurrenceHasBeenSet; }
80 template<typename CronExpressionForRecurrenceT = Aws::String>
81 void SetCronExpressionForRecurrence(CronExpressionForRecurrenceT&& value) { m_cronExpressionForRecurrenceHasBeenSet = true; m_cronExpressionForRecurrence = std::forward<CronExpressionForRecurrenceT>(value); }
82 template<typename CronExpressionForRecurrenceT = Aws::String>
83 AutoTuneMaintenanceSchedule& WithCronExpressionForRecurrence(CronExpressionForRecurrenceT&& value) { SetCronExpressionForRecurrence(std::forward<CronExpressionForRecurrenceT>(value)); return *this;}
85 private:
86
87 Aws::Utils::DateTime m_startAt{};
88 bool m_startAtHasBeenSet = false;
89
90 Duration m_duration;
91 bool m_durationHasBeenSet = false;
92
93 Aws::String m_cronExpressionForRecurrence;
94 bool m_cronExpressionForRecurrenceHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace ElasticsearchService
99} // 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