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

Represents a single step of the Upgrade or Upgrade Eligibility Check * workflow.

See Also:

AWS * API Reference

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

Represents one of 3 steps that an Upgrade or Upgrade Eligibility Check does * through:

  • PreUpgradeCheck
  • Snapshot
  • Upgrade
*

*/ inline const UpgradeStep& GetUpgradeStep() const{ return m_upgradeStep; } /** *

Represents one of 3 steps that an Upgrade or Upgrade Eligibility Check does * through:

  • PreUpgradeCheck
  • Snapshot
  • Upgrade
*

*/ inline bool UpgradeStepHasBeenSet() const { return m_upgradeStepHasBeenSet; } /** *

Represents one of 3 steps that an Upgrade or Upgrade Eligibility Check does * through:

  • PreUpgradeCheck
  • Snapshot
  • Upgrade
*

*/ inline void SetUpgradeStep(const UpgradeStep& value) { m_upgradeStepHasBeenSet = true; m_upgradeStep = value; } /** *

Represents one of 3 steps that an Upgrade or Upgrade Eligibility Check does * through:

  • PreUpgradeCheck
  • Snapshot
  • Upgrade
*

*/ inline void SetUpgradeStep(UpgradeStep&& value) { m_upgradeStepHasBeenSet = true; m_upgradeStep = std::move(value); } /** *

Represents one of 3 steps that an Upgrade or Upgrade Eligibility Check does * through:

  • PreUpgradeCheck
  • Snapshot
  • Upgrade
*

*/ inline UpgradeStepItem& WithUpgradeStep(const UpgradeStep& value) { SetUpgradeStep(value); return *this;} /** *

Represents one of 3 steps that an Upgrade or Upgrade Eligibility Check does * through:

  • PreUpgradeCheck
  • Snapshot
  • Upgrade
*

*/ inline UpgradeStepItem& WithUpgradeStep(UpgradeStep&& value) { SetUpgradeStep(std::move(value)); return *this;} /** *

The status of a particular step during an upgrade. The status can take one * of the following values:

  • In Progress
  • Succeeded
  • *
  • Succeeded with Issues
  • Failed

*/ inline const UpgradeStatus& GetUpgradeStepStatus() const{ return m_upgradeStepStatus; } /** *

The status of a particular step during an upgrade. The status can take one * of the following values:

  • In Progress
  • Succeeded
  • *
  • Succeeded with Issues
  • Failed

*/ inline bool UpgradeStepStatusHasBeenSet() const { return m_upgradeStepStatusHasBeenSet; } /** *

The status of a particular step during an upgrade. The status can take one * of the following values:

  • In Progress
  • Succeeded
  • *
  • Succeeded with Issues
  • Failed

*/ inline void SetUpgradeStepStatus(const UpgradeStatus& value) { m_upgradeStepStatusHasBeenSet = true; m_upgradeStepStatus = value; } /** *

The status of a particular step during an upgrade. The status can take one * of the following values:

  • In Progress
  • Succeeded
  • *
  • Succeeded with Issues
  • Failed

*/ inline void SetUpgradeStepStatus(UpgradeStatus&& value) { m_upgradeStepStatusHasBeenSet = true; m_upgradeStepStatus = std::move(value); } /** *

The status of a particular step during an upgrade. The status can take one * of the following values:

  • In Progress
  • Succeeded
  • *
  • Succeeded with Issues
  • Failed

*/ inline UpgradeStepItem& WithUpgradeStepStatus(const UpgradeStatus& value) { SetUpgradeStepStatus(value); return *this;} /** *

The status of a particular step during an upgrade. The status can take one * of the following values:

  • In Progress
  • Succeeded
  • *
  • Succeeded with Issues
  • Failed

*/ inline UpgradeStepItem& WithUpgradeStepStatus(UpgradeStatus&& value) { SetUpgradeStepStatus(std::move(value)); return *this;} /** *

A list of strings containing detailed information about the errors * encountered in a particular step.

*/ inline const Aws::Vector& GetIssues() const{ return m_issues; } /** *

A list of strings containing detailed information about the errors * encountered in a particular step.

*/ inline bool IssuesHasBeenSet() const { return m_issuesHasBeenSet; } /** *

A list of strings containing detailed information about the errors * encountered in a particular step.

*/ inline void SetIssues(const Aws::Vector& value) { m_issuesHasBeenSet = true; m_issues = value; } /** *

A list of strings containing detailed information about the errors * encountered in a particular step.

*/ inline void SetIssues(Aws::Vector&& value) { m_issuesHasBeenSet = true; m_issues = std::move(value); } /** *

A list of strings containing detailed information about the errors * encountered in a particular step.

*/ inline UpgradeStepItem& WithIssues(const Aws::Vector& value) { SetIssues(value); return *this;} /** *

A list of strings containing detailed information about the errors * encountered in a particular step.

*/ inline UpgradeStepItem& WithIssues(Aws::Vector&& value) { SetIssues(std::move(value)); return *this;} /** *

A list of strings containing detailed information about the errors * encountered in a particular step.

*/ inline UpgradeStepItem& AddIssues(const Aws::String& value) { m_issuesHasBeenSet = true; m_issues.push_back(value); return *this; } /** *

A list of strings containing detailed information about the errors * encountered in a particular step.

*/ inline UpgradeStepItem& AddIssues(Aws::String&& value) { m_issuesHasBeenSet = true; m_issues.push_back(std::move(value)); return *this; } /** *

A list of strings containing detailed information about the errors * encountered in a particular step.

*/ inline UpgradeStepItem& AddIssues(const char* value) { m_issuesHasBeenSet = true; m_issues.push_back(value); return *this; } /** *

The Floating point value representing progress percentage of a particular * step.

*/ inline double GetProgressPercent() const{ return m_progressPercent; } /** *

The Floating point value representing progress percentage of a particular * step.

*/ inline bool ProgressPercentHasBeenSet() const { return m_progressPercentHasBeenSet; } /** *

The Floating point value representing progress percentage of a particular * step.

*/ inline void SetProgressPercent(double value) { m_progressPercentHasBeenSet = true; m_progressPercent = value; } /** *

The Floating point value representing progress percentage of a particular * step.

*/ inline UpgradeStepItem& WithProgressPercent(double value) { SetProgressPercent(value); return *this;} private: UpgradeStep m_upgradeStep; bool m_upgradeStepHasBeenSet = false; UpgradeStatus m_upgradeStepStatus; bool m_upgradeStepStatusHasBeenSet = false; Aws::Vector m_issues; bool m_issuesHasBeenSet = false; double m_progressPercent; bool m_progressPercentHasBeenSet = false; }; } // namespace Model } // namespace ElasticsearchService } // namespace Aws