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

Represents the output of a StopDeployment operation. *

See Also:

AWS * API Reference

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

The status of the stop deployment operation:

  • Pending: The * stop operation is pending.

  • Succeeded: The stop operation was * successful.

*/ inline const StopStatus& GetStatus() const{ return m_status; } /** *

The status of the stop deployment operation:

  • Pending: The * stop operation is pending.

  • Succeeded: The stop operation was * successful.

*/ inline void SetStatus(const StopStatus& value) { m_status = value; } /** *

The status of the stop deployment operation:

  • Pending: The * stop operation is pending.

  • Succeeded: The stop operation was * successful.

*/ inline void SetStatus(StopStatus&& value) { m_status = std::move(value); } /** *

The status of the stop deployment operation:

  • Pending: The * stop operation is pending.

  • Succeeded: The stop operation was * successful.

*/ inline StopDeploymentResult& WithStatus(const StopStatus& value) { SetStatus(value); return *this;} /** *

The status of the stop deployment operation:

  • Pending: The * stop operation is pending.

  • Succeeded: The stop operation was * successful.

*/ inline StopDeploymentResult& WithStatus(StopStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

An accompanying status message.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

An accompanying status message.

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

An accompanying status message.

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

An accompanying status message.

*/ inline void SetStatusMessage(const char* value) { m_statusMessage.assign(value); } /** *

An accompanying status message.

*/ inline StopDeploymentResult& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

An accompanying status message.

*/ inline StopDeploymentResult& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

An accompanying status message.

*/ inline StopDeploymentResult& WithStatusMessage(const char* value) { SetStatusMessage(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 StopDeploymentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline StopDeploymentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline StopDeploymentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: StopStatus m_status; Aws::String m_statusMessage; Aws::String m_requestId; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws