/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Container for the response returned by the GetUpgradeStatus
* operation.See Also:
AWS
* API Reference
One of three steps that an upgrade or upgrade eligibility check goes * through.
*/ inline const UpgradeStep& GetUpgradeStep() const{ return m_upgradeStep; } /** *One of three steps that an upgrade or upgrade eligibility check goes * through.
*/ inline void SetUpgradeStep(const UpgradeStep& value) { m_upgradeStep = value; } /** *One of three steps that an upgrade or upgrade eligibility check goes * through.
*/ inline void SetUpgradeStep(UpgradeStep&& value) { m_upgradeStep = std::move(value); } /** *One of three steps that an upgrade or upgrade eligibility check goes * through.
*/ inline GetUpgradeStatusResult& WithUpgradeStep(const UpgradeStep& value) { SetUpgradeStep(value); return *this;} /** *One of three steps that an upgrade or upgrade eligibility check goes * through.
*/ inline GetUpgradeStatusResult& WithUpgradeStep(UpgradeStep&& value) { SetUpgradeStep(std::move(value)); return *this;} /** *The status of the current step that an upgrade is on.
*/ inline const UpgradeStatus& GetStepStatus() const{ return m_stepStatus; } /** *The status of the current step that an upgrade is on.
*/ inline void SetStepStatus(const UpgradeStatus& value) { m_stepStatus = value; } /** *The status of the current step that an upgrade is on.
*/ inline void SetStepStatus(UpgradeStatus&& value) { m_stepStatus = std::move(value); } /** *The status of the current step that an upgrade is on.
*/ inline GetUpgradeStatusResult& WithStepStatus(const UpgradeStatus& value) { SetStepStatus(value); return *this;} /** *The status of the current step that an upgrade is on.
*/ inline GetUpgradeStatusResult& WithStepStatus(UpgradeStatus&& value) { SetStepStatus(std::move(value)); return *this;} /** *A string that describes the update.
*/ inline const Aws::String& GetUpgradeName() const{ return m_upgradeName; } /** *A string that describes the update.
*/ inline void SetUpgradeName(const Aws::String& value) { m_upgradeName = value; } /** *A string that describes the update.
*/ inline void SetUpgradeName(Aws::String&& value) { m_upgradeName = std::move(value); } /** *A string that describes the update.
*/ inline void SetUpgradeName(const char* value) { m_upgradeName.assign(value); } /** *A string that describes the update.
*/ inline GetUpgradeStatusResult& WithUpgradeName(const Aws::String& value) { SetUpgradeName(value); return *this;} /** *A string that describes the update.
*/ inline GetUpgradeStatusResult& WithUpgradeName(Aws::String&& value) { SetUpgradeName(std::move(value)); return *this;} /** *A string that describes the update.
*/ 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 OpenSearchService } // namespace Aws