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

Summary data of the deployment.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the deployment.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the deployment.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the deployment.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the deployment.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the deployment.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the deployment.

*/ inline DeploymentSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the deployment.

*/ inline DeploymentSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the deployment.

*/ inline DeploymentSummary& WithArn(const char* value) { SetArn(value); return *this;} /** *

The date and time the deployment was completed.

*/ inline const Aws::Utils::DateTime& GetCompletedAt() const{ return m_completedAt; } /** *

The date and time the deployment was completed.

*/ inline bool CompletedAtHasBeenSet() const { return m_completedAtHasBeenSet; } /** *

The date and time the deployment was completed.

*/ inline void SetCompletedAt(const Aws::Utils::DateTime& value) { m_completedAtHasBeenSet = true; m_completedAt = value; } /** *

The date and time the deployment was completed.

*/ inline void SetCompletedAt(Aws::Utils::DateTime&& value) { m_completedAtHasBeenSet = true; m_completedAt = std::move(value); } /** *

The date and time the deployment was completed.

*/ inline DeploymentSummary& WithCompletedAt(const Aws::Utils::DateTime& value) { SetCompletedAt(value); return *this;} /** *

The date and time the deployment was completed.

*/ inline DeploymentSummary& WithCompletedAt(Aws::Utils::DateTime&& value) { SetCompletedAt(std::move(value)); return *this;} /** *

The name of the component associated with the deployment.

*/ inline const Aws::String& GetComponentName() const{ return m_componentName; } /** *

The name of the component associated with the deployment.

*/ inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; } /** *

The name of the component associated with the deployment.

*/ inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; } /** *

The name of the component associated with the deployment.

*/ inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); } /** *

The name of the component associated with the deployment.

*/ inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); } /** *

The name of the component associated with the deployment.

*/ inline DeploymentSummary& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;} /** *

The name of the component associated with the deployment.

*/ inline DeploymentSummary& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;} /** *

The name of the component associated with the deployment.

*/ inline DeploymentSummary& WithComponentName(const char* value) { SetComponentName(value); return *this;} /** *

The date and time the deployment was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The date and time the deployment was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The date and time the deployment was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The date and time the deployment was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The date and time the deployment was created.

*/ inline DeploymentSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The date and time the deployment was created.

*/ inline DeploymentSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The current status of the deployment.

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

The current status of the deployment.

*/ inline bool DeploymentStatusHasBeenSet() const { return m_deploymentStatusHasBeenSet; } /** *

The current status of the deployment.

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

The current status of the deployment.

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

The current status of the deployment.

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

The current status of the deployment.

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

The name of the environment associated with the deployment.

*/ inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; } /** *

The name of the environment associated with the deployment.

*/ inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; } /** *

The name of the environment associated with the deployment.

*/ inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; } /** *

The name of the environment associated with the deployment.

*/ inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); } /** *

The name of the environment associated with the deployment.

*/ inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); } /** *

The name of the environment associated with the deployment.

*/ inline DeploymentSummary& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;} /** *

The name of the environment associated with the deployment.

*/ inline DeploymentSummary& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;} /** *

The name of the environment associated with the deployment.

*/ inline DeploymentSummary& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;} /** *

The ID of the deployment.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of the deployment.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the deployment.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the deployment.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID of the deployment.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID of the deployment.

*/ inline DeploymentSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the deployment.

*/ inline DeploymentSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the deployment.

*/ inline DeploymentSummary& WithId(const char* value) { SetId(value); return *this;} /** *

The ID of the last attempted deployment.

*/ inline const Aws::String& GetLastAttemptedDeploymentId() const{ return m_lastAttemptedDeploymentId; } /** *

The ID of the last attempted deployment.

*/ inline bool LastAttemptedDeploymentIdHasBeenSet() const { return m_lastAttemptedDeploymentIdHasBeenSet; } /** *

The ID of the last attempted deployment.

*/ inline void SetLastAttemptedDeploymentId(const Aws::String& value) { m_lastAttemptedDeploymentIdHasBeenSet = true; m_lastAttemptedDeploymentId = value; } /** *

The ID of the last attempted deployment.

*/ inline void SetLastAttemptedDeploymentId(Aws::String&& value) { m_lastAttemptedDeploymentIdHasBeenSet = true; m_lastAttemptedDeploymentId = std::move(value); } /** *

The ID of the last attempted deployment.

*/ inline void SetLastAttemptedDeploymentId(const char* value) { m_lastAttemptedDeploymentIdHasBeenSet = true; m_lastAttemptedDeploymentId.assign(value); } /** *

The ID of the last attempted deployment.

*/ inline DeploymentSummary& WithLastAttemptedDeploymentId(const Aws::String& value) { SetLastAttemptedDeploymentId(value); return *this;} /** *

The ID of the last attempted deployment.

*/ inline DeploymentSummary& WithLastAttemptedDeploymentId(Aws::String&& value) { SetLastAttemptedDeploymentId(std::move(value)); return *this;} /** *

The ID of the last attempted deployment.

*/ inline DeploymentSummary& WithLastAttemptedDeploymentId(const char* value) { SetLastAttemptedDeploymentId(value); return *this;} /** *

The date and time the deployment was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedAt() const{ return m_lastModifiedAt; } /** *

The date and time the deployment was last modified.

*/ inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; } /** *

The date and time the deployment was last modified.

*/ inline void SetLastModifiedAt(const Aws::Utils::DateTime& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = value; } /** *

The date and time the deployment was last modified.

*/ inline void SetLastModifiedAt(Aws::Utils::DateTime&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::move(value); } /** *

The date and time the deployment was last modified.

*/ inline DeploymentSummary& WithLastModifiedAt(const Aws::Utils::DateTime& value) { SetLastModifiedAt(value); return *this;} /** *

The date and time the deployment was last modified.

*/ inline DeploymentSummary& WithLastModifiedAt(Aws::Utils::DateTime&& value) { SetLastModifiedAt(std::move(value)); return *this;} /** *

The ID of the last successful deployment.

*/ inline const Aws::String& GetLastSucceededDeploymentId() const{ return m_lastSucceededDeploymentId; } /** *

The ID of the last successful deployment.

*/ inline bool LastSucceededDeploymentIdHasBeenSet() const { return m_lastSucceededDeploymentIdHasBeenSet; } /** *

The ID of the last successful deployment.

*/ inline void SetLastSucceededDeploymentId(const Aws::String& value) { m_lastSucceededDeploymentIdHasBeenSet = true; m_lastSucceededDeploymentId = value; } /** *

The ID of the last successful deployment.

*/ inline void SetLastSucceededDeploymentId(Aws::String&& value) { m_lastSucceededDeploymentIdHasBeenSet = true; m_lastSucceededDeploymentId = std::move(value); } /** *

The ID of the last successful deployment.

*/ inline void SetLastSucceededDeploymentId(const char* value) { m_lastSucceededDeploymentIdHasBeenSet = true; m_lastSucceededDeploymentId.assign(value); } /** *

The ID of the last successful deployment.

*/ inline DeploymentSummary& WithLastSucceededDeploymentId(const Aws::String& value) { SetLastSucceededDeploymentId(value); return *this;} /** *

The ID of the last successful deployment.

*/ inline DeploymentSummary& WithLastSucceededDeploymentId(Aws::String&& value) { SetLastSucceededDeploymentId(std::move(value)); return *this;} /** *

The ID of the last successful deployment.

*/ inline DeploymentSummary& WithLastSucceededDeploymentId(const char* value) { SetLastSucceededDeploymentId(value); return *this;} /** *

The name of the service instance associated with the deployment.

*/ inline const Aws::String& GetServiceInstanceName() const{ return m_serviceInstanceName; } /** *

The name of the service instance associated with the deployment.

*/ inline bool ServiceInstanceNameHasBeenSet() const { return m_serviceInstanceNameHasBeenSet; } /** *

The name of the service instance associated with the deployment.

*/ inline void SetServiceInstanceName(const Aws::String& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = value; } /** *

The name of the service instance associated with the deployment.

*/ inline void SetServiceInstanceName(Aws::String&& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = std::move(value); } /** *

The name of the service instance associated with the deployment.

*/ inline void SetServiceInstanceName(const char* value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName.assign(value); } /** *

The name of the service instance associated with the deployment.

*/ inline DeploymentSummary& WithServiceInstanceName(const Aws::String& value) { SetServiceInstanceName(value); return *this;} /** *

The name of the service instance associated with the deployment.

*/ inline DeploymentSummary& WithServiceInstanceName(Aws::String&& value) { SetServiceInstanceName(std::move(value)); return *this;} /** *

The name of the service instance associated with the deployment.

*/ inline DeploymentSummary& WithServiceInstanceName(const char* value) { SetServiceInstanceName(value); return *this;} /** *

The name of the service associated with the deployment.

*/ inline const Aws::String& GetServiceName() const{ return m_serviceName; } /** *

The name of the service associated with the deployment.

*/ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** *

The name of the service associated with the deployment.

*/ inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } /** *

The name of the service associated with the deployment.

*/ inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } /** *

The name of the service associated with the deployment.

*/ inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); } /** *

The name of the service associated with the deployment.

*/ inline DeploymentSummary& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *

The name of the service associated with the deployment.

*/ inline DeploymentSummary& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} /** *

The name of the service associated with the deployment.

*/ inline DeploymentSummary& WithServiceName(const char* value) { SetServiceName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the target of the deployment.

*/ inline const Aws::String& GetTargetArn() const{ return m_targetArn; } /** *

The Amazon Resource Name (ARN) of the target of the deployment.

*/ inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the target of the deployment.

*/ inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; } /** *

The Amazon Resource Name (ARN) of the target of the deployment.

*/ inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the target of the deployment.

*/ inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the target of the deployment.

*/ inline DeploymentSummary& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the target of the deployment.

*/ inline DeploymentSummary& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the target of the deployment.

*/ inline DeploymentSummary& WithTargetArn(const char* value) { SetTargetArn(value); return *this;} /** *

The date and time the target resource was created.

*/ inline const Aws::Utils::DateTime& GetTargetResourceCreatedAt() const{ return m_targetResourceCreatedAt; } /** *

The date and time the target resource was created.

*/ inline bool TargetResourceCreatedAtHasBeenSet() const { return m_targetResourceCreatedAtHasBeenSet; } /** *

The date and time the target resource was created.

*/ inline void SetTargetResourceCreatedAt(const Aws::Utils::DateTime& value) { m_targetResourceCreatedAtHasBeenSet = true; m_targetResourceCreatedAt = value; } /** *

The date and time the target resource was created.

*/ inline void SetTargetResourceCreatedAt(Aws::Utils::DateTime&& value) { m_targetResourceCreatedAtHasBeenSet = true; m_targetResourceCreatedAt = std::move(value); } /** *

The date and time the target resource was created.

*/ inline DeploymentSummary& WithTargetResourceCreatedAt(const Aws::Utils::DateTime& value) { SetTargetResourceCreatedAt(value); return *this;} /** *

The date and time the target resource was created.

*/ inline DeploymentSummary& WithTargetResourceCreatedAt(Aws::Utils::DateTime&& value) { SetTargetResourceCreatedAt(std::move(value)); return *this;} /** *

The resource type of the deployment target. It can be an environment, * service, service instance, or component.

*/ inline const DeploymentTargetResourceType& GetTargetResourceType() const{ return m_targetResourceType; } /** *

The resource type of the deployment target. It can be an environment, * service, service instance, or component.

*/ inline bool TargetResourceTypeHasBeenSet() const { return m_targetResourceTypeHasBeenSet; } /** *

The resource type of the deployment target. It can be an environment, * service, service instance, or component.

*/ inline void SetTargetResourceType(const DeploymentTargetResourceType& value) { m_targetResourceTypeHasBeenSet = true; m_targetResourceType = value; } /** *

The resource type of the deployment target. It can be an environment, * service, service instance, or component.

*/ inline void SetTargetResourceType(DeploymentTargetResourceType&& value) { m_targetResourceTypeHasBeenSet = true; m_targetResourceType = std::move(value); } /** *

The resource type of the deployment target. It can be an environment, * service, service instance, or component.

*/ inline DeploymentSummary& WithTargetResourceType(const DeploymentTargetResourceType& value) { SetTargetResourceType(value); return *this;} /** *

The resource type of the deployment target. It can be an environment, * service, service instance, or component.

*/ inline DeploymentSummary& WithTargetResourceType(DeploymentTargetResourceType&& value) { SetTargetResourceType(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_completedAt; bool m_completedAtHasBeenSet = false; Aws::String m_componentName; bool m_componentNameHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; DeploymentStatus m_deploymentStatus; bool m_deploymentStatusHasBeenSet = false; Aws::String m_environmentName; bool m_environmentNameHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_lastAttemptedDeploymentId; bool m_lastAttemptedDeploymentIdHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedAt; bool m_lastModifiedAtHasBeenSet = false; Aws::String m_lastSucceededDeploymentId; bool m_lastSucceededDeploymentIdHasBeenSet = false; Aws::String m_serviceInstanceName; bool m_serviceInstanceNameHasBeenSet = false; Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; Aws::String m_targetArn; bool m_targetArnHasBeenSet = false; Aws::Utils::DateTime m_targetResourceCreatedAt; bool m_targetResourceCreatedAtHasBeenSet = false; DeploymentTargetResourceType m_targetResourceType; bool m_targetResourceTypeHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws