AWS SDK for C++  1.9.97
AWS SDK for C++
AutoTuneOptions.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace ElasticsearchService
25 {
26 namespace Model
27 {
28 
37  {
38  public:
43 
44 
49  inline const AutoTuneDesiredState& GetDesiredState() const{ return m_desiredState; }
50 
55  inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; }
56 
61  inline void SetDesiredState(const AutoTuneDesiredState& value) { m_desiredStateHasBeenSet = true; m_desiredState = value; }
62 
67  inline void SetDesiredState(AutoTuneDesiredState&& value) { m_desiredStateHasBeenSet = true; m_desiredState = std::move(value); }
68 
73  inline AutoTuneOptions& WithDesiredState(const AutoTuneDesiredState& value) { SetDesiredState(value); return *this;}
74 
79  inline AutoTuneOptions& WithDesiredState(AutoTuneDesiredState&& value) { SetDesiredState(std::move(value)); return *this;}
80 
81 
86  inline const RollbackOnDisable& GetRollbackOnDisable() const{ return m_rollbackOnDisable; }
87 
92  inline bool RollbackOnDisableHasBeenSet() const { return m_rollbackOnDisableHasBeenSet; }
93 
98  inline void SetRollbackOnDisable(const RollbackOnDisable& value) { m_rollbackOnDisableHasBeenSet = true; m_rollbackOnDisable = value; }
99 
104  inline void SetRollbackOnDisable(RollbackOnDisable&& value) { m_rollbackOnDisableHasBeenSet = true; m_rollbackOnDisable = std::move(value); }
105 
110  inline AutoTuneOptions& WithRollbackOnDisable(const RollbackOnDisable& value) { SetRollbackOnDisable(value); return *this;}
111 
116  inline AutoTuneOptions& WithRollbackOnDisable(RollbackOnDisable&& value) { SetRollbackOnDisable(std::move(value)); return *this;}
117 
118 
124  inline const Aws::Vector<AutoTuneMaintenanceSchedule>& GetMaintenanceSchedules() const{ return m_maintenanceSchedules; }
125 
131  inline bool MaintenanceSchedulesHasBeenSet() const { return m_maintenanceSchedulesHasBeenSet; }
132 
138  inline void SetMaintenanceSchedules(const Aws::Vector<AutoTuneMaintenanceSchedule>& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules = value; }
139 
145  inline void SetMaintenanceSchedules(Aws::Vector<AutoTuneMaintenanceSchedule>&& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules = std::move(value); }
146 
152  inline AutoTuneOptions& WithMaintenanceSchedules(const Aws::Vector<AutoTuneMaintenanceSchedule>& value) { SetMaintenanceSchedules(value); return *this;}
153 
159  inline AutoTuneOptions& WithMaintenanceSchedules(Aws::Vector<AutoTuneMaintenanceSchedule>&& value) { SetMaintenanceSchedules(std::move(value)); return *this;}
160 
166  inline AutoTuneOptions& AddMaintenanceSchedules(const AutoTuneMaintenanceSchedule& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules.push_back(value); return *this; }
167 
173  inline AutoTuneOptions& AddMaintenanceSchedules(AutoTuneMaintenanceSchedule&& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules.push_back(std::move(value)); return *this; }
174 
175  private:
176 
177  AutoTuneDesiredState m_desiredState;
178  bool m_desiredStateHasBeenSet;
179 
180  RollbackOnDisable m_rollbackOnDisable;
181  bool m_rollbackOnDisableHasBeenSet;
182 
183  Aws::Vector<AutoTuneMaintenanceSchedule> m_maintenanceSchedules;
184  bool m_maintenanceSchedulesHasBeenSet;
185  };
186 
187 } // namespace Model
188 } // namespace ElasticsearchService
189 } // namespace Aws
Aws::ElasticsearchService::Model::AutoTuneOptions::SetMaintenanceSchedules
void SetMaintenanceSchedules(const Aws::Vector< AutoTuneMaintenanceSchedule > &value)
Definition: AutoTuneOptions.h:138
Aws::ElasticsearchService::Model::AutoTuneOptions::WithDesiredState
AutoTuneOptions & WithDesiredState(AutoTuneDesiredState &&value)
Definition: AutoTuneOptions.h:79
Aws::ElasticsearchService::Model::AutoTuneOptions::DesiredStateHasBeenSet
bool DesiredStateHasBeenSet() const
Definition: AutoTuneOptions.h:55
Aws::ElasticsearchService::Model::AutoTuneOptions::WithRollbackOnDisable
AutoTuneOptions & WithRollbackOnDisable(const RollbackOnDisable &value)
Definition: AutoTuneOptions.h:110
Aws::ElasticsearchService::Model::AutoTuneOptions::SetDesiredState
void SetDesiredState(AutoTuneDesiredState &&value)
Definition: AutoTuneOptions.h:67
Aws::ElasticsearchService::Model::AutoTuneOptions::WithDesiredState
AutoTuneOptions & WithDesiredState(const AutoTuneDesiredState &value)
Definition: AutoTuneOptions.h:73
Aws::ElasticsearchService::Model::AutoTuneOptions::SetMaintenanceSchedules
void SetMaintenanceSchedules(Aws::Vector< AutoTuneMaintenanceSchedule > &&value)
Definition: AutoTuneOptions.h:145
AutoTuneDesiredState.h
Aws::ElasticsearchService::Model::AutoTuneOptions::AutoTuneOptions
AutoTuneOptions(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::AutoTuneOptions::GetMaintenanceSchedules
const Aws::Vector< AutoTuneMaintenanceSchedule > & GetMaintenanceSchedules() const
Definition: AutoTuneOptions.h:124
Aws::ElasticsearchService::Model::AutoTuneOptions
Definition: AutoTuneOptions.h:37
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::ElasticsearchService::Model::AutoTuneOptions::MaintenanceSchedulesHasBeenSet
bool MaintenanceSchedulesHasBeenSet() const
Definition: AutoTuneOptions.h:131
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::AutoTuneOptions::AddMaintenanceSchedules
AutoTuneOptions & AddMaintenanceSchedules(const AutoTuneMaintenanceSchedule &value)
Definition: AutoTuneOptions.h:166
Aws::ElasticsearchService::Model::AutoTuneOptions::RollbackOnDisableHasBeenSet
bool RollbackOnDisableHasBeenSet() const
Definition: AutoTuneOptions.h:92
Aws::ElasticsearchService::Model::AutoTuneOptions::GetRollbackOnDisable
const RollbackOnDisable & GetRollbackOnDisable() const
Definition: AutoTuneOptions.h:86
ElasticsearchService_EXPORTS.h
AutoTuneMaintenanceSchedule.h
Aws::ElasticsearchService::Model::AutoTuneOptions::WithMaintenanceSchedules
AutoTuneOptions & WithMaintenanceSchedules(Aws::Vector< AutoTuneMaintenanceSchedule > &&value)
Definition: AutoTuneOptions.h:159
Aws::ElasticsearchService::Model::AutoTuneMaintenanceSchedule
Definition: AutoTuneMaintenanceSchedule.h:37
Aws::ElasticsearchService::Model::AutoTuneOptions::SetRollbackOnDisable
void SetRollbackOnDisable(const RollbackOnDisable &value)
Definition: AutoTuneOptions.h:98
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::ElasticsearchService::Model::AutoTuneOptions::WithRollbackOnDisable
AutoTuneOptions & WithRollbackOnDisable(RollbackOnDisable &&value)
Definition: AutoTuneOptions.h:116
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::AutoTuneOptions::WithMaintenanceSchedules
AutoTuneOptions & WithMaintenanceSchedules(const Aws::Vector< AutoTuneMaintenanceSchedule > &value)
Definition: AutoTuneOptions.h:152
Aws::ElasticsearchService::Model::AutoTuneDesiredState
AutoTuneDesiredState
Definition: AutoTuneDesiredState.h:17
Aws::ElasticsearchService::Model::AutoTuneOptions::GetDesiredState
const AutoTuneDesiredState & GetDesiredState() const
Definition: AutoTuneOptions.h:49
Aws::ElasticsearchService::Model::AutoTuneOptions::operator=
AutoTuneOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::RollbackOnDisable
RollbackOnDisable
Definition: RollbackOnDisable.h:17
RollbackOnDisable.h
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::AutoTuneOptions::SetDesiredState
void SetDesiredState(const AutoTuneDesiredState &value)
Definition: AutoTuneOptions.h:61
Aws::ElasticsearchService::Model::AutoTuneOptions::SetRollbackOnDisable
void SetRollbackOnDisable(RollbackOnDisable &&value)
Definition: AutoTuneOptions.h:104
Aws::ElasticsearchService::Model::AutoTuneOptions::AutoTuneOptions
AutoTuneOptions()
Aws::ElasticsearchService::Model::AutoTuneOptions::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ElasticsearchService::Model::AutoTuneOptions::AddMaintenanceSchedules
AutoTuneOptions & AddMaintenanceSchedules(AutoTuneMaintenanceSchedule &&value)
Definition: AutoTuneOptions.h:173