AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutoTuneOptions.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/model/AutoTuneDesiredState.h>
9#include <aws/es/model/RollbackOnDisable.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/es/model/AutoTuneMaintenanceSchedule.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ElasticsearchService
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_ELASTICSEARCHSERVICE_API AutoTuneOptions();
40 AWS_ELASTICSEARCHSERVICE_API AutoTuneOptions(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ELASTICSEARCHSERVICE_API AutoTuneOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const AutoTuneDesiredState& GetDesiredState() const{ return m_desiredState; }
51 inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; }
52 inline void SetDesiredState(const AutoTuneDesiredState& value) { m_desiredStateHasBeenSet = true; m_desiredState = value; }
53 inline void SetDesiredState(AutoTuneDesiredState&& value) { m_desiredStateHasBeenSet = true; m_desiredState = std::move(value); }
54 inline AutoTuneOptions& WithDesiredState(const AutoTuneDesiredState& value) { SetDesiredState(value); return *this;}
55 inline AutoTuneOptions& WithDesiredState(AutoTuneDesiredState&& value) { SetDesiredState(std::move(value)); return *this;}
57
59
63 inline const RollbackOnDisable& GetRollbackOnDisable() const{ return m_rollbackOnDisable; }
64 inline bool RollbackOnDisableHasBeenSet() const { return m_rollbackOnDisableHasBeenSet; }
65 inline void SetRollbackOnDisable(const RollbackOnDisable& value) { m_rollbackOnDisableHasBeenSet = true; m_rollbackOnDisable = value; }
66 inline void SetRollbackOnDisable(RollbackOnDisable&& value) { m_rollbackOnDisableHasBeenSet = true; m_rollbackOnDisable = std::move(value); }
67 inline AutoTuneOptions& WithRollbackOnDisable(const RollbackOnDisable& value) { SetRollbackOnDisable(value); return *this;}
68 inline AutoTuneOptions& WithRollbackOnDisable(RollbackOnDisable&& value) { SetRollbackOnDisable(std::move(value)); return *this;}
70
72
77 inline const Aws::Vector<AutoTuneMaintenanceSchedule>& GetMaintenanceSchedules() const{ return m_maintenanceSchedules; }
78 inline bool MaintenanceSchedulesHasBeenSet() const { return m_maintenanceSchedulesHasBeenSet; }
79 inline void SetMaintenanceSchedules(const Aws::Vector<AutoTuneMaintenanceSchedule>& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules = value; }
80 inline void SetMaintenanceSchedules(Aws::Vector<AutoTuneMaintenanceSchedule>&& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules = std::move(value); }
83 inline AutoTuneOptions& AddMaintenanceSchedules(const AutoTuneMaintenanceSchedule& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules.push_back(value); return *this; }
84 inline AutoTuneOptions& AddMaintenanceSchedules(AutoTuneMaintenanceSchedule&& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules.push_back(std::move(value)); return *this; }
86 private:
87
88 AutoTuneDesiredState m_desiredState;
89 bool m_desiredStateHasBeenSet = false;
90
91 RollbackOnDisable m_rollbackOnDisable;
92 bool m_rollbackOnDisableHasBeenSet = false;
93
94 Aws::Vector<AutoTuneMaintenanceSchedule> m_maintenanceSchedules;
95 bool m_maintenanceSchedulesHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace ElasticsearchService
100} // namespace Aws
void SetRollbackOnDisable(const RollbackOnDisable &value)
void SetRollbackOnDisable(RollbackOnDisable &&value)
AWS_ELASTICSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AutoTuneOptions & WithRollbackOnDisable(RollbackOnDisable &&value)
void SetDesiredState(AutoTuneDesiredState &&value)
AutoTuneOptions & WithMaintenanceSchedules(const Aws::Vector< AutoTuneMaintenanceSchedule > &value)
AutoTuneOptions & WithRollbackOnDisable(const RollbackOnDisable &value)
void SetMaintenanceSchedules(Aws::Vector< AutoTuneMaintenanceSchedule > &&value)
const Aws::Vector< AutoTuneMaintenanceSchedule > & GetMaintenanceSchedules() const
AutoTuneOptions & AddMaintenanceSchedules(const AutoTuneMaintenanceSchedule &value)
AWS_ELASTICSEARCHSERVICE_API AutoTuneOptions()
AutoTuneOptions & WithMaintenanceSchedules(Aws::Vector< AutoTuneMaintenanceSchedule > &&value)
void SetMaintenanceSchedules(const Aws::Vector< AutoTuneMaintenanceSchedule > &value)
AWS_ELASTICSEARCHSERVICE_API AutoTuneOptions(Aws::Utils::Json::JsonView jsonValue)
const AutoTuneDesiredState & GetDesiredState() const
const RollbackOnDisable & GetRollbackOnDisable() const
AutoTuneOptions & AddMaintenanceSchedules(AutoTuneMaintenanceSchedule &&value)
AutoTuneOptions & WithDesiredState(const AutoTuneDesiredState &value)
AWS_ELASTICSEARCHSERVICE_API AutoTuneOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDesiredState(const AutoTuneDesiredState &value)
AutoTuneOptions & WithDesiredState(AutoTuneDesiredState &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue