/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ApiGatewayV2 { namespace Model { /** *

An immutable representation of an API that can be called by users. A * Deployment must be associated with a Stage for it to be callable over the * internet.

See Also:

AWS * API Reference

*/ class AWS_APIGATEWAYV2_API Deployment { public: Deployment(); Deployment(Aws::Utils::Json::JsonView jsonValue); Deployment& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

Specifies whether a deployment was automatically released.

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

Specifies whether a deployment was automatically released.

*/ inline bool AutoDeployedHasBeenSet() const { return m_autoDeployedHasBeenSet; } /** *

Specifies whether a deployment was automatically released.

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

Specifies whether a deployment was automatically released.

*/ inline Deployment& 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 bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; } /** *

The date and time when the Deployment resource was created.

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

The date and time when the Deployment resource was created.

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

The date and time when the Deployment resource was created.

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

The date and time when the Deployment resource was created.

*/ inline Deployment& 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 bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; } /** *

The identifier for the deployment.

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

The identifier for the deployment.

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

The identifier for the deployment.

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

The identifier for the deployment.

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

The identifier for the deployment.

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

The identifier for the deployment.

*/ inline Deployment& 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 bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; } /** *

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

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

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

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

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

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

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

*/ inline Deployment& 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 bool DeploymentStatusMessageHasBeenSet() const { return m_deploymentStatusMessageHasBeenSet; } /** *

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

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

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

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

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

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

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

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

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

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

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

*/ inline Deployment& 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 bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description for the deployment.

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

The description for the deployment.

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

The description for the deployment.

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

The description for the deployment.

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

The description for the deployment.

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

The description for the deployment.

*/ inline Deployment& WithDescription(const char* value) { SetDescription(value); return *this;} private: bool m_autoDeployed; bool m_autoDeployedHasBeenSet; Aws::Utils::DateTime m_createdDate; bool m_createdDateHasBeenSet; Aws::String m_deploymentId; bool m_deploymentIdHasBeenSet; DeploymentStatus m_deploymentStatus; bool m_deploymentStatusHasBeenSet; Aws::String m_deploymentStatusMessage; bool m_deploymentStatusMessageHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; }; } // namespace Model } // namespace ApiGatewayV2 } // namespace Aws