AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
53 inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
54 inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
55 inline ECSTarget& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
56 inline ECSTarget& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
57 inline ECSTarget& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
59
61
65 inline const Aws::String& GetTargetId() const{ return m_targetId; }
66 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
67 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
68 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
69 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
70 inline ECSTarget& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
71 inline ECSTarget& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
72 inline ECSTarget& WithTargetId(const char* value) { SetTargetId(value); return *this;}
74
76
79 inline const Aws::String& GetTargetArn() const{ return m_targetArn; }
80 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
81 inline void SetTargetArn(const Aws::String& value) { m_targetArnHasBeenSet = true; m_targetArn = value; }
82 inline void SetTargetArn(Aws::String&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::move(value); }
83 inline void SetTargetArn(const char* value) { m_targetArnHasBeenSet = true; m_targetArn.assign(value); }
84 inline ECSTarget& WithTargetArn(const Aws::String& value) { SetTargetArn(value); return *this;}
85 inline ECSTarget& WithTargetArn(Aws::String&& value) { SetTargetArn(std::move(value)); return *this;}
86 inline ECSTarget& WithTargetArn(const char* value) { SetTargetArn(value); return *this;}
88
90
94 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
95 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
96 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
97 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
98 inline ECSTarget& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
99 inline ECSTarget& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
101
103
107 inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const{ return m_lifecycleEvents; }
108 inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
109 inline void SetLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = value; }
110 inline void SetLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = std::move(value); }
112 inline ECSTarget& WithLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { SetLifecycleEvents(std::move(value)); return *this;}
113 inline ECSTarget& AddLifecycleEvents(const LifecycleEvent& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(value); return *this; }
114 inline ECSTarget& AddLifecycleEvents(LifecycleEvent&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(std::move(value)); return *this; }
116
118
121 inline const TargetStatus& GetStatus() const{ return m_status; }
122 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
123 inline void SetStatus(const TargetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
124 inline void SetStatus(TargetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
125 inline ECSTarget& WithStatus(const TargetStatus& value) { SetStatus(value); return *this;}
126 inline ECSTarget& WithStatus(TargetStatus&& value) { SetStatus(std::move(value)); return *this;}
128
130
133 inline const Aws::Vector<ECSTaskSet>& GetTaskSetsInfo() const{ return m_taskSetsInfo; }
134 inline bool TaskSetsInfoHasBeenSet() const { return m_taskSetsInfoHasBeenSet; }
135 inline void SetTaskSetsInfo(const Aws::Vector<ECSTaskSet>& value) { m_taskSetsInfoHasBeenSet = true; m_taskSetsInfo = value; }
136 inline void SetTaskSetsInfo(Aws::Vector<ECSTaskSet>&& value) { m_taskSetsInfoHasBeenSet = true; m_taskSetsInfo = std::move(value); }
137 inline ECSTarget& WithTaskSetsInfo(const Aws::Vector<ECSTaskSet>& value) { SetTaskSetsInfo(value); return *this;}
138 inline ECSTarget& WithTaskSetsInfo(Aws::Vector<ECSTaskSet>&& value) { SetTaskSetsInfo(std::move(value)); return *this;}
139 inline ECSTarget& AddTaskSetsInfo(const ECSTaskSet& value) { m_taskSetsInfoHasBeenSet = true; m_taskSetsInfo.push_back(value); return *this; }
140 inline ECSTarget& AddTaskSetsInfo(ECSTaskSet&& value) { m_taskSetsInfoHasBeenSet = true; m_taskSetsInfo.push_back(std::move(value)); return *this; }
142 private:
143
144 Aws::String m_deploymentId;
145 bool m_deploymentIdHasBeenSet = false;
146
147 Aws::String m_targetId;
148 bool m_targetIdHasBeenSet = false;
149
150 Aws::String m_targetArn;
151 bool m_targetArnHasBeenSet = false;
152
153 Aws::Utils::DateTime m_lastUpdatedAt;
154 bool m_lastUpdatedAtHasBeenSet = false;
155
156 Aws::Vector<LifecycleEvent> m_lifecycleEvents;
157 bool m_lifecycleEventsHasBeenSet = false;
158
159 TargetStatus m_status;
160 bool m_statusHasBeenSet = false;
161
162 Aws::Vector<ECSTaskSet> m_taskSetsInfo;
163 bool m_taskSetsInfoHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace CodeDeploy
168} // namespace Aws
ECSTarget & AddLifecycleEvents(const LifecycleEvent &value)
Definition ECSTarget.h:113
ECSTarget & AddTaskSetsInfo(ECSTaskSet &&value)
Definition ECSTarget.h:140
ECSTarget & AddLifecycleEvents(LifecycleEvent &&value)
Definition ECSTarget.h:114
void SetTargetId(const Aws::String &value)
Definition ECSTarget.h:67
ECSTarget & WithTargetId(const Aws::String &value)
Definition ECSTarget.h:70
void SetStatus(const TargetStatus &value)
Definition ECSTarget.h:123
void SetTargetId(const char *value)
Definition ECSTarget.h:69
ECSTarget & WithDeploymentId(Aws::String &&value)
Definition ECSTarget.h:56
ECSTarget & WithTaskSetsInfo(const Aws::Vector< ECSTaskSet > &value)
Definition ECSTarget.h:137
ECSTarget & WithLifecycleEvents(const Aws::Vector< LifecycleEvent > &value)
Definition ECSTarget.h:111
ECSTarget & WithLifecycleEvents(Aws::Vector< LifecycleEvent > &&value)
Definition ECSTarget.h:112
void SetDeploymentId(const char *value)
Definition ECSTarget.h:54
ECSTarget & WithStatus(const TargetStatus &value)
Definition ECSTarget.h:125
AWS_CODEDEPLOY_API ECSTarget(Aws::Utils::Json::JsonView jsonValue)
const TargetStatus & GetStatus() const
Definition ECSTarget.h:121
void SetTaskSetsInfo(const Aws::Vector< ECSTaskSet > &value)
Definition ECSTarget.h:135
ECSTarget & WithDeploymentId(const Aws::String &value)
Definition ECSTarget.h:55
void SetTargetArn(const Aws::String &value)
Definition ECSTarget.h:81
const Aws::Vector< ECSTaskSet > & GetTaskSetsInfo() const
Definition ECSTarget.h:133
ECSTarget & WithTargetArn(const Aws::String &value)
Definition ECSTarget.h:84
void SetLifecycleEvents(const Aws::Vector< LifecycleEvent > &value)
Definition ECSTarget.h:109
const Aws::String & GetTargetArn() const
Definition ECSTarget.h:79
void SetDeploymentId(Aws::String &&value)
Definition ECSTarget.h:53
ECSTarget & WithStatus(TargetStatus &&value)
Definition ECSTarget.h:126
ECSTarget & WithTargetArn(const char *value)
Definition ECSTarget.h:86
ECSTarget & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition ECSTarget.h:99
AWS_CODEDEPLOY_API ECSTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetArn(Aws::String &&value)
Definition ECSTarget.h:82
ECSTarget & WithTargetId(const char *value)
Definition ECSTarget.h:72
ECSTarget & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition ECSTarget.h:98
void SetTaskSetsInfo(Aws::Vector< ECSTaskSet > &&value)
Definition ECSTarget.h:136
void SetStatus(TargetStatus &&value)
Definition ECSTarget.h:124
ECSTarget & WithTaskSetsInfo(Aws::Vector< ECSTaskSet > &&value)
Definition ECSTarget.h:138
const Aws::String & GetTargetId() const
Definition ECSTarget.h:65
ECSTarget & WithDeploymentId(const char *value)
Definition ECSTarget.h:57
AWS_CODEDEPLOY_API ECSTarget()
ECSTarget & WithTargetId(Aws::String &&value)
Definition ECSTarget.h:71
void SetDeploymentId(const Aws::String &value)
Definition ECSTarget.h:52
void SetLifecycleEvents(Aws::Vector< LifecycleEvent > &&value)
Definition ECSTarget.h:110
ECSTarget & AddTaskSetsInfo(const ECSTaskSet &value)
Definition ECSTarget.h:139
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetArn(const char *value)
Definition ECSTarget.h:83
ECSTarget & WithTargetArn(Aws::String &&value)
Definition ECSTarget.h:85
const Aws::Vector< LifecycleEvent > & GetLifecycleEvents() const
Definition ECSTarget.h:107
const Aws::String & GetDeploymentId() const
Definition ECSTarget.h:50
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
Definition ECSTarget.h:97
void SetTargetId(Aws::String &&value)
Definition ECSTarget.h:68
const Aws::Utils::DateTime & GetLastUpdatedAt() const
Definition ECSTarget.h:94
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
Definition ECSTarget.h:96
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue