/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace OpenSearchService { namespace Model { /** *

Information about the progress of a pre-upgrade dry run * analysis.

See Also:

AWS * API Reference

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

The unique identifier of the dry run.

*/ inline const Aws::String& GetDryRunId() const{ return m_dryRunId; } /** *

The unique identifier of the dry run.

*/ inline bool DryRunIdHasBeenSet() const { return m_dryRunIdHasBeenSet; } /** *

The unique identifier of the dry run.

*/ inline void SetDryRunId(const Aws::String& value) { m_dryRunIdHasBeenSet = true; m_dryRunId = value; } /** *

The unique identifier of the dry run.

*/ inline void SetDryRunId(Aws::String&& value) { m_dryRunIdHasBeenSet = true; m_dryRunId = std::move(value); } /** *

The unique identifier of the dry run.

*/ inline void SetDryRunId(const char* value) { m_dryRunIdHasBeenSet = true; m_dryRunId.assign(value); } /** *

The unique identifier of the dry run.

*/ inline DryRunProgressStatus& WithDryRunId(const Aws::String& value) { SetDryRunId(value); return *this;} /** *

The unique identifier of the dry run.

*/ inline DryRunProgressStatus& WithDryRunId(Aws::String&& value) { SetDryRunId(std::move(value)); return *this;} /** *

The unique identifier of the dry run.

*/ inline DryRunProgressStatus& WithDryRunId(const char* value) { SetDryRunId(value); return *this;} /** *

The current status of the dry run.

*/ inline const Aws::String& GetDryRunStatus() const{ return m_dryRunStatus; } /** *

The current status of the dry run.

*/ inline bool DryRunStatusHasBeenSet() const { return m_dryRunStatusHasBeenSet; } /** *

The current status of the dry run.

*/ inline void SetDryRunStatus(const Aws::String& value) { m_dryRunStatusHasBeenSet = true; m_dryRunStatus = value; } /** *

The current status of the dry run.

*/ inline void SetDryRunStatus(Aws::String&& value) { m_dryRunStatusHasBeenSet = true; m_dryRunStatus = std::move(value); } /** *

The current status of the dry run.

*/ inline void SetDryRunStatus(const char* value) { m_dryRunStatusHasBeenSet = true; m_dryRunStatus.assign(value); } /** *

The current status of the dry run.

*/ inline DryRunProgressStatus& WithDryRunStatus(const Aws::String& value) { SetDryRunStatus(value); return *this;} /** *

The current status of the dry run.

*/ inline DryRunProgressStatus& WithDryRunStatus(Aws::String&& value) { SetDryRunStatus(std::move(value)); return *this;} /** *

The current status of the dry run.

*/ inline DryRunProgressStatus& WithDryRunStatus(const char* value) { SetDryRunStatus(value); return *this;} /** *

The timestamp when the dry run was initiated.

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

The timestamp when the dry run was initiated.

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

The timestamp when the dry run was initiated.

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

The timestamp when the dry run was initiated.

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

The timestamp when the dry run was initiated.

*/ inline void SetCreationDate(const char* value) { m_creationDateHasBeenSet = true; m_creationDate.assign(value); } /** *

The timestamp when the dry run was initiated.

*/ inline DryRunProgressStatus& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;} /** *

The timestamp when the dry run was initiated.

*/ inline DryRunProgressStatus& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;} /** *

The timestamp when the dry run was initiated.

*/ inline DryRunProgressStatus& WithCreationDate(const char* value) { SetCreationDate(value); return *this;} /** *

The timestamp when the dry run was last updated.

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

The timestamp when the dry run was last updated.

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

The timestamp when the dry run was last updated.

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

The timestamp when the dry run was last updated.

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

The timestamp when the dry run was last updated.

*/ inline void SetUpdateDate(const char* value) { m_updateDateHasBeenSet = true; m_updateDate.assign(value); } /** *

The timestamp when the dry run was last updated.

*/ inline DryRunProgressStatus& WithUpdateDate(const Aws::String& value) { SetUpdateDate(value); return *this;} /** *

The timestamp when the dry run was last updated.

*/ inline DryRunProgressStatus& WithUpdateDate(Aws::String&& value) { SetUpdateDate(std::move(value)); return *this;} /** *

The timestamp when the dry run was last updated.

*/ inline DryRunProgressStatus& WithUpdateDate(const char* value) { SetUpdateDate(value); return *this;} /** *

Any validation failures that occurred as a result of the dry run.

*/ inline const Aws::Vector& GetValidationFailures() const{ return m_validationFailures; } /** *

Any validation failures that occurred as a result of the dry run.

*/ inline bool ValidationFailuresHasBeenSet() const { return m_validationFailuresHasBeenSet; } /** *

Any validation failures that occurred as a result of the dry run.

*/ inline void SetValidationFailures(const Aws::Vector& value) { m_validationFailuresHasBeenSet = true; m_validationFailures = value; } /** *

Any validation failures that occurred as a result of the dry run.

*/ inline void SetValidationFailures(Aws::Vector&& value) { m_validationFailuresHasBeenSet = true; m_validationFailures = std::move(value); } /** *

Any validation failures that occurred as a result of the dry run.

*/ inline DryRunProgressStatus& WithValidationFailures(const Aws::Vector& value) { SetValidationFailures(value); return *this;} /** *

Any validation failures that occurred as a result of the dry run.

*/ inline DryRunProgressStatus& WithValidationFailures(Aws::Vector&& value) { SetValidationFailures(std::move(value)); return *this;} /** *

Any validation failures that occurred as a result of the dry run.

*/ inline DryRunProgressStatus& AddValidationFailures(const ValidationFailure& value) { m_validationFailuresHasBeenSet = true; m_validationFailures.push_back(value); return *this; } /** *

Any validation failures that occurred as a result of the dry run.

*/ inline DryRunProgressStatus& AddValidationFailures(ValidationFailure&& value) { m_validationFailuresHasBeenSet = true; m_validationFailures.push_back(std::move(value)); return *this; } private: Aws::String m_dryRunId; bool m_dryRunIdHasBeenSet = false; Aws::String m_dryRunStatus; bool m_dryRunStatusHasBeenSet = false; Aws::String m_creationDate; bool m_creationDateHasBeenSet = false; Aws::String m_updateDate; bool m_updateDateHasBeenSet = false; Aws::Vector m_validationFailures; bool m_validationFailuresHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws