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/opensearch/OpenSearchService_EXPORTS.h>
8#include <aws/opensearch/model/AutoTuneDesiredState.h>
9#include <aws/opensearch/model/RollbackOnDisable.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/opensearch/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 OpenSearchService
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_OPENSEARCHSERVICE_API AutoTuneOptions();
40 AWS_OPENSEARCHSERVICE_API AutoTuneOptions(Aws::Utils::Json::JsonView jsonValue);
41 AWS_OPENSEARCHSERVICE_API AutoTuneOptions& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const AutoTuneDesiredState& GetDesiredState() const{ return m_desiredState; }
50 inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; }
51 inline void SetDesiredState(const AutoTuneDesiredState& value) { m_desiredStateHasBeenSet = true; m_desiredState = value; }
52 inline void SetDesiredState(AutoTuneDesiredState&& value) { m_desiredStateHasBeenSet = true; m_desiredState = std::move(value); }
53 inline AutoTuneOptions& WithDesiredState(const AutoTuneDesiredState& value) { SetDesiredState(value); return *this;}
54 inline AutoTuneOptions& WithDesiredState(AutoTuneDesiredState&& value) { SetDesiredState(std::move(value)); return *this;}
56
58
65 inline const RollbackOnDisable& GetRollbackOnDisable() const{ return m_rollbackOnDisable; }
66 inline bool RollbackOnDisableHasBeenSet() const { return m_rollbackOnDisableHasBeenSet; }
67 inline void SetRollbackOnDisable(const RollbackOnDisable& value) { m_rollbackOnDisableHasBeenSet = true; m_rollbackOnDisable = value; }
68 inline void SetRollbackOnDisable(RollbackOnDisable&& value) { m_rollbackOnDisableHasBeenSet = true; m_rollbackOnDisable = std::move(value); }
69 inline AutoTuneOptions& WithRollbackOnDisable(const RollbackOnDisable& value) { SetRollbackOnDisable(value); return *this;}
70 inline AutoTuneOptions& WithRollbackOnDisable(RollbackOnDisable&& value) { SetRollbackOnDisable(std::move(value)); return *this;}
72
74
80 inline const Aws::Vector<AutoTuneMaintenanceSchedule>& GetMaintenanceSchedules() const{ return m_maintenanceSchedules; }
81 inline bool MaintenanceSchedulesHasBeenSet() const { return m_maintenanceSchedulesHasBeenSet; }
82 inline void SetMaintenanceSchedules(const Aws::Vector<AutoTuneMaintenanceSchedule>& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules = value; }
83 inline void SetMaintenanceSchedules(Aws::Vector<AutoTuneMaintenanceSchedule>&& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules = std::move(value); }
86 inline AutoTuneOptions& AddMaintenanceSchedules(const AutoTuneMaintenanceSchedule& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules.push_back(value); return *this; }
87 inline AutoTuneOptions& AddMaintenanceSchedules(AutoTuneMaintenanceSchedule&& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules.push_back(std::move(value)); return *this; }
89
91
97 inline bool GetUseOffPeakWindow() const{ return m_useOffPeakWindow; }
98 inline bool UseOffPeakWindowHasBeenSet() const { return m_useOffPeakWindowHasBeenSet; }
99 inline void SetUseOffPeakWindow(bool value) { m_useOffPeakWindowHasBeenSet = true; m_useOffPeakWindow = value; }
100 inline AutoTuneOptions& WithUseOffPeakWindow(bool value) { SetUseOffPeakWindow(value); return *this;}
102 private:
103
104 AutoTuneDesiredState m_desiredState;
105 bool m_desiredStateHasBeenSet = false;
106
107 RollbackOnDisable m_rollbackOnDisable;
108 bool m_rollbackOnDisableHasBeenSet = false;
109
110 Aws::Vector<AutoTuneMaintenanceSchedule> m_maintenanceSchedules;
111 bool m_maintenanceSchedulesHasBeenSet = false;
112
113 bool m_useOffPeakWindow;
114 bool m_useOffPeakWindowHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace OpenSearchService
119} // namespace Aws
const AutoTuneDesiredState & GetDesiredState() const
AutoTuneOptions & AddMaintenanceSchedules(const AutoTuneMaintenanceSchedule &value)
AutoTuneOptions & WithMaintenanceSchedules(Aws::Vector< AutoTuneMaintenanceSchedule > &&value)
const Aws::Vector< AutoTuneMaintenanceSchedule > & GetMaintenanceSchedules() const
AWS_OPENSEARCHSERVICE_API AutoTuneOptions()
void SetRollbackOnDisable(const RollbackOnDisable &value)
void SetRollbackOnDisable(RollbackOnDisable &&value)
void SetDesiredState(AutoTuneDesiredState &&value)
void SetMaintenanceSchedules(Aws::Vector< AutoTuneMaintenanceSchedule > &&value)
AutoTuneOptions & AddMaintenanceSchedules(AutoTuneMaintenanceSchedule &&value)
AutoTuneOptions & WithDesiredState(AutoTuneDesiredState &&value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AutoTuneOptions & WithDesiredState(const AutoTuneDesiredState &value)
AutoTuneOptions & WithRollbackOnDisable(RollbackOnDisable &&value)
AutoTuneOptions & WithMaintenanceSchedules(const Aws::Vector< AutoTuneMaintenanceSchedule > &value)
void SetDesiredState(const AutoTuneDesiredState &value)
void SetMaintenanceSchedules(const Aws::Vector< AutoTuneMaintenanceSchedule > &value)
const RollbackOnDisable & GetRollbackOnDisable() const
AutoTuneOptions & WithRollbackOnDisable(const RollbackOnDisable &value)
AutoTuneOptions & WithUseOffPeakWindow(bool value)
AWS_OPENSEARCHSERVICE_API AutoTuneOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API AutoTuneOptions(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue