/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides the current status of an entity.See Also:
AWS
* API Reference
The timestamp when the entity was created.
*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *The timestamp when the entity was created.
*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *The timestamp when the entity was created.
*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } /** *The timestamp when the entity was created.
*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *The timestamp when the entity was created.
*/ inline OptionStatus& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *The timestamp when the entity was created.
*/ inline OptionStatus& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *The timestamp of the last time the entity was updated.
*/ inline const Aws::Utils::DateTime& GetUpdateDate() const{ return m_updateDate; } /** *The timestamp of the last time the entity was updated.
*/ inline bool UpdateDateHasBeenSet() const { return m_updateDateHasBeenSet; } /** *The timestamp of the last time the entity was updated.
*/ inline void SetUpdateDate(const Aws::Utils::DateTime& value) { m_updateDateHasBeenSet = true; m_updateDate = value; } /** *The timestamp of the last time the entity was updated.
*/ inline void SetUpdateDate(Aws::Utils::DateTime&& value) { m_updateDateHasBeenSet = true; m_updateDate = std::move(value); } /** *The timestamp of the last time the entity was updated.
*/ inline OptionStatus& WithUpdateDate(const Aws::Utils::DateTime& value) { SetUpdateDate(value); return *this;} /** *The timestamp of the last time the entity was updated.
*/ inline OptionStatus& WithUpdateDate(Aws::Utils::DateTime&& value) { SetUpdateDate(std::move(value)); return *this;} /** *The latest version of the entity.
*/ inline int GetUpdateVersion() const{ return m_updateVersion; } /** *The latest version of the entity.
*/ inline bool UpdateVersionHasBeenSet() const { return m_updateVersionHasBeenSet; } /** *The latest version of the entity.
*/ inline void SetUpdateVersion(int value) { m_updateVersionHasBeenSet = true; m_updateVersion = value; } /** *The latest version of the entity.
*/ inline OptionStatus& WithUpdateVersion(int value) { SetUpdateVersion(value); return *this;} /** *The state of the entity.
*/ inline const OptionState& GetState() const{ return m_state; } /** *The state of the entity.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *The state of the entity.
*/ inline void SetState(const OptionState& value) { m_stateHasBeenSet = true; m_state = value; } /** *The state of the entity.
*/ inline void SetState(OptionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *The state of the entity.
*/ inline OptionStatus& WithState(const OptionState& value) { SetState(value); return *this;} /** *The state of the entity.
*/ inline OptionStatus& WithState(OptionState&& value) { SetState(std::move(value)); return *this;} /** *Indicates whether the entity is being deleted.
*/ inline bool GetPendingDeletion() const{ return m_pendingDeletion; } /** *Indicates whether the entity is being deleted.
*/ inline bool PendingDeletionHasBeenSet() const { return m_pendingDeletionHasBeenSet; } /** *Indicates whether the entity is being deleted.
*/ inline void SetPendingDeletion(bool value) { m_pendingDeletionHasBeenSet = true; m_pendingDeletion = value; } /** *Indicates whether the entity 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 OpenSearchService } // namespace Aws