AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/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 OpenSearchService {
22namespace Model {
23
38 public:
39 AWS_OPENSEARCHSERVICE_API AutoTuneMaintenanceSchedule() = default;
40 AWS_OPENSEARCHSERVICE_API AutoTuneMaintenanceSchedule(Aws::Utils::Json::JsonView jsonValue);
42 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::Utils::DateTime& GetStartAt() const { return m_startAt; }
49 inline bool StartAtHasBeenSet() const { return m_startAtHasBeenSet; }
50 template <typename StartAtT = Aws::Utils::DateTime>
51 void SetStartAt(StartAtT&& value) {
52 m_startAtHasBeenSet = true;
53 m_startAt = std::forward<StartAtT>(value);
54 }
55 template <typename StartAtT = Aws::Utils::DateTime>
57 SetStartAt(std::forward<StartAtT>(value));
58 return *this;
59 }
61
63
67 inline const Duration& GetDuration() const { return m_duration; }
68 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
69 template <typename DurationT = Duration>
70 void SetDuration(DurationT&& value) {
71 m_durationHasBeenSet = true;
72 m_duration = std::forward<DurationT>(value);
73 }
74 template <typename DurationT = Duration>
76 SetDuration(std::forward<DurationT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::String& GetCronExpressionForRecurrence() const { return m_cronExpressionForRecurrence; }
87 inline bool CronExpressionForRecurrenceHasBeenSet() const { return m_cronExpressionForRecurrenceHasBeenSet; }
88 template <typename CronExpressionForRecurrenceT = Aws::String>
89 void SetCronExpressionForRecurrence(CronExpressionForRecurrenceT&& value) {
90 m_cronExpressionForRecurrenceHasBeenSet = true;
91 m_cronExpressionForRecurrence = std::forward<CronExpressionForRecurrenceT>(value);
92 }
93 template <typename CronExpressionForRecurrenceT = Aws::String>
94 AutoTuneMaintenanceSchedule& WithCronExpressionForRecurrence(CronExpressionForRecurrenceT&& value) {
95 SetCronExpressionForRecurrence(std::forward<CronExpressionForRecurrenceT>(value));
96 return *this;
97 }
99 private:
100 Aws::Utils::DateTime m_startAt{};
101
102 Duration m_duration;
103
104 Aws::String m_cronExpressionForRecurrence;
105 bool m_startAtHasBeenSet = false;
106 bool m_durationHasBeenSet = false;
107 bool m_cronExpressionForRecurrenceHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace OpenSearchService
112} // namespace Aws
AWS_OPENSEARCHSERVICE_API AutoTuneMaintenanceSchedule & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoTuneMaintenanceSchedule & WithCronExpressionForRecurrence(CronExpressionForRecurrenceT &&value)
AWS_OPENSEARCHSERVICE_API AutoTuneMaintenanceSchedule(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API AutoTuneMaintenanceSchedule()=default
AutoTuneMaintenanceSchedule & WithStartAt(StartAtT &&value)
AutoTuneMaintenanceSchedule & WithDuration(DurationT &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCronExpressionForRecurrence(CronExpressionForRecurrenceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue