AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutoTuneMaintenanceSchedule.h
1
6#pragma once
7#include <aws/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/opensearch/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 OpenSearchService
24{
25namespace Model
26{
27
42 {
43 public:
44 AWS_OPENSEARCHSERVICE_API AutoTuneMaintenanceSchedule();
45 AWS_OPENSEARCHSERVICE_API AutoTuneMaintenanceSchedule(Aws::Utils::Json::JsonView jsonValue);
47 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline const Aws::Utils::DateTime& GetStartAt() const{ return m_startAt; }
55 inline bool StartAtHasBeenSet() const { return m_startAtHasBeenSet; }
56 inline void SetStartAt(const Aws::Utils::DateTime& value) { m_startAtHasBeenSet = true; m_startAt = value; }
57 inline void SetStartAt(Aws::Utils::DateTime&& value) { m_startAtHasBeenSet = true; m_startAt = std::move(value); }
58 inline AutoTuneMaintenanceSchedule& WithStartAt(const Aws::Utils::DateTime& value) { SetStartAt(value); return *this;}
59 inline AutoTuneMaintenanceSchedule& WithStartAt(Aws::Utils::DateTime&& value) { SetStartAt(std::move(value)); return *this;}
61
63
67 inline const Duration& GetDuration() const{ return m_duration; }
68 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
69 inline void SetDuration(const Duration& value) { m_durationHasBeenSet = true; m_duration = value; }
70 inline void SetDuration(Duration&& value) { m_durationHasBeenSet = true; m_duration = std::move(value); }
71 inline AutoTuneMaintenanceSchedule& WithDuration(const Duration& value) { SetDuration(value); return *this;}
72 inline AutoTuneMaintenanceSchedule& WithDuration(Duration&& value) { SetDuration(std::move(value)); return *this;}
74
76
80 inline const Aws::String& GetCronExpressionForRecurrence() const{ return m_cronExpressionForRecurrence; }
81 inline bool CronExpressionForRecurrenceHasBeenSet() const { return m_cronExpressionForRecurrenceHasBeenSet; }
82 inline void SetCronExpressionForRecurrence(const Aws::String& value) { m_cronExpressionForRecurrenceHasBeenSet = true; m_cronExpressionForRecurrence = value; }
83 inline void SetCronExpressionForRecurrence(Aws::String&& value) { m_cronExpressionForRecurrenceHasBeenSet = true; m_cronExpressionForRecurrence = std::move(value); }
84 inline void SetCronExpressionForRecurrence(const char* value) { m_cronExpressionForRecurrenceHasBeenSet = true; m_cronExpressionForRecurrence.assign(value); }
89 private:
90
91 Aws::Utils::DateTime m_startAt;
92 bool m_startAtHasBeenSet = false;
93
94 Duration m_duration;
95 bool m_durationHasBeenSet = false;
96
97 Aws::String m_cronExpressionForRecurrence;
98 bool m_cronExpressionForRecurrenceHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace OpenSearchService
103} // namespace Aws
AutoTuneMaintenanceSchedule & WithDuration(const Duration &value)
AutoTuneMaintenanceSchedule & WithCronExpressionForRecurrence(const char *value)
AutoTuneMaintenanceSchedule & WithStartAt(const Aws::Utils::DateTime &value)
AWS_OPENSEARCHSERVICE_API AutoTuneMaintenanceSchedule & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoTuneMaintenanceSchedule & WithDuration(Duration &&value)
AWS_OPENSEARCHSERVICE_API AutoTuneMaintenanceSchedule(Aws::Utils::Json::JsonView jsonValue)
AutoTuneMaintenanceSchedule & WithStartAt(Aws::Utils::DateTime &&value)
AutoTuneMaintenanceSchedule & WithCronExpressionForRecurrence(const Aws::String &value)
AutoTuneMaintenanceSchedule & WithCronExpressionForRecurrence(Aws::String &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue