/** * 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 { /** *

Provides the current status of the entity.

See Also:

AWS API * Reference

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

Timestamp which tells the creation date for the entity.

*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *

Timestamp which tells the creation date for the entity.

*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *

Timestamp which tells the creation date for the entity.

*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } /** *

Timestamp which tells the creation date for the entity.

*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *

Timestamp which tells the creation date for the entity.

*/ inline OptionStatus& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

Timestamp which tells the creation date for the entity.

*/ inline OptionStatus& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *

Timestamp which tells the last updated time for the entity.

*/ inline const Aws::Utils::DateTime& GetUpdateDate() const{ return m_updateDate; } /** *

Timestamp which tells the last updated time for the entity.

*/ inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; } /** *

Timestamp which tells the last updated time for the entity.

*/ inline void SetUpdateDate(const Aws::Utils::DateTime& value) { m_updateDateHasBeenSet = true; m_updateDate = value; } /** *

Timestamp which tells the last updated time for the entity.

*/ inline void SetUpdateDate(Aws::Utils::DateTime&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::move(value); } /** *

Timestamp which tells the last updated time for the entity.

*/ inline OptionStatus& WithUpdateDate(const Aws::Utils::DateTime& value) { SetUpdateDate(value); return *this;} /** *

Timestamp which tells the last updated time for the entity.

*/ inline OptionStatus& WithUpdateDate(Aws::Utils::DateTime&& value) { SetUpdateDate(std::move(value)); return *this;} /** *

Specifies the latest version for the entity.

*/ inline int GetUpdateVersion() const{ return m_updateVersion; } /** *

Specifies the latest version for the entity.

*/ inline bool UpdateVersionHasBeenSet() const { return m_updateVersionHasBeenSet; } /** *

Specifies the latest version for the entity.

*/ inline void SetUpdateVersion(int value) { m_updateVersionHasBeenSet = true; m_updateVersion = value; } /** *

Specifies the latest version for the entity.

*/ inline OptionStatus& WithUpdateVersion(int value) { SetUpdateVersion(value); return *this;} /** *

Provides the OptionState for the Elasticsearch domain.

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

Provides the OptionState for the Elasticsearch domain.

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

Provides the OptionState for the Elasticsearch domain.

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

Provides the OptionState for the Elasticsearch domain.

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

Provides the OptionState for the Elasticsearch domain.

*/ inline OptionStatus& WithState(const OptionState& value) { SetState(value); return *this;} /** *

Provides the OptionState for the Elasticsearch domain.

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

Indicates whether the Elasticsearch domain is being deleted.

*/ inline bool GetPendingDeletion() const{ return m_pendingDeletion; } /** *

Indicates whether the Elasticsearch domain is being deleted.

*/ inline bool PendingDeletionHasBeenSet() const { return m_pendingDeletionHasBeenSet; } /** *

Indicates whether the Elasticsearch domain is being deleted.

*/ inline void SetPendingDeletion(bool value) { m_pendingDeletionHasBeenSet = true; m_pendingDeletion = value; } /** *

Indicates whether the Elasticsearch domain is being deleted.

*/ inline OptionStatus& 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; OptionState m_state; bool m_stateHasBeenSet = false; bool m_pendingDeletion; bool m_pendingDeletionHasBeenSet = false; }; } // namespace Model } // namespace ElasticsearchService } // namespace Aws