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/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();
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 inline void SetStartAt(const Aws::Utils::DateTime& value) { m_startAtHasBeenSet = true; m_startAt = value; }
52 inline void SetStartAt(Aws::Utils::DateTime&& value) { m_startAtHasBeenSet = true; m_startAt = std::move(value); }
53 inline AutoTuneMaintenanceSchedule& WithStartAt(const Aws::Utils::DateTime& value) { SetStartAt(value); return *this;}
54 inline AutoTuneMaintenanceSchedule& WithStartAt(Aws::Utils::DateTime&& value) { SetStartAt(std::move(value)); return *this;}
56
58
64 inline const Duration& GetDuration() const{ return m_duration; }
65 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
66 inline void SetDuration(const Duration& value) { m_durationHasBeenSet = true; m_duration = value; }
67 inline void SetDuration(Duration&& value) { m_durationHasBeenSet = true; m_duration = std::move(value); }
68 inline AutoTuneMaintenanceSchedule& WithDuration(const Duration& value) { SetDuration(value); return *this;}
69 inline AutoTuneMaintenanceSchedule& WithDuration(Duration&& value) { SetDuration(std::move(value)); return *this;}
71
73
78 inline const Aws::String& GetCronExpressionForRecurrence() const{ return m_cronExpressionForRecurrence; }
79 inline bool CronExpressionForRecurrenceHasBeenSet() const { return m_cronExpressionForRecurrenceHasBeenSet; }
80 inline void SetCronExpressionForRecurrence(const Aws::String& value) { m_cronExpressionForRecurrenceHasBeenSet = true; m_cronExpressionForRecurrence = value; }
81 inline void SetCronExpressionForRecurrence(Aws::String&& value) { m_cronExpressionForRecurrenceHasBeenSet = true; m_cronExpressionForRecurrence = std::move(value); }
82 inline void SetCronExpressionForRecurrence(const char* value) { m_cronExpressionForRecurrenceHasBeenSet = true; m_cronExpressionForRecurrence.assign(value); }
87 private:
88
89 Aws::Utils::DateTime m_startAt;
90 bool m_startAtHasBeenSet = false;
91
92 Duration m_duration;
93 bool m_durationHasBeenSet = false;
94
95 Aws::String m_cronExpressionForRecurrence;
96 bool m_cronExpressionForRecurrenceHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace ElasticsearchService
101} // namespace Aws
AutoTuneMaintenanceSchedule & WithDuration(const Duration &value)
AutoTuneMaintenanceSchedule & WithCronExpressionForRecurrence(const char *value)
AutoTuneMaintenanceSchedule & WithStartAt(Aws::Utils::DateTime &&value)
AutoTuneMaintenanceSchedule & WithStartAt(const Aws::Utils::DateTime &value)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ELASTICSEARCHSERVICE_API AutoTuneMaintenanceSchedule & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoTuneMaintenanceSchedule & WithCronExpressionForRecurrence(const Aws::String &value)
AutoTuneMaintenanceSchedule & WithCronExpressionForRecurrence(Aws::String &&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