7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codedeploy/model/TargetStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codedeploy/model/LambdaFunctionInfo.h>
13#include <aws/codedeploy/model/LifecycleEvent.h>
52 template<
typename DeploymentIdT = Aws::String>
53 void SetDeploymentId(DeploymentIdT&& value) { m_deploymentIdHasBeenSet =
true; m_deploymentId = std::forward<DeploymentIdT>(value); }
54 template<
typename DeploymentIdT = Aws::String>
65 template<
typename TargetIdT = Aws::String>
66 void SetTargetId(TargetIdT&& value) { m_targetIdHasBeenSet =
true; m_targetId = std::forward<TargetIdT>(value); }
67 template<
typename TargetIdT = Aws::String>
77 template<
typename TargetArnT = Aws::String>
78 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet =
true; m_targetArn = std::forward<TargetArnT>(value); }
79 template<
typename TargetArnT = Aws::String>
100 template<
typename LastUpdatedAtT = Aws::Utils::DateTime>
101 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet =
true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
102 template<
typename LastUpdatedAtT = Aws::Utils::DateTime>
112 template<
typename LifecycleEventsT = Aws::Vector<LifecycleEvent>>
113 void SetLifecycleEvents(LifecycleEventsT&& value) { m_lifecycleEventsHasBeenSet =
true; m_lifecycleEvents = std::forward<LifecycleEventsT>(value); }
114 template<
typename LifecycleEventsT = Aws::Vector<LifecycleEvent>>
116 template<
typename LifecycleEventsT = LifecycleEvent>
117 LambdaTarget&
AddLifecycleEvents(LifecycleEventsT&& value) { m_lifecycleEventsHasBeenSet =
true; m_lifecycleEvents.emplace_back(std::forward<LifecycleEventsT>(value));
return *
this; }
127 template<
typename LambdaFunctionInfoT = LambdaFunctionInfo>
128 void SetLambdaFunctionInfo(LambdaFunctionInfoT&& value) { m_lambdaFunctionInfoHasBeenSet =
true; m_lambdaFunctionInfo = std::forward<LambdaFunctionInfoT>(value); }
129 template<
typename LambdaFunctionInfoT = LambdaFunctionInfo>
135 bool m_deploymentIdHasBeenSet =
false;
138 bool m_targetIdHasBeenSet =
false;
141 bool m_targetArnHasBeenSet =
false;
144 bool m_statusHasBeenSet =
false;
147 bool m_lastUpdatedAtHasBeenSet =
false;
150 bool m_lifecycleEventsHasBeenSet =
false;
152 LambdaFunctionInfo m_lambdaFunctionInfo;
153 bool m_lambdaFunctionInfoHasBeenSet =
false;
bool LifecycleEventsHasBeenSet() const
bool TargetIdHasBeenSet() const
const Aws::Vector< LifecycleEvent > & GetLifecycleEvents() const
bool LastUpdatedAtHasBeenSet() const
LambdaTarget & WithLastUpdatedAt(LastUpdatedAtT &&value)
LambdaTarget & WithDeploymentId(DeploymentIdT &&value)
AWS_CODEDEPLOY_API LambdaTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
TargetStatus GetStatus() const
void SetLastUpdatedAt(LastUpdatedAtT &&value)
bool LambdaFunctionInfoHasBeenSet() const
const Aws::String & GetDeploymentId() const
void SetDeploymentId(DeploymentIdT &&value)
void SetLambdaFunctionInfo(LambdaFunctionInfoT &&value)
void SetTargetArn(TargetArnT &&value)
void SetStatus(TargetStatus value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
bool TargetArnHasBeenSet() const
LambdaTarget & AddLifecycleEvents(LifecycleEventsT &&value)
bool DeploymentIdHasBeenSet() const
LambdaTarget & WithTargetArn(TargetArnT &&value)
const Aws::String & GetTargetId() const
LambdaTarget & WithLambdaFunctionInfo(LambdaFunctionInfoT &&value)
LambdaTarget & WithLifecycleEvents(LifecycleEventsT &&value)
const Aws::String & GetTargetArn() const
const Aws::Utils::DateTime & GetLastUpdatedAt() const
bool StatusHasBeenSet() const
LambdaTarget & WithStatus(TargetStatus value)
AWS_CODEDEPLOY_API LambdaTarget(Aws::Utils::Json::JsonView jsonValue)
void SetLifecycleEvents(LifecycleEventsT &&value)
const LambdaFunctionInfo & GetLambdaFunctionInfo() const
void SetTargetId(TargetIdT &&value)
LambdaTarget & WithTargetId(TargetIdT &&value)
AWS_CODEDEPLOY_API LambdaTarget()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue