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

Specifies the Auto-Tune options: the Auto-Tune desired state for the domain, * rollback state when disabling Auto-Tune options and list of maintenance * schedules.

See Also:

AWS * API Reference

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

Specifies the Auto-Tune desired state. Valid values are ENABLED, DISABLED. *

*/ inline const AutoTuneDesiredState& GetDesiredState() const{ return m_desiredState; } /** *

Specifies the Auto-Tune desired state. Valid values are ENABLED, DISABLED. *

*/ inline bool DesiredStateHasBeenSet() const { return m_desiredStateHasBeenSet; } /** *

Specifies the Auto-Tune desired state. Valid values are ENABLED, DISABLED. *

*/ inline void SetDesiredState(const AutoTuneDesiredState& value) { m_desiredStateHasBeenSet = true; m_desiredState = value; } /** *

Specifies the Auto-Tune desired state. Valid values are ENABLED, DISABLED. *

*/ inline void SetDesiredState(AutoTuneDesiredState&& value) { m_desiredStateHasBeenSet = true; m_desiredState = std::move(value); } /** *

Specifies the Auto-Tune desired state. Valid values are ENABLED, DISABLED. *

*/ inline AutoTuneOptions& WithDesiredState(const AutoTuneDesiredState& value) { SetDesiredState(value); return *this;} /** *

Specifies the Auto-Tune desired state. Valid values are ENABLED, DISABLED. *

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

Specifies the rollback state while disabling Auto-Tune for the domain. Valid * values are NO_ROLLBACK, DEFAULT_ROLLBACK.

*/ inline const RollbackOnDisable& GetRollbackOnDisable() const{ return m_rollbackOnDisable; } /** *

Specifies the rollback state while disabling Auto-Tune for the domain. Valid * values are NO_ROLLBACK, DEFAULT_ROLLBACK.

*/ inline bool RollbackOnDisableHasBeenSet() const { return m_rollbackOnDisableHasBeenSet; } /** *

Specifies the rollback state while disabling Auto-Tune for the domain. Valid * values are NO_ROLLBACK, DEFAULT_ROLLBACK.

*/ inline void SetRollbackOnDisable(const RollbackOnDisable& value) { m_rollbackOnDisableHasBeenSet = true; m_rollbackOnDisable = value; } /** *

Specifies the rollback state while disabling Auto-Tune for the domain. Valid * values are NO_ROLLBACK, DEFAULT_ROLLBACK.

*/ inline void SetRollbackOnDisable(RollbackOnDisable&& value) { m_rollbackOnDisableHasBeenSet = true; m_rollbackOnDisable = std::move(value); } /** *

Specifies the rollback state while disabling Auto-Tune for the domain. Valid * values are NO_ROLLBACK, DEFAULT_ROLLBACK.

*/ inline AutoTuneOptions& WithRollbackOnDisable(const RollbackOnDisable& value) { SetRollbackOnDisable(value); return *this;} /** *

Specifies the rollback state while disabling Auto-Tune for the domain. Valid * values are NO_ROLLBACK, DEFAULT_ROLLBACK.

*/ inline AutoTuneOptions& WithRollbackOnDisable(RollbackOnDisable&& value) { SetRollbackOnDisable(std::move(value)); return *this;} /** *

Specifies list of maitenance schedules. See the Developer Guide for more information.

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

Specifies list of maitenance schedules. See the Developer Guide for more information.

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

Specifies list of maitenance schedules. See the Developer Guide for more information.

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

Specifies list of maitenance schedules. See the Developer Guide for more information.

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

Specifies list of maitenance schedules. See the Developer Guide for more information.

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

Specifies list of maitenance schedules. See the Developer Guide for more information.

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

Specifies list of maitenance schedules. See the Developer Guide for more information.

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

Specifies list of maitenance schedules. See the Developer Guide for more information.

*/ inline AutoTuneOptions& AddMaintenanceSchedules(AutoTuneMaintenanceSchedule&& value) { m_maintenanceSchedulesHasBeenSet = true; m_maintenanceSchedules.push_back(std::move(value)); return *this; } private: AutoTuneDesiredState m_desiredState; bool m_desiredStateHasBeenSet = false; RollbackOnDisable m_rollbackOnDisable; bool m_rollbackOnDisableHasBeenSet = false; Aws::Vector m_maintenanceSchedules; bool m_maintenanceSchedulesHasBeenSet = false; }; } // namespace Model } // namespace ElasticsearchService } // namespace Aws