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

The Auto-Tune settings for a domain, displayed when enabling or disabling * Auto-Tune.

See Also:

AWS * API Reference

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

The current state of Auto-Tune on the domain.

*/ inline const AutoTuneState& GetState() const{ return m_state; } /** *

The current state of Auto-Tune on the domain.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The current state of Auto-Tune on the domain.

*/ inline void SetState(const AutoTuneState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The current state of Auto-Tune on the domain.

*/ inline void SetState(AutoTuneState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The current state of Auto-Tune on the domain.

*/ inline AutoTuneOptionsOutput& WithState(const AutoTuneState& value) { SetState(value); return *this;} /** *

The current state of Auto-Tune on the domain.

*/ inline AutoTuneOptionsOutput& WithState(AutoTuneState&& value) { SetState(std::move(value)); return *this;} /** *

Any errors that occurred while enabling or disabling Auto-Tune.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

Any errors that occurred while enabling or disabling Auto-Tune.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

Any errors that occurred while enabling or disabling Auto-Tune.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

Any errors that occurred while enabling or disabling Auto-Tune.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

Any errors that occurred while enabling or disabling Auto-Tune.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

Any errors that occurred while enabling or disabling Auto-Tune.

*/ inline AutoTuneOptionsOutput& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

Any errors that occurred while enabling or disabling Auto-Tune.

*/ inline AutoTuneOptionsOutput& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

Any errors that occurred while enabling or disabling Auto-Tune.

*/ inline AutoTuneOptionsOutput& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *

Whether the domain's off-peak window will be used to deploy Auto-Tune changes * rather than a maintenance schedule.

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

Whether the domain's off-peak window will be used to deploy Auto-Tune changes * rather than a maintenance schedule.

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

Whether the domain's off-peak window will be used to deploy Auto-Tune changes * rather than a maintenance schedule.

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

Whether the domain's off-peak window will be used to deploy Auto-Tune changes * rather than a maintenance schedule.

*/ inline AutoTuneOptionsOutput& WithUseOffPeakWindow(bool value) { SetUseOffPeakWindow(value); return *this;} private: AutoTuneState m_state; bool m_stateHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; bool m_useOffPeakWindow; bool m_useOffPeakWindowHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws