AWS SDK for C++  1.9.97
AWS SDK for C++
AutoTuneMaintenanceSchedule.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace ElasticsearchService
24 {
25 namespace Model
26 {
27 
37  {
38  public:
43 
44 
48  inline const Aws::Utils::DateTime& GetStartAt() const{ return m_startAt; }
49 
53  inline bool StartAtHasBeenSet() const { return m_startAtHasBeenSet; }
54 
58  inline void SetStartAt(const Aws::Utils::DateTime& value) { m_startAtHasBeenSet = true; m_startAt = value; }
59 
63  inline void SetStartAt(Aws::Utils::DateTime&& value) { m_startAtHasBeenSet = true; m_startAt = std::move(value); }
64 
68  inline AutoTuneMaintenanceSchedule& WithStartAt(const Aws::Utils::DateTime& value) { SetStartAt(value); return *this;}
69 
73  inline AutoTuneMaintenanceSchedule& WithStartAt(Aws::Utils::DateTime&& value) { SetStartAt(std::move(value)); return *this;}
74 
75 
82  inline const Duration& GetDuration() const{ return m_duration; }
83 
90  inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
91 
98  inline void SetDuration(const Duration& value) { m_durationHasBeenSet = true; m_duration = value; }
99 
106  inline void SetDuration(Duration&& value) { m_durationHasBeenSet = true; m_duration = std::move(value); }
107 
114  inline AutoTuneMaintenanceSchedule& WithDuration(const Duration& value) { SetDuration(value); return *this;}
115 
122  inline AutoTuneMaintenanceSchedule& WithDuration(Duration&& value) { SetDuration(std::move(value)); return *this;}
123 
124 
130  inline const Aws::String& GetCronExpressionForRecurrence() const{ return m_cronExpressionForRecurrence; }
131 
137  inline bool CronExpressionForRecurrenceHasBeenSet() const { return m_cronExpressionForRecurrenceHasBeenSet; }
138 
144  inline void SetCronExpressionForRecurrence(const Aws::String& value) { m_cronExpressionForRecurrenceHasBeenSet = true; m_cronExpressionForRecurrence = value; }
145 
151  inline void SetCronExpressionForRecurrence(Aws::String&& value) { m_cronExpressionForRecurrenceHasBeenSet = true; m_cronExpressionForRecurrence = std::move(value); }
152 
158  inline void SetCronExpressionForRecurrence(const char* value) { m_cronExpressionForRecurrenceHasBeenSet = true; m_cronExpressionForRecurrence.assign(value); }
159 
165  inline AutoTuneMaintenanceSchedule& WithCronExpressionForRecurrence(const Aws::String& value) { SetCronExpressionForRecurrence(value); return *this;}
166 
172  inline AutoTuneMaintenanceSchedule& WithCronExpressionForRecurrence(Aws::String&& value) { SetCronExpressionForRecurrence(std::move(value)); return *this;}
173 
179  inline AutoTuneMaintenanceSchedule& WithCronExpressionForRecurrence(const char* value) { SetCronExpressionForRecurrence(value); return *this;}
180 
181  private:
182 
183  Aws::Utils::DateTime m_startAt;
184  bool m_startAtHasBeenSet;
185 
186  Duration m_duration;
187  bool m_durationHasBeenSet;
188 
189  Aws::String m_cronExpressionForRecurrence;
190  bool m_cronExpressionForRecurrenceHasBeenSet;
191  };
192 
193 } // namespace Model
194 } // namespace ElasticsearchService
195 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::WithDuration
AutoTuneMaintenanceSchedule & WithDuration(Duration &&value)
Definition: AutoTuneMaintenanceSchedule.h:122
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
DateTime.h
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::SetStartAt
void SetStartAt(Aws::Utils::DateTime &&value)
Definition: AutoTuneMaintenanceSchedule.h:63
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::SetStartAt
void SetStartAt(const Aws::Utils::DateTime &value)
Definition: AutoTuneMaintenanceSchedule.h:58
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::SetCronExpressionForRecurrence
void SetCronExpressionForRecurrence(const char *value)
Definition: AutoTuneMaintenanceSchedule.h:158
Aws::ElasticsearchService::Model::Duration
Definition: Duration.h:36
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::GetDuration
const Duration & GetDuration() const
Definition: AutoTuneMaintenanceSchedule.h:82
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::StartAtHasBeenSet
bool StartAtHasBeenSet() const
Definition: AutoTuneMaintenanceSchedule.h:53
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::CronExpressionForRecurrenceHasBeenSet
bool CronExpressionForRecurrenceHasBeenSet() const
Definition: AutoTuneMaintenanceSchedule.h:137
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::operator=
AutoTuneMaintenanceSchedule & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::AutoTuneMaintenanceSchedule
AutoTuneMaintenanceSchedule()
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::SetCronExpressionForRecurrence
void SetCronExpressionForRecurrence(Aws::String &&value)
Definition: AutoTuneMaintenanceSchedule.h:151
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::SetDuration
void SetDuration(Duration &&value)
Definition: AutoTuneMaintenanceSchedule.h:106
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule
Definition: AutoTuneMaintenanceSchedule.h:37
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::WithCronExpressionForRecurrence
AutoTuneMaintenanceSchedule & WithCronExpressionForRecurrence(Aws::String &&value)
Definition: AutoTuneMaintenanceSchedule.h:172
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::SetCronExpressionForRecurrence
void SetCronExpressionForRecurrence(const Aws::String &value)
Definition: AutoTuneMaintenanceSchedule.h:144
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::AutoTuneMaintenanceSchedule
AutoTuneMaintenanceSchedule(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::GetStartAt
const Aws::Utils::DateTime & GetStartAt() const
Definition: AutoTuneMaintenanceSchedule.h:48
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::WithStartAt
AutoTuneMaintenanceSchedule & WithStartAt(Aws::Utils::DateTime &&value)
Definition: AutoTuneMaintenanceSchedule.h:73
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::WithDuration
AutoTuneMaintenanceSchedule & WithDuration(const Duration &value)
Definition: AutoTuneMaintenanceSchedule.h:114
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::WithCronExpressionForRecurrence
AutoTuneMaintenanceSchedule & WithCronExpressionForRecurrence(const Aws::String &value)
Definition: AutoTuneMaintenanceSchedule.h:165
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::SetDuration
void SetDuration(const Duration &value)
Definition: AutoTuneMaintenanceSchedule.h:98
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::WithCronExpressionForRecurrence
AutoTuneMaintenanceSchedule & WithCronExpressionForRecurrence(const char *value)
Definition: AutoTuneMaintenanceSchedule.h:179
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::DurationHasBeenSet
bool DurationHasBeenSet() const
Definition: AutoTuneMaintenanceSchedule.h:90
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::WithStartAt
AutoTuneMaintenanceSchedule & WithStartAt(const Aws::Utils::DateTime &value)
Definition: AutoTuneMaintenanceSchedule.h:68
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule::GetCronExpressionForRecurrence
const Aws::String & GetCronExpressionForRecurrence() const
Definition: AutoTuneMaintenanceSchedule.h:130
Duration.h