/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ElasticsearchService { namespace Model { /** *

Container for response returned by GetUpgradeStatus * operation.

See Also:

AWS * API Reference

*/ class AWS_ELASTICSEARCHSERVICE_API GetUpgradeStatusResult { public: GetUpgradeStatusResult(); GetUpgradeStatusResult(const Aws::AmazonWebServiceResult& result); GetUpgradeStatusResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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 void SetUpgradeStep(const UpgradeStep& value) { 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_upgradeStep = std::move(value); } /** *

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

  • PreUpgradeCheck
  • Snapshot
  • Upgrade
*

*/ inline GetUpgradeStatusResult& 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 GetUpgradeStatusResult& WithUpgradeStep(UpgradeStep&& value) { SetUpgradeStep(std::move(value)); return *this;} /** *

One of 4 statuses that a step can go through returned as part of the * GetUpgradeStatusResponse object. The status can take one of the * following values:

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

*/ inline const UpgradeStatus& GetStepStatus() const{ return m_stepStatus; } /** *

One of 4 statuses that a step can go through returned as part of the * GetUpgradeStatusResponse object. The status can take one of the * following values:

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

*/ inline void SetStepStatus(const UpgradeStatus& value) { m_stepStatus = value; } /** *

One of 4 statuses that a step can go through returned as part of the * GetUpgradeStatusResponse object. The status can take one of the * following values:

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

*/ inline void SetStepStatus(UpgradeStatus&& value) { m_stepStatus = std::move(value); } /** *

One of 4 statuses that a step can go through returned as part of the * GetUpgradeStatusResponse object. The status can take one of the * following values:

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

*/ inline GetUpgradeStatusResult& WithStepStatus(const UpgradeStatus& value) { SetStepStatus(value); return *this;} /** *

One of 4 statuses that a step can go through returned as part of the * GetUpgradeStatusResponse object. The status can take one of the * following values:

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

*/ inline GetUpgradeStatusResult& WithStepStatus(UpgradeStatus&& value) { SetStepStatus(std::move(value)); return *this;} /** *

A string that describes the update briefly

*/ inline const Aws::String& GetUpgradeName() const{ return m_upgradeName; } /** *

A string that describes the update briefly

*/ inline void SetUpgradeName(const Aws::String& value) { m_upgradeName = value; } /** *

A string that describes the update briefly

*/ inline void SetUpgradeName(Aws::String&& value) { m_upgradeName = std::move(value); } /** *

A string that describes the update briefly

*/ inline void SetUpgradeName(const char* value) { m_upgradeName.assign(value); } /** *

A string that describes the update briefly

*/ inline GetUpgradeStatusResult& WithUpgradeName(const Aws::String& value) { SetUpgradeName(value); return *this;} /** *

A string that describes the update briefly

*/ inline GetUpgradeStatusResult& WithUpgradeName(Aws::String&& value) { SetUpgradeName(std::move(value)); return *this;} /** *

A string that describes the update briefly

*/ inline GetUpgradeStatusResult& WithUpgradeName(const char* value) { SetUpgradeName(value); return *this;} private: UpgradeStep m_upgradeStep; UpgradeStatus m_stepStatus; Aws::String m_upgradeName; }; } // namespace Model } // namespace ElasticsearchService } // namespace Aws