/** * 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 CodeDeploy { namespace Model { /** *

Information about the most recent attempted or successful deployment to a * deployment group.

See Also:

AWS * API Reference

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

The unique ID of a deployment.

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

The unique ID of a deployment.

*/ inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; } /** *

The unique ID of a deployment.

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

The unique ID of a deployment.

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

The unique ID of a deployment.

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

The unique ID of a deployment.

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

The unique ID of a deployment.

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

The unique ID of a deployment.

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

The status of the most recent deployment.

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

The status of the most recent deployment.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the most recent deployment.

*/ inline void SetStatus(const DeploymentStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the most recent deployment.

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

The status of the most recent deployment.

*/ inline LastDeploymentInfo& WithStatus(const DeploymentStatus& value) { SetStatus(value); return *this;} /** *

The status of the most recent deployment.

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

A timestamp that indicates when the most recent deployment to the deployment * group was complete.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

A timestamp that indicates when the most recent deployment to the deployment * group was complete.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

A timestamp that indicates when the most recent deployment to the deployment * group was complete.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

A timestamp that indicates when the most recent deployment to the deployment * group was complete.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

A timestamp that indicates when the most recent deployment to the deployment * group was complete.

*/ inline LastDeploymentInfo& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

A timestamp that indicates when the most recent deployment to the deployment * group was complete.

*/ inline LastDeploymentInfo& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

A timestamp that indicates when the most recent deployment to the deployment * group started.

*/ inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; } /** *

A timestamp that indicates when the most recent deployment to the deployment * group started.

*/ inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; } /** *

A timestamp that indicates when the most recent deployment to the deployment * group started.

*/ inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; } /** *

A timestamp that indicates when the most recent deployment to the deployment * group started.

*/ inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); } /** *

A timestamp that indicates when the most recent deployment to the deployment * group started.

*/ inline LastDeploymentInfo& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;} /** *

A timestamp that indicates when the most recent deployment to the deployment * group started.

*/ inline LastDeploymentInfo& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;} private: Aws::String m_deploymentId; bool m_deploymentIdHasBeenSet = false; DeploymentStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::Utils::DateTime m_createTime; bool m_createTimeHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws