/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace OpenSearchService { namespace Model { /** *

Options for configuring Auto-Tune. For more information, see Auto-Tune * for Amazon OpenSearch Service

See Also:

AWS * API Reference

*/ class AutoTuneOptionsInput { public: AWS_OPENSEARCHSERVICE_API AutoTuneOptionsInput(); AWS_OPENSEARCHSERVICE_API AutoTuneOptionsInput(Aws::Utils::Json::JsonView jsonValue); AWS_OPENSEARCHSERVICE_API AutoTuneOptionsInput& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 AutoTuneOptionsInput& WithDesiredState(const AutoTuneDesiredState& value) { SetDesiredState(value); return *this;} /** *

Whether Auto-Tune is enabled or disabled.

*/ inline AutoTuneOptionsInput& WithDesiredState(AutoTuneDesiredState&& value) { SetDesiredState(std::move(value)); return *this;} /** *

A list of maintenance schedules during which Auto-Tune can deploy changes. * Maintenance windows are deprecated and have been replaced with off-peak * windows.

*/ inline const Aws::Vector& GetMaintenanceSchedules() const{ return m_maintenanceSchedules; } /** *

A list of maintenance schedules during which Auto-Tune can deploy changes. * Maintenance windows are deprecated and have been replaced with off-peak * windows.

*/ inline bool MaintenanceSchedulesHasBeenSet() const { return m_maintenanceSchedulesHasBeenSet; } /** *

A list of maintenance schedules during which Auto-Tune can deploy changes. * Maintenance windows are deprecated and have been replaced with off-peak * windows.

*/ inline void SetMaintenanceSchedules(const Aws::Vector& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules = value; } /** *

A list of maintenance schedules during which Auto-Tune can deploy changes. * Maintenance windows are deprecated and have been replaced with off-peak * windows.

*/ inline void SetMaintenanceSchedules(Aws::Vector&& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules = std::move(value); } /** *

A list of maintenance schedules during which Auto-Tune can deploy changes. * Maintenance windows are deprecated and have been replaced with off-peak * windows.

*/ inline AutoTuneOptionsInput& WithMaintenanceSchedules(const Aws::Vector& value) { SetMaintenanceSchedules(value); return *this;} /** *

A list of maintenance schedules during which Auto-Tune can deploy changes. * Maintenance windows are deprecated and have been replaced with off-peak * windows.

*/ inline AutoTuneOptionsInput& WithMaintenanceSchedules(Aws::Vector&& value) { SetMaintenanceSchedules(std::move(value)); return *this;} /** *

A list of maintenance schedules during which Auto-Tune can deploy changes. * Maintenance windows are deprecated and have been replaced with off-peak * windows.

*/ inline AutoTuneOptionsInput& AddMaintenanceSchedules(const AutoTuneMaintenanceSchedule& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules.push_back(value); return *this; } /** *

A list of maintenance schedules during which Auto-Tune can deploy changes. * Maintenance windows are deprecated and have been replaced with off-peak * windows.

*/ inline AutoTuneOptionsInput& AddMaintenanceSchedules(AutoTuneMaintenanceSchedule&& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules.push_back(std::move(value)); return *this; } /** *

Whether to schedule Auto-Tune optimizations that require blue/green * deployments during the domain's configured daily off-peak window.

*/ inline bool GetUseOffPeakWindow() const{ return m_useOffPeakWindow; } /** *

Whether to schedule Auto-Tune optimizations that require blue/green * deployments during the domain's configured daily off-peak window.

*/ inline bool UseOffPeakWindowHasBeenSet() const { return m_useOffPeakWindowHasBeenSet; } /** *

Whether to schedule Auto-Tune optimizations that require blue/green * deployments during the domain's configured daily off-peak window.

*/ inline void SetUseOffPeakWindow(bool value) { m_useOffPeakWindowHasBeenSet = true; m_useOffPeakWindow = value; } /** *

Whether to schedule Auto-Tune optimizations that require blue/green * deployments during the domain's configured daily off-peak window.

*/ inline AutoTuneOptionsInput& WithUseOffPeakWindow(bool value) { SetUseOffPeakWindow(value); return *this;} private: AutoTuneDesiredState m_desiredState; bool m_desiredStateHasBeenSet = false; Aws::Vector m_maintenanceSchedules; bool m_maintenanceSchedulesHasBeenSet = false; bool m_useOffPeakWindow; bool m_useOffPeakWindowHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws