/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The current status of Auto-Tune for the domain. For more information, see Auto-Tune
* for Amazon OpenSearch Service.See Also:
AWS
* API Reference
Date and time when Auto-Tune was enabled for the domain.
*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *Date and time when Auto-Tune was enabled for the domain.
*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *Date and time when Auto-Tune was enabled for the domain.
*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } /** *Date and time when Auto-Tune was enabled for the domain.
*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *Date and time when Auto-Tune was enabled for the domain.
*/ inline AutoTuneStatus& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *Date and time when Auto-Tune was enabled for the domain.
*/ inline AutoTuneStatus& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *Date and time when the Auto-Tune options were last updated for the * domain.
*/ inline const Aws::Utils::DateTime& GetUpdateDate() const{ return m_updateDate; } /** *Date and time when the Auto-Tune options were last updated for the * domain.
*/ inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; } /** *Date and time when the Auto-Tune options were last updated for the * domain.
*/ inline void SetUpdateDate(const Aws::Utils::DateTime& value) { m_updateDateHasBeenSet = true; m_updateDate = value; } /** *Date and time when the Auto-Tune options were last updated for the * domain.
*/ inline void SetUpdateDate(Aws::Utils::DateTime&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::move(value); } /** *Date and time when the Auto-Tune options were last updated for the * domain.
*/ inline AutoTuneStatus& WithUpdateDate(const Aws::Utils::DateTime& value) { SetUpdateDate(value); return *this;} /** *Date and time when the Auto-Tune options were last updated for the * domain.
*/ inline AutoTuneStatus& WithUpdateDate(Aws::Utils::DateTime&& value) { SetUpdateDate(std::move(value)); return *this;} /** *The latest version of the Auto-Tune options.
*/ inline int GetUpdateVersion() const{ return m_updateVersion; } /** *The latest version of the Auto-Tune options.
*/ inline bool UpdateVersionHasBeenSet() const { return m_updateVersionHasBeenSet; } /** *The latest version of the Auto-Tune options.
*/ inline void SetUpdateVersion(int value) { m_updateVersionHasBeenSet = true; m_updateVersion = value; } /** *The latest version of the Auto-Tune options.
*/ inline AutoTuneStatus& WithUpdateVersion(int value) { SetUpdateVersion(value); return *this;} /** *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 AutoTuneStatus& WithState(const AutoTuneState& value) { SetState(value); return *this;} /** *The current state of Auto-Tune on the domain.
*/ inline AutoTuneStatus& 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 AutoTuneStatus& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *Any errors that occurred while enabling or disabling Auto-Tune.
*/ inline AutoTuneStatus& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *Any errors that occurred while enabling or disabling Auto-Tune.
*/ inline AutoTuneStatus& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *Indicates whether the domain is being deleted.
*/ inline bool GetPendingDeletion() const{ return m_pendingDeletion; } /** *Indicates whether the domain is being deleted.
*/ inline bool PendingDeletionHasBeenSet() const { return m_pendingDeletionHasBeenSet; } /** *Indicates whether the domain is being deleted.
*/ inline void SetPendingDeletion(bool value) { m_pendingDeletionHasBeenSet = true; m_pendingDeletion = value; } /** *Indicates whether the domain is being deleted.
*/ inline AutoTuneStatus& WithPendingDeletion(bool value) { SetPendingDeletion(value); return *this;} private: Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; Aws::Utils::DateTime m_updateDate; bool m_updateDateHasBeenSet = false; int m_updateVersion; bool m_updateVersionHasBeenSet = false; AutoTuneState m_state; bool m_stateHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; bool m_pendingDeletion; bool m_pendingDeletionHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws