/** * 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 ElasticsearchService { namespace Model { /** *

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

See Also:

AWS * API Reference

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

Specifies the AutoTuneState for the Elasticsearch domain.

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

Specifies the AutoTuneState for the Elasticsearch domain.

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

Specifies the AutoTuneState for the Elasticsearch domain.

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

Specifies the AutoTuneState for the Elasticsearch domain.

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

Specifies the AutoTuneState for the Elasticsearch domain.

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

Specifies the AutoTuneState for the Elasticsearch domain.

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

Specifies the error message while enabling or disabling the Auto-Tune.

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

Specifies the error message while enabling or disabling the Auto-Tune.

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

Specifies the error message while enabling or disabling the Auto-Tune.

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

Specifies the error message while enabling or disabling the Auto-Tune.

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

Specifies the error message while enabling or disabling the Auto-Tune.

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

Specifies the error message while enabling or disabling the Auto-Tune.

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

Specifies the error message while enabling or disabling the Auto-Tune.

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

Specifies the error message while enabling or disabling the Auto-Tune.

*/ inline AutoTuneOptionsOutput& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: AutoTuneState m_state; bool m_stateHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace ElasticsearchService } // namespace Aws