AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceDeploymentBrief.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ecs/model/ServiceDeploymentStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECS
24{
25namespace Model
26{
27
36 {
37 public:
42
43
45
48 inline const Aws::String& GetServiceDeploymentArn() const{ return m_serviceDeploymentArn; }
49 inline bool ServiceDeploymentArnHasBeenSet() const { return m_serviceDeploymentArnHasBeenSet; }
50 inline void SetServiceDeploymentArn(const Aws::String& value) { m_serviceDeploymentArnHasBeenSet = true; m_serviceDeploymentArn = value; }
51 inline void SetServiceDeploymentArn(Aws::String&& value) { m_serviceDeploymentArnHasBeenSet = true; m_serviceDeploymentArn = std::move(value); }
52 inline void SetServiceDeploymentArn(const char* value) { m_serviceDeploymentArnHasBeenSet = true; m_serviceDeploymentArn.assign(value); }
54 inline ServiceDeploymentBrief& WithServiceDeploymentArn(Aws::String&& value) { SetServiceDeploymentArn(std::move(value)); return *this;}
55 inline ServiceDeploymentBrief& WithServiceDeploymentArn(const char* value) { SetServiceDeploymentArn(value); return *this;}
57
59
62 inline const Aws::String& GetServiceArn() const{ return m_serviceArn; }
63 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
64 inline void SetServiceArn(const Aws::String& value) { m_serviceArnHasBeenSet = true; m_serviceArn = value; }
65 inline void SetServiceArn(Aws::String&& value) { m_serviceArnHasBeenSet = true; m_serviceArn = std::move(value); }
66 inline void SetServiceArn(const char* value) { m_serviceArnHasBeenSet = true; m_serviceArn.assign(value); }
67 inline ServiceDeploymentBrief& WithServiceArn(const Aws::String& value) { SetServiceArn(value); return *this;}
68 inline ServiceDeploymentBrief& WithServiceArn(Aws::String&& value) { SetServiceArn(std::move(value)); return *this;}
69 inline ServiceDeploymentBrief& WithServiceArn(const char* value) { SetServiceArn(value); return *this;}
71
73
76 inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
77 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
78 inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
79 inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
80 inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
81 inline ServiceDeploymentBrief& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
82 inline ServiceDeploymentBrief& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
83 inline ServiceDeploymentBrief& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
85
87
91 inline const Aws::Utils::DateTime& GetStartedAt() const{ return m_startedAt; }
92 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
93 inline void SetStartedAt(const Aws::Utils::DateTime& value) { m_startedAtHasBeenSet = true; m_startedAt = value; }
94 inline void SetStartedAt(Aws::Utils::DateTime&& value) { m_startedAtHasBeenSet = true; m_startedAt = std::move(value); }
95 inline ServiceDeploymentBrief& WithStartedAt(const Aws::Utils::DateTime& value) { SetStartedAt(value); return *this;}
96 inline ServiceDeploymentBrief& WithStartedAt(Aws::Utils::DateTime&& value) { SetStartedAt(std::move(value)); return *this;}
98
100
104 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
105 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
106 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
107 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
108 inline ServiceDeploymentBrief& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
109 inline ServiceDeploymentBrief& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
111
113
117 inline const Aws::Utils::DateTime& GetFinishedAt() const{ return m_finishedAt; }
118 inline bool FinishedAtHasBeenSet() const { return m_finishedAtHasBeenSet; }
119 inline void SetFinishedAt(const Aws::Utils::DateTime& value) { m_finishedAtHasBeenSet = true; m_finishedAt = value; }
120 inline void SetFinishedAt(Aws::Utils::DateTime&& value) { m_finishedAtHasBeenSet = true; m_finishedAt = std::move(value); }
121 inline ServiceDeploymentBrief& WithFinishedAt(const Aws::Utils::DateTime& value) { SetFinishedAt(value); return *this;}
122 inline ServiceDeploymentBrief& WithFinishedAt(Aws::Utils::DateTime&& value) { SetFinishedAt(std::move(value)); return *this;}
124
126
129 inline const Aws::String& GetTargetServiceRevisionArn() const{ return m_targetServiceRevisionArn; }
130 inline bool TargetServiceRevisionArnHasBeenSet() const { return m_targetServiceRevisionArnHasBeenSet; }
131 inline void SetTargetServiceRevisionArn(const Aws::String& value) { m_targetServiceRevisionArnHasBeenSet = true; m_targetServiceRevisionArn = value; }
132 inline void SetTargetServiceRevisionArn(Aws::String&& value) { m_targetServiceRevisionArnHasBeenSet = true; m_targetServiceRevisionArn = std::move(value); }
133 inline void SetTargetServiceRevisionArn(const char* value) { m_targetServiceRevisionArnHasBeenSet = true; m_targetServiceRevisionArn.assign(value); }
136 inline ServiceDeploymentBrief& WithTargetServiceRevisionArn(const char* value) { SetTargetServiceRevisionArn(value); return *this;}
138
140
143 inline const ServiceDeploymentStatus& GetStatus() const{ return m_status; }
144 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
145 inline void SetStatus(const ServiceDeploymentStatus& value) { m_statusHasBeenSet = true; m_status = value; }
146 inline void SetStatus(ServiceDeploymentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
147 inline ServiceDeploymentBrief& WithStatus(const ServiceDeploymentStatus& value) { SetStatus(value); return *this;}
148 inline ServiceDeploymentBrief& WithStatus(ServiceDeploymentStatus&& value) { SetStatus(std::move(value)); return *this;}
150
152
156 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
157 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
158 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
159 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
160 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
161 inline ServiceDeploymentBrief& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
162 inline ServiceDeploymentBrief& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
163 inline ServiceDeploymentBrief& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
165 private:
166
167 Aws::String m_serviceDeploymentArn;
168 bool m_serviceDeploymentArnHasBeenSet = false;
169
170 Aws::String m_serviceArn;
171 bool m_serviceArnHasBeenSet = false;
172
173 Aws::String m_clusterArn;
174 bool m_clusterArnHasBeenSet = false;
175
176 Aws::Utils::DateTime m_startedAt;
177 bool m_startedAtHasBeenSet = false;
178
179 Aws::Utils::DateTime m_createdAt;
180 bool m_createdAtHasBeenSet = false;
181
182 Aws::Utils::DateTime m_finishedAt;
183 bool m_finishedAtHasBeenSet = false;
184
185 Aws::String m_targetServiceRevisionArn;
186 bool m_targetServiceRevisionArnHasBeenSet = false;
187
189 bool m_statusHasBeenSet = false;
190
191 Aws::String m_statusReason;
192 bool m_statusReasonHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace ECS
197} // namespace Aws
ServiceDeploymentBrief & WithServiceDeploymentArn(Aws::String &&value)
void SetStartedAt(Aws::Utils::DateTime &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
ServiceDeploymentBrief & WithTargetServiceRevisionArn(const char *value)
ServiceDeploymentBrief & WithFinishedAt(Aws::Utils::DateTime &&value)
ServiceDeploymentBrief & WithStatus(ServiceDeploymentStatus &&value)
ServiceDeploymentBrief & WithServiceArn(const Aws::String &value)
ServiceDeploymentBrief & WithStatusReason(const Aws::String &value)
ServiceDeploymentBrief & WithStartedAt(Aws::Utils::DateTime &&value)
void SetStatus(ServiceDeploymentStatus &&value)
ServiceDeploymentBrief & WithCreatedAt(const Aws::Utils::DateTime &value)
ServiceDeploymentBrief & WithClusterArn(const char *value)
void SetClusterArn(const Aws::String &value)
const Aws::Utils::DateTime & GetFinishedAt() const
ServiceDeploymentBrief & WithTargetServiceRevisionArn(Aws::String &&value)
void SetStartedAt(const Aws::Utils::DateTime &value)
ServiceDeploymentBrief & WithStartedAt(const Aws::Utils::DateTime &value)
const ServiceDeploymentStatus & GetStatus() const
void SetTargetServiceRevisionArn(Aws::String &&value)
ServiceDeploymentBrief & WithServiceDeploymentArn(const char *value)
ServiceDeploymentBrief & WithStatus(const ServiceDeploymentStatus &value)
ServiceDeploymentBrief & WithServiceDeploymentArn(const Aws::String &value)
ServiceDeploymentBrief & WithServiceArn(Aws::String &&value)
ServiceDeploymentBrief & WithClusterArn(const Aws::String &value)
ServiceDeploymentBrief & WithServiceArn(const char *value)
AWS_ECS_API ServiceDeploymentBrief(Aws::Utils::Json::JsonView jsonValue)
void SetTargetServiceRevisionArn(const Aws::String &value)
ServiceDeploymentBrief & WithClusterArn(Aws::String &&value)
ServiceDeploymentBrief & WithStatusReason(const char *value)
ServiceDeploymentBrief & WithCreatedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetTargetServiceRevisionArn() const
const Aws::Utils::DateTime & GetStartedAt() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetFinishedAt(const Aws::Utils::DateTime &value)
void SetStatus(const ServiceDeploymentStatus &value)
void SetServiceArn(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
void SetFinishedAt(Aws::Utils::DateTime &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API ServiceDeploymentBrief & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceDeploymentBrief & WithFinishedAt(const Aws::Utils::DateTime &value)
void SetServiceDeploymentArn(const Aws::String &value)
ServiceDeploymentBrief & WithStatusReason(Aws::String &&value)
const Aws::String & GetServiceDeploymentArn() const
ServiceDeploymentBrief & WithTargetServiceRevisionArn(const Aws::String &value)
void SetStatusReason(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue