/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #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 target Lambda function during an Lambda deployment. *

See Also:

AWS * API Reference

*/ class LambdaTarget { public: AWS_CODEDEPLOY_API LambdaTarget(); AWS_CODEDEPLOY_API LambdaTarget(Aws::Utils::Json::JsonView jsonValue); AWS_CODEDEPLOY_API LambdaTarget& 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 LambdaTarget& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;} /** *

The unique ID of a deployment.

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

The unique ID of a deployment.

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

The unique ID of a deployment target that has a type of * lambdaTarget.

*/ inline const Aws::String& GetTargetId() const{ return m_targetId; } /** *

The unique ID of a deployment target that has a type of * lambdaTarget.

*/ inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; } /** *

The unique ID of a deployment target that has a type of * lambdaTarget.

*/ inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; } /** *

The unique ID of a deployment target that has a type of * lambdaTarget.

*/ inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); } /** *

The unique ID of a deployment target that has a type of * lambdaTarget.

*/ inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); } /** *

The unique ID of a deployment target that has a type of * lambdaTarget.

*/ inline LambdaTarget& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;} /** *

The unique ID of a deployment target that has a type of * lambdaTarget.

*/ inline LambdaTarget& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;} /** *

The unique ID of a deployment target that has a type of * lambdaTarget.

*/ inline LambdaTarget& WithTargetId(const char* value) { SetTargetId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the target.

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

The Amazon Resource Name (ARN) of the target.

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

The Amazon Resource Name (ARN) of the target.

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

The Amazon Resource Name (ARN) of the target.

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

The Amazon Resource Name (ARN) of the target.

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

The Amazon Resource Name (ARN) of the target.

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

The Amazon Resource Name (ARN) of the target.

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

The Amazon Resource Name (ARN) of the target.

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

The status an Lambda deployment's target Lambda function.

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

The status an Lambda deployment's target Lambda function.

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

The status an Lambda deployment's target Lambda function.

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

The status an Lambda deployment's target Lambda function.

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

The status an Lambda deployment's target Lambda function.

*/ inline LambdaTarget& WithStatus(const TargetStatus& value) { SetStatus(value); return *this;} /** *

The status an Lambda deployment's target Lambda function.

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

The date and time when the target Lambda function was updated by a * deployment.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *

The date and time when the target Lambda function was updated by a * deployment.

*/ inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *

The date and time when the target Lambda function was updated by a * deployment.

*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } /** *

The date and time when the target Lambda function was updated by a * deployment.

*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *

The date and time when the target Lambda function was updated by a * deployment.

*/ inline LambdaTarget& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *

The date and time when the target Lambda function was updated by a * deployment.

*/ inline LambdaTarget& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} /** *

The lifecycle events of the deployment to this target Lambda function.

*/ inline const Aws::Vector& GetLifecycleEvents() const{ return m_lifecycleEvents; } /** *

The lifecycle events of the deployment to this target Lambda function.

*/ inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; } /** *

The lifecycle events of the deployment to this target Lambda function.

*/ inline void SetLifecycleEvents(const Aws::Vector& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = value; } /** *

The lifecycle events of the deployment to this target Lambda function.

*/ inline void SetLifecycleEvents(Aws::Vector&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = std::move(value); } /** *

The lifecycle events of the deployment to this target Lambda function.

*/ inline LambdaTarget& WithLifecycleEvents(const Aws::Vector& value) { SetLifecycleEvents(value); return *this;} /** *

The lifecycle events of the deployment to this target Lambda function.

*/ inline LambdaTarget& WithLifecycleEvents(Aws::Vector&& value) { SetLifecycleEvents(std::move(value)); return *this;} /** *

The lifecycle events of the deployment to this target Lambda function.

*/ inline LambdaTarget& AddLifecycleEvents(const LifecycleEvent& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(value); return *this; } /** *

The lifecycle events of the deployment to this target Lambda function.

*/ inline LambdaTarget& AddLifecycleEvents(LifecycleEvent&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(std::move(value)); return *this; } /** *

A LambdaFunctionInfo object that describes a target Lambda * function.

*/ inline const LambdaFunctionInfo& GetLambdaFunctionInfo() const{ return m_lambdaFunctionInfo; } /** *

A LambdaFunctionInfo object that describes a target Lambda * function.

*/ inline bool LambdaFunctionInfoHasBeenSet() const { return m_lambdaFunctionInfoHasBeenSet; } /** *

A LambdaFunctionInfo object that describes a target Lambda * function.

*/ inline void SetLambdaFunctionInfo(const LambdaFunctionInfo& value) { m_lambdaFunctionInfoHasBeenSet = true; m_lambdaFunctionInfo = value; } /** *

A LambdaFunctionInfo object that describes a target Lambda * function.

*/ inline void SetLambdaFunctionInfo(LambdaFunctionInfo&& value) { m_lambdaFunctionInfoHasBeenSet = true; m_lambdaFunctionInfo = std::move(value); } /** *

A LambdaFunctionInfo object that describes a target Lambda * function.

*/ inline LambdaTarget& WithLambdaFunctionInfo(const LambdaFunctionInfo& value) { SetLambdaFunctionInfo(value); return *this;} /** *

A LambdaFunctionInfo object that describes a target Lambda * function.

*/ inline LambdaTarget& WithLambdaFunctionInfo(LambdaFunctionInfo&& value) { SetLambdaFunctionInfo(std::move(value)); return *this;} private: Aws::String m_deploymentId; bool m_deploymentIdHasBeenSet = false; Aws::String m_targetId; bool m_targetIdHasBeenSet = false; Aws::String m_targetArn; bool m_targetArnHasBeenSet = false; TargetStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet = false; Aws::Vector m_lifecycleEvents; bool m_lifecycleEventsHasBeenSet = false; LambdaFunctionInfo m_lambdaFunctionInfo; bool m_lambdaFunctionInfoHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws