7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codedeploy/model/TargetStatus.h>
12#include <aws/codedeploy/model/LifecycleEvent.h>
13#include <aws/codedeploy/model/ECSTaskSet.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>
90 template<
typename LastUpdatedAtT = Aws::Utils::DateTime>
91 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet =
true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
92 template<
typename LastUpdatedAtT = Aws::Utils::DateTime>
103 template<
typename LifecycleEventsT = Aws::Vector<LifecycleEvent>>
104 void SetLifecycleEvents(LifecycleEventsT&& value) { m_lifecycleEventsHasBeenSet =
true; m_lifecycleEvents = std::forward<LifecycleEventsT>(value); }
105 template<
typename LifecycleEventsT = Aws::Vector<LifecycleEvent>>
107 template<
typename LifecycleEventsT = LifecycleEvent>
108 ECSTarget&
AddLifecycleEvents(LifecycleEventsT&& value) { m_lifecycleEventsHasBeenSet =
true; m_lifecycleEvents.emplace_back(std::forward<LifecycleEventsT>(value));
return *
this; }
127 template<
typename TaskSetsInfoT = Aws::Vector<ECSTaskSet>>
128 void SetTaskSetsInfo(TaskSetsInfoT&& value) { m_taskSetsInfoHasBeenSet =
true; m_taskSetsInfo = std::forward<TaskSetsInfoT>(value); }
129 template<
typename TaskSetsInfoT = Aws::Vector<ECSTaskSet>>
131 template<
typename TaskSetsInfoT = ECSTaskSet>
132 ECSTarget&
AddTaskSetsInfo(TaskSetsInfoT&& value) { m_taskSetsInfoHasBeenSet =
true; m_taskSetsInfo.emplace_back(std::forward<TaskSetsInfoT>(value));
return *
this; }
137 bool m_deploymentIdHasBeenSet =
false;
140 bool m_targetIdHasBeenSet =
false;
143 bool m_targetArnHasBeenSet =
false;
146 bool m_lastUpdatedAtHasBeenSet =
false;
149 bool m_lifecycleEventsHasBeenSet =
false;
152 bool m_statusHasBeenSet =
false;
155 bool m_taskSetsInfoHasBeenSet =
false;
TargetStatus GetStatus() const
bool LifecycleEventsHasBeenSet() const
bool StatusHasBeenSet() const
bool TaskSetsInfoHasBeenSet() const
void SetStatus(TargetStatus value)
AWS_CODEDEPLOY_API ECSTarget(Aws::Utils::Json::JsonView jsonValue)
bool TargetIdHasBeenSet() const
ECSTarget & WithLifecycleEvents(LifecycleEventsT &&value)
const Aws::Vector< ECSTaskSet > & GetTaskSetsInfo() const
ECSTarget & WithTargetArn(TargetArnT &&value)
ECSTarget & WithDeploymentId(DeploymentIdT &&value)
const Aws::String & GetTargetArn() const
ECSTarget & AddLifecycleEvents(LifecycleEventsT &&value)
bool LastUpdatedAtHasBeenSet() const
AWS_CODEDEPLOY_API ECSTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetId(TargetIdT &&value)
void SetLifecycleEvents(LifecycleEventsT &&value)
bool TargetArnHasBeenSet() const
ECSTarget & AddTaskSetsInfo(TaskSetsInfoT &&value)
ECSTarget & WithStatus(TargetStatus value)
void SetTargetArn(TargetArnT &&value)
void SetDeploymentId(DeploymentIdT &&value)
ECSTarget & WithLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::String & GetTargetId() const
bool DeploymentIdHasBeenSet() const
AWS_CODEDEPLOY_API ECSTarget()=default
void SetTaskSetsInfo(TaskSetsInfoT &&value)
ECSTarget & WithTaskSetsInfo(TaskSetsInfoT &&value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< LifecycleEvent > & GetLifecycleEvents() const
const Aws::String & GetDeploymentId() const
void SetLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
ECSTarget & WithTargetId(TargetIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue