/** * 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 ApiGatewayV2 { namespace Model { class UpdateDeploymentResult { public: AWS_APIGATEWAYV2_API UpdateDeploymentResult(); AWS_APIGATEWAYV2_API UpdateDeploymentResult(const Aws::AmazonWebServiceResult& result); AWS_APIGATEWAYV2_API UpdateDeploymentResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Specifies whether a deployment was automatically released.

*/ inline bool GetAutoDeployed() const{ return m_autoDeployed; } /** *

Specifies whether a deployment was automatically released.

*/ inline void SetAutoDeployed(bool value) { m_autoDeployed = value; } /** *

Specifies whether a deployment was automatically released.

*/ inline UpdateDeploymentResult& WithAutoDeployed(bool value) { SetAutoDeployed(value); return *this;} /** *

The date and time when the Deployment resource was created.

*/ inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; } /** *

The date and time when the Deployment resource was created.

*/ inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; } /** *

The date and time when the Deployment resource was created.

*/ inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); } /** *

The date and time when the Deployment resource was created.

*/ inline UpdateDeploymentResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} /** *

The date and time when the Deployment resource was created.

*/ inline UpdateDeploymentResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} /** *

The identifier for the deployment.

*/ inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; } /** *

The identifier for the deployment.

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

The identifier for the deployment.

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

The identifier for the deployment.

*/ inline void SetDeploymentId(const char* value) { m_deploymentId.assign(value); } /** *

The identifier for the deployment.

*/ inline UpdateDeploymentResult& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;} /** *

The identifier for the deployment.

*/ inline UpdateDeploymentResult& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;} /** *

The identifier for the deployment.

*/ inline UpdateDeploymentResult& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;} /** *

The status of the deployment: PENDING, FAILED, or SUCCEEDED.

*/ inline const DeploymentStatus& GetDeploymentStatus() const{ return m_deploymentStatus; } /** *

The status of the deployment: PENDING, FAILED, or SUCCEEDED.

*/ inline void SetDeploymentStatus(const DeploymentStatus& value) { m_deploymentStatus = value; } /** *

The status of the deployment: PENDING, FAILED, or SUCCEEDED.

*/ inline void SetDeploymentStatus(DeploymentStatus&& value) { m_deploymentStatus = std::move(value); } /** *

The status of the deployment: PENDING, FAILED, or SUCCEEDED.

*/ inline UpdateDeploymentResult& WithDeploymentStatus(const DeploymentStatus& value) { SetDeploymentStatus(value); return *this;} /** *

The status of the deployment: PENDING, FAILED, or SUCCEEDED.

*/ inline UpdateDeploymentResult& WithDeploymentStatus(DeploymentStatus&& value) { SetDeploymentStatus(std::move(value)); return *this;} /** *

May contain additional feedback on the status of an API deployment.

*/ inline const Aws::String& GetDeploymentStatusMessage() const{ return m_deploymentStatusMessage; } /** *

May contain additional feedback on the status of an API deployment.

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

May contain additional feedback on the status of an API deployment.

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

May contain additional feedback on the status of an API deployment.

*/ inline void SetDeploymentStatusMessage(const char* value) { m_deploymentStatusMessage.assign(value); } /** *

May contain additional feedback on the status of an API deployment.

*/ inline UpdateDeploymentResult& WithDeploymentStatusMessage(const Aws::String& value) { SetDeploymentStatusMessage(value); return *this;} /** *

May contain additional feedback on the status of an API deployment.

*/ inline UpdateDeploymentResult& WithDeploymentStatusMessage(Aws::String&& value) { SetDeploymentStatusMessage(std::move(value)); return *this;} /** *

May contain additional feedback on the status of an API deployment.

*/ inline UpdateDeploymentResult& WithDeploymentStatusMessage(const char* value) { SetDeploymentStatusMessage(value); return *this;} /** *

The description for the deployment.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description for the deployment.

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

The description for the deployment.

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

The description for the deployment.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The description for the deployment.

*/ inline UpdateDeploymentResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description for the deployment.

*/ inline UpdateDeploymentResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description for the deployment.

*/ inline UpdateDeploymentResult& WithDescription(const char* value) { SetDescription(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 UpdateDeploymentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateDeploymentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateDeploymentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: bool m_autoDeployed; Aws::Utils::DateTime m_createdDate; Aws::String m_deploymentId; DeploymentStatus m_deploymentStatus; Aws::String m_deploymentStatusMessage; Aws::String m_description; Aws::String m_requestId; }; } // namespace Model } // namespace ApiGatewayV2 } // namespace Aws