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

The status of domain configuration option.

See Also:

AWS * API Reference

*/ class OptionStatus { public: AWS_CLOUDSEARCH_API OptionStatus(); AWS_CLOUDSEARCH_API OptionStatus(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDSEARCH_API OptionStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

A timestamp for when this option was created.

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

A timestamp for when this option was created.

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

A timestamp for when this option was created.

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

A timestamp for when this option was created.

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

A timestamp for when this option was created.

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

A timestamp for when this option was created.

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

A timestamp for when this option was last updated.

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

A timestamp for when this option was last updated.

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

A timestamp for when this option was last updated.

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

A timestamp for when this option was last updated.

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

A timestamp for when this option was last updated.

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

A timestamp for when this option was last updated.

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

A unique integer that indicates when this option was last updated.

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

A unique integer that indicates when this option was last updated.

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

A unique integer that indicates when this option was last updated.

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

A unique integer that indicates when this option was last updated.

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

The state of processing a change to an option. Possible values:

    *
  • RequiresIndexDocuments: the option's latest value will not be * deployed until IndexDocuments has been called and indexing is * complete.
  • Processing: the option's latest value is in the * process of being activated.
  • Active: the option's latest * value is completely deployed.
  • FailedToValidate: the option * value is not compatible with the domain's data and cannot be used to index the * data. You must either modify the option value or update or remove the * incompatible documents.
*/ inline const OptionState& GetState() const{ return m_state; } /** *

The state of processing a change to an option. Possible values:

    *
  • RequiresIndexDocuments: the option's latest value will not be * deployed until IndexDocuments has been called and indexing is * complete.
  • Processing: the option's latest value is in the * process of being activated.
  • Active: the option's latest * value is completely deployed.
  • FailedToValidate: the option * value is not compatible with the domain's data and cannot be used to index the * data. You must either modify the option value or update or remove the * incompatible documents.
*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of processing a change to an option. Possible values:

    *
  • RequiresIndexDocuments: the option's latest value will not be * deployed until IndexDocuments has been called and indexing is * complete.
  • Processing: the option's latest value is in the * process of being activated.
  • Active: the option's latest * value is completely deployed.
  • FailedToValidate: the option * value is not compatible with the domain's data and cannot be used to index the * data. You must either modify the option value or update or remove the * incompatible documents.
*/ inline void SetState(const OptionState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of processing a change to an option. Possible values:

    *
  • RequiresIndexDocuments: the option's latest value will not be * deployed until IndexDocuments has been called and indexing is * complete.
  • Processing: the option's latest value is in the * process of being activated.
  • Active: the option's latest * value is completely deployed.
  • FailedToValidate: the option * value is not compatible with the domain's data and cannot be used to index the * data. You must either modify the option value or update or remove the * incompatible documents.
*/ inline void SetState(OptionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of processing a change to an option. Possible values:

    *
  • RequiresIndexDocuments: the option's latest value will not be * deployed until IndexDocuments has been called and indexing is * complete.
  • Processing: the option's latest value is in the * process of being activated.
  • Active: the option's latest * value is completely deployed.
  • FailedToValidate: the option * value is not compatible with the domain's data and cannot be used to index the * data. You must either modify the option value or update or remove the * incompatible documents.
*/ inline OptionStatus& WithState(const OptionState& value) { SetState(value); return *this;} /** *

The state of processing a change to an option. Possible values:

    *
  • RequiresIndexDocuments: the option's latest value will not be * deployed until IndexDocuments has been called and indexing is * complete.
  • Processing: the option's latest value is in the * process of being activated.
  • Active: the option's latest * value is completely deployed.
  • FailedToValidate: the option * value is not compatible with the domain's data and cannot be used to index the * data. You must either modify the option value or update or remove the * incompatible documents.
*/ inline OptionStatus& WithState(OptionState&& value) { SetState(std::move(value)); return *this;} /** *

Indicates that the option will be deleted once processing is complete.

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

Indicates that the option will be deleted once processing is complete.

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

Indicates that the option will be deleted once processing is complete.

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

Indicates that the option will be deleted once processing is complete.

*/ 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 CloudSearch } // namespace Aws