/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Auto-Tune settings when updating a domain. For more information, see Auto-Tune
* for Amazon OpenSearch Service.See Also:
AWS
* API Reference
Whether Auto-Tune is enabled or disabled.
*/ inline const AutoTuneDesiredState& GetDesiredState() const{ return m_desiredState; } /** *Whether Auto-Tune is enabled or disabled.
*/ inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; } /** *Whether Auto-Tune is enabled or disabled.
*/ inline void SetDesiredState(const AutoTuneDesiredState& value) { m_desiredStateHasBeenSet = true; m_desiredState = value; } /** *Whether Auto-Tune is enabled or disabled.
*/ inline void SetDesiredState(AutoTuneDesiredState&& value) { m_desiredStateHasBeenSet = true; m_desiredState = std::move(value); } /** *Whether Auto-Tune is enabled or disabled.
*/ inline AutoTuneOptions& WithDesiredState(const AutoTuneDesiredState& value) { SetDesiredState(value); return *this;} /** *Whether Auto-Tune is enabled or disabled.
*/ inline AutoTuneOptions& WithDesiredState(AutoTuneDesiredState&& value) { SetDesiredState(std::move(value)); return *this;} /** *When disabling Auto-Tune, specify NO_ROLLBACK
to retain all
* prior Auto-Tune settings or DEFAULT_ROLLBACK
to revert to the
* OpenSearch Service defaults. If you specify DEFAULT_ROLLBACK
, you
* must include a MaintenanceSchedule
in the request. Otherwise,
* OpenSearch Service is unable to perform the rollback.
When disabling Auto-Tune, specify NO_ROLLBACK
to retain all
* prior Auto-Tune settings or DEFAULT_ROLLBACK
to revert to the
* OpenSearch Service defaults. If you specify DEFAULT_ROLLBACK
, you
* must include a MaintenanceSchedule
in the request. Otherwise,
* OpenSearch Service is unable to perform the rollback.
When disabling Auto-Tune, specify NO_ROLLBACK
to retain all
* prior Auto-Tune settings or DEFAULT_ROLLBACK
to revert to the
* OpenSearch Service defaults. If you specify DEFAULT_ROLLBACK
, you
* must include a MaintenanceSchedule
in the request. Otherwise,
* OpenSearch Service is unable to perform the rollback.
When disabling Auto-Tune, specify NO_ROLLBACK
to retain all
* prior Auto-Tune settings or DEFAULT_ROLLBACK
to revert to the
* OpenSearch Service defaults. If you specify DEFAULT_ROLLBACK
, you
* must include a MaintenanceSchedule
in the request. Otherwise,
* OpenSearch Service is unable to perform the rollback.
When disabling Auto-Tune, specify NO_ROLLBACK
to retain all
* prior Auto-Tune settings or DEFAULT_ROLLBACK
to revert to the
* OpenSearch Service defaults. If you specify DEFAULT_ROLLBACK
, you
* must include a MaintenanceSchedule
in the request. Otherwise,
* OpenSearch Service is unable to perform the rollback.
When disabling Auto-Tune, specify NO_ROLLBACK
to retain all
* prior Auto-Tune settings or DEFAULT_ROLLBACK
to revert to the
* OpenSearch Service defaults. If you specify DEFAULT_ROLLBACK
, you
* must include a MaintenanceSchedule
in the request. Otherwise,
* OpenSearch Service is unable to perform the rollback.
DEPRECATED. Use off-peak * window instead.
A list of maintenance schedules during which * Auto-Tune can deploy changes.
*/ inline const Aws::VectorDEPRECATED. Use off-peak * window instead.
A list of maintenance schedules during which * Auto-Tune can deploy changes.
*/ inline bool MaintenanceSchedulesHasBeenSet() const { return m_maintenanceSchedulesHasBeenSet; } /** *DEPRECATED. Use off-peak * window instead.
A list of maintenance schedules during which * Auto-Tune can deploy changes.
*/ inline void SetMaintenanceSchedules(const Aws::VectorDEPRECATED. Use off-peak * window instead.
A list of maintenance schedules during which * Auto-Tune can deploy changes.
*/ inline void SetMaintenanceSchedules(Aws::VectorDEPRECATED. Use off-peak * window instead.
A list of maintenance schedules during which * Auto-Tune can deploy changes.
*/ inline AutoTuneOptions& WithMaintenanceSchedules(const Aws::VectorDEPRECATED. Use off-peak * window instead.
A list of maintenance schedules during which * Auto-Tune can deploy changes.
*/ inline AutoTuneOptions& WithMaintenanceSchedules(Aws::VectorDEPRECATED. Use off-peak * window instead.
A list of maintenance schedules during which * Auto-Tune can deploy changes.
*/ inline AutoTuneOptions& AddMaintenanceSchedules(const AutoTuneMaintenanceSchedule& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules.push_back(value); return *this; } /** *DEPRECATED. Use off-peak * window instead.
A list of maintenance schedules during which * Auto-Tune can deploy changes.
*/ inline AutoTuneOptions& AddMaintenanceSchedules(AutoTuneMaintenanceSchedule&& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules.push_back(std::move(value)); return *this; } /** *Whether to use the domain's off-peak * window to deploy configuration changes on the domain rather than a * maintenance schedule.
*/ inline bool GetUseOffPeakWindow() const{ return m_useOffPeakWindow; } /** *Whether to use the domain's off-peak * window to deploy configuration changes on the domain rather than a * maintenance schedule.
*/ inline bool UseOffPeakWindowHasBeenSet() const { return m_useOffPeakWindowHasBeenSet; } /** *Whether to use the domain's off-peak * window to deploy configuration changes on the domain rather than a * maintenance schedule.
*/ inline void SetUseOffPeakWindow(bool value) { m_useOffPeakWindowHasBeenSet = true; m_useOffPeakWindow = value; } /** *Whether to use the domain's off-peak * window to deploy configuration changes on the domain rather than a * maintenance schedule.
*/ inline AutoTuneOptions& WithUseOffPeakWindow(bool value) { SetUseOffPeakWindow(value); return *this;} private: AutoTuneDesiredState m_desiredState; bool m_desiredStateHasBeenSet = false; RollbackOnDisable m_rollbackOnDisable; bool m_rollbackOnDisableHasBeenSet = false; Aws::Vector