/** * 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 GetUpgradeStatusResult { public: AWS_ELASTICSEARCHSERVICE_API GetUpgradeStatusResult(); AWS_ELASTICSEARCHSERVICE_API GetUpgradeStatusResult(const Aws::AmazonWebServiceResult& result); AWS_ELASTICSEARCHSERVICE_API 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;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetUpgradeStatusResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetUpgradeStatusResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetUpgradeStatusResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: UpgradeStep m_upgradeStep; UpgradeStatus m_stepStatus; Aws::String m_upgradeName; Aws::String m_requestId; }; } // namespace Model } // namespace ElasticsearchService } // namespace Aws