AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ECSTarget.h
1
6#pragma once
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>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CodeDeploy
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_CODEDEPLOY_API ECSTarget() = default;
41 AWS_CODEDEPLOY_API ECSTarget(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEDEPLOY_API ECSTarget& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
51 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
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>
55 ECSTarget& WithDeploymentId(DeploymentIdT&& value) { SetDeploymentId(std::forward<DeploymentIdT>(value)); return *this;}
57
59
63 inline const Aws::String& GetTargetId() const { return m_targetId; }
64 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
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>
68 ECSTarget& WithTargetId(TargetIdT&& value) { SetTargetId(std::forward<TargetIdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
76 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
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>
80 ECSTarget& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
82
84
88 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
89 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
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>
93 ECSTarget& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
95
97
101 inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const { return m_lifecycleEvents; }
102 inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
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>>
106 ECSTarget& WithLifecycleEvents(LifecycleEventsT&& value) { SetLifecycleEvents(std::forward<LifecycleEventsT>(value)); return *this;}
107 template<typename LifecycleEventsT = LifecycleEvent>
108 ECSTarget& AddLifecycleEvents(LifecycleEventsT&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.emplace_back(std::forward<LifecycleEventsT>(value)); return *this; }
110
112
115 inline TargetStatus GetStatus() const { return m_status; }
116 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
117 inline void SetStatus(TargetStatus value) { m_statusHasBeenSet = true; m_status = value; }
118 inline ECSTarget& WithStatus(TargetStatus value) { SetStatus(value); return *this;}
120
122
125 inline const Aws::Vector<ECSTaskSet>& GetTaskSetsInfo() const { return m_taskSetsInfo; }
126 inline bool TaskSetsInfoHasBeenSet() const { return m_taskSetsInfoHasBeenSet; }
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>>
130 ECSTarget& WithTaskSetsInfo(TaskSetsInfoT&& value) { SetTaskSetsInfo(std::forward<TaskSetsInfoT>(value)); return *this;}
131 template<typename TaskSetsInfoT = ECSTaskSet>
132 ECSTarget& AddTaskSetsInfo(TaskSetsInfoT&& value) { m_taskSetsInfoHasBeenSet = true; m_taskSetsInfo.emplace_back(std::forward<TaskSetsInfoT>(value)); return *this; }
134 private:
135
136 Aws::String m_deploymentId;
137 bool m_deploymentIdHasBeenSet = false;
138
139 Aws::String m_targetId;
140 bool m_targetIdHasBeenSet = false;
141
142 Aws::String m_targetArn;
143 bool m_targetArnHasBeenSet = false;
144
145 Aws::Utils::DateTime m_lastUpdatedAt{};
146 bool m_lastUpdatedAtHasBeenSet = false;
147
148 Aws::Vector<LifecycleEvent> m_lifecycleEvents;
149 bool m_lifecycleEventsHasBeenSet = false;
150
152 bool m_statusHasBeenSet = false;
153
154 Aws::Vector<ECSTaskSet> m_taskSetsInfo;
155 bool m_taskSetsInfoHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace CodeDeploy
160} // namespace Aws
TargetStatus GetStatus() const
Definition ECSTarget.h:115
void SetStatus(TargetStatus value)
Definition ECSTarget.h:117
AWS_CODEDEPLOY_API ECSTarget(Aws::Utils::Json::JsonView jsonValue)
ECSTarget & WithLifecycleEvents(LifecycleEventsT &&value)
Definition ECSTarget.h:106
const Aws::Vector< ECSTaskSet > & GetTaskSetsInfo() const
Definition ECSTarget.h:125
ECSTarget & WithTargetArn(TargetArnT &&value)
Definition ECSTarget.h:80
ECSTarget & WithDeploymentId(DeploymentIdT &&value)
Definition ECSTarget.h:55
const Aws::String & GetTargetArn() const
Definition ECSTarget.h:75
ECSTarget & AddLifecycleEvents(LifecycleEventsT &&value)
Definition ECSTarget.h:108
AWS_CODEDEPLOY_API ECSTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetId(TargetIdT &&value)
Definition ECSTarget.h:66
void SetLifecycleEvents(LifecycleEventsT &&value)
Definition ECSTarget.h:104
ECSTarget & AddTaskSetsInfo(TaskSetsInfoT &&value)
Definition ECSTarget.h:132
ECSTarget & WithStatus(TargetStatus value)
Definition ECSTarget.h:118
void SetTargetArn(TargetArnT &&value)
Definition ECSTarget.h:78
void SetDeploymentId(DeploymentIdT &&value)
Definition ECSTarget.h:53
ECSTarget & WithLastUpdatedAt(LastUpdatedAtT &&value)
Definition ECSTarget.h:93
const Aws::String & GetTargetId() const
Definition ECSTarget.h:63
AWS_CODEDEPLOY_API ECSTarget()=default
void SetTaskSetsInfo(TaskSetsInfoT &&value)
Definition ECSTarget.h:128
ECSTarget & WithTaskSetsInfo(TaskSetsInfoT &&value)
Definition ECSTarget.h:130
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< LifecycleEvent > & GetLifecycleEvents() const
Definition ECSTarget.h:101
const Aws::String & GetDeploymentId() const
Definition ECSTarget.h:50
void SetLastUpdatedAt(LastUpdatedAtT &&value)
Definition ECSTarget.h:91
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition ECSTarget.h:88
ECSTarget & WithTargetId(TargetIdT &&value)
Definition ECSTarget.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue