AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Service.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/proton/model/ServicePipeline.h>
11#include <aws/proton/model/ServiceStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Proton
25{
26namespace Model
27{
28
34 class Service
35 {
36 public:
37 AWS_PROTON_API Service();
38 AWS_PROTON_API Service(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PROTON_API Service& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const{ return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
50 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
51 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
52 inline Service& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline Service& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline Service& WithArn(const char* value) { SetArn(value); return *this;}
56
58
62 inline const Aws::String& GetBranchName() const{ return m_branchName; }
63 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
64 inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
65 inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
66 inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
67 inline Service& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
68 inline Service& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
69 inline Service& WithBranchName(const char* value) { SetBranchName(value); return *this;}
71
73
76 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
77 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
78 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
79 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
80 inline Service& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
81 inline Service& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
83
85
88 inline const Aws::String& GetDescription() const{ return m_description; }
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
91 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
92 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
93 inline Service& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
94 inline Service& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
95 inline Service& WithDescription(const char* value) { SetDescription(value); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetLastModifiedAt() const{ return m_lastModifiedAt; }
103 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
104 inline void SetLastModifiedAt(const Aws::Utils::DateTime& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = value; }
105 inline void SetLastModifiedAt(Aws::Utils::DateTime&& value) { m_lastModifiedAtHasBeenSet = true; m_lastModifiedAt = std::move(value); }
106 inline Service& WithLastModifiedAt(const Aws::Utils::DateTime& value) { SetLastModifiedAt(value); return *this;}
107 inline Service& WithLastModifiedAt(Aws::Utils::DateTime&& value) { SetLastModifiedAt(std::move(value)); return *this;}
109
111
114 inline const Aws::String& GetName() const{ return m_name; }
115 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
116 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
117 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
118 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
119 inline Service& WithName(const Aws::String& value) { SetName(value); return *this;}
120 inline Service& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
121 inline Service& WithName(const char* value) { SetName(value); return *this;}
123
125
128 inline const ServicePipeline& GetPipeline() const{ return m_pipeline; }
129 inline bool PipelineHasBeenSet() const { return m_pipelineHasBeenSet; }
130 inline void SetPipeline(const ServicePipeline& value) { m_pipelineHasBeenSet = true; m_pipeline = value; }
131 inline void SetPipeline(ServicePipeline&& value) { m_pipelineHasBeenSet = true; m_pipeline = std::move(value); }
132 inline Service& WithPipeline(const ServicePipeline& value) { SetPipeline(value); return *this;}
133 inline Service& WithPipeline(ServicePipeline&& value) { SetPipeline(std::move(value)); return *this;}
135
137
143 inline const Aws::String& GetRepositoryConnectionArn() const{ return m_repositoryConnectionArn; }
144 inline bool RepositoryConnectionArnHasBeenSet() const { return m_repositoryConnectionArnHasBeenSet; }
145 inline void SetRepositoryConnectionArn(const Aws::String& value) { m_repositoryConnectionArnHasBeenSet = true; m_repositoryConnectionArn = value; }
146 inline void SetRepositoryConnectionArn(Aws::String&& value) { m_repositoryConnectionArnHasBeenSet = true; m_repositoryConnectionArn = std::move(value); }
147 inline void SetRepositoryConnectionArn(const char* value) { m_repositoryConnectionArnHasBeenSet = true; m_repositoryConnectionArn.assign(value); }
148 inline Service& WithRepositoryConnectionArn(const Aws::String& value) { SetRepositoryConnectionArn(value); return *this;}
149 inline Service& WithRepositoryConnectionArn(Aws::String&& value) { SetRepositoryConnectionArn(std::move(value)); return *this;}
150 inline Service& WithRepositoryConnectionArn(const char* value) { SetRepositoryConnectionArn(value); return *this;}
152
154
157 inline const Aws::String& GetRepositoryId() const{ return m_repositoryId; }
158 inline bool RepositoryIdHasBeenSet() const { return m_repositoryIdHasBeenSet; }
159 inline void SetRepositoryId(const Aws::String& value) { m_repositoryIdHasBeenSet = true; m_repositoryId = value; }
160 inline void SetRepositoryId(Aws::String&& value) { m_repositoryIdHasBeenSet = true; m_repositoryId = std::move(value); }
161 inline void SetRepositoryId(const char* value) { m_repositoryIdHasBeenSet = true; m_repositoryId.assign(value); }
162 inline Service& WithRepositoryId(const Aws::String& value) { SetRepositoryId(value); return *this;}
163 inline Service& WithRepositoryId(Aws::String&& value) { SetRepositoryId(std::move(value)); return *this;}
164 inline Service& WithRepositoryId(const char* value) { SetRepositoryId(value); return *this;}
166
168
171 inline const Aws::String& GetSpec() const{ return m_spec; }
172 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
173 inline void SetSpec(const Aws::String& value) { m_specHasBeenSet = true; m_spec = value; }
174 inline void SetSpec(Aws::String&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
175 inline void SetSpec(const char* value) { m_specHasBeenSet = true; m_spec.assign(value); }
176 inline Service& WithSpec(const Aws::String& value) { SetSpec(value); return *this;}
177 inline Service& WithSpec(Aws::String&& value) { SetSpec(std::move(value)); return *this;}
178 inline Service& WithSpec(const char* value) { SetSpec(value); return *this;}
180
182
185 inline const ServiceStatus& GetStatus() const{ return m_status; }
186 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
187 inline void SetStatus(const ServiceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
188 inline void SetStatus(ServiceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
189 inline Service& WithStatus(const ServiceStatus& value) { SetStatus(value); return *this;}
190 inline Service& WithStatus(ServiceStatus&& value) { SetStatus(std::move(value)); return *this;}
192
194
197 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
198 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
199 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
200 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
201 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
202 inline Service& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
203 inline Service& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
204 inline Service& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
206
208
211 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
212 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
213 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
214 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
215 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
216 inline Service& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
217 inline Service& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
218 inline Service& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
220 private:
221
222 Aws::String m_arn;
223 bool m_arnHasBeenSet = false;
224
225 Aws::String m_branchName;
226 bool m_branchNameHasBeenSet = false;
227
228 Aws::Utils::DateTime m_createdAt;
229 bool m_createdAtHasBeenSet = false;
230
231 Aws::String m_description;
232 bool m_descriptionHasBeenSet = false;
233
234 Aws::Utils::DateTime m_lastModifiedAt;
235 bool m_lastModifiedAtHasBeenSet = false;
236
237 Aws::String m_name;
238 bool m_nameHasBeenSet = false;
239
240 ServicePipeline m_pipeline;
241 bool m_pipelineHasBeenSet = false;
242
243 Aws::String m_repositoryConnectionArn;
244 bool m_repositoryConnectionArnHasBeenSet = false;
245
246 Aws::String m_repositoryId;
247 bool m_repositoryIdHasBeenSet = false;
248
249 Aws::String m_spec;
250 bool m_specHasBeenSet = false;
251
252 ServiceStatus m_status;
253 bool m_statusHasBeenSet = false;
254
255 Aws::String m_statusMessage;
256 bool m_statusMessageHasBeenSet = false;
257
258 Aws::String m_templateName;
259 bool m_templateNameHasBeenSet = false;
260 };
261
262} // namespace Model
263} // namespace Proton
264} // namespace Aws
void SetSpec(const char *value)
Definition Service.h:175
void SetDescription(const char *value)
Definition Service.h:92
AWS_PROTON_API Service()
void SetArn(Aws::String &&value)
Definition Service.h:50
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Service.h:78
Service & WithName(Aws::String &&value)
Definition Service.h:120
Service & WithRepositoryConnectionArn(const Aws::String &value)
Definition Service.h:148
void SetTemplateName(const Aws::String &value)
Definition Service.h:213
Service & WithDescription(Aws::String &&value)
Definition Service.h:94
Service & WithPipeline(const ServicePipeline &value)
Definition Service.h:132
void SetLastModifiedAt(Aws::Utils::DateTime &&value)
Definition Service.h:105
Service & WithLastModifiedAt(Aws::Utils::DateTime &&value)
Definition Service.h:107
Service & WithArn(Aws::String &&value)
Definition Service.h:53
Service & WithLastModifiedAt(const Aws::Utils::DateTime &value)
Definition Service.h:106
Service & WithStatusMessage(const char *value)
Definition Service.h:204
const Aws::String & GetRepositoryId() const
Definition Service.h:157
Service & WithBranchName(Aws::String &&value)
Definition Service.h:68
void SetStatus(const ServiceStatus &value)
Definition Service.h:187
Service & WithDescription(const char *value)
Definition Service.h:95
void SetRepositoryConnectionArn(Aws::String &&value)
Definition Service.h:146
const Aws::String & GetDescription() const
Definition Service.h:88
Service & WithStatusMessage(const Aws::String &value)
Definition Service.h:202
Service & WithRepositoryConnectionArn(const char *value)
Definition Service.h:150
Service & WithArn(const Aws::String &value)
Definition Service.h:52
const Aws::String & GetName() const
Definition Service.h:114
void SetTemplateName(Aws::String &&value)
Definition Service.h:214
void SetName(const Aws::String &value)
Definition Service.h:116
Service & WithSpec(const char *value)
Definition Service.h:178
Service & WithTemplateName(const char *value)
Definition Service.h:218
void SetStatus(ServiceStatus &&value)
Definition Service.h:188
void SetRepositoryId(Aws::String &&value)
Definition Service.h:160
bool RepositoryConnectionArnHasBeenSet() const
Definition Service.h:144
bool SpecHasBeenSet() const
Definition Service.h:172
void SetRepositoryConnectionArn(const Aws::String &value)
Definition Service.h:145
bool RepositoryIdHasBeenSet() const
Definition Service.h:158
const Aws::Utils::DateTime & GetLastModifiedAt() const
Definition Service.h:102
const Aws::String & GetSpec() const
Definition Service.h:171
void SetRepositoryId(const Aws::String &value)
Definition Service.h:159
Service & WithRepositoryId(const Aws::String &value)
Definition Service.h:162
Service & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Service.h:80
void SetRepositoryId(const char *value)
Definition Service.h:161
void SetDescription(Aws::String &&value)
Definition Service.h:91
Service & WithDescription(const Aws::String &value)
Definition Service.h:93
Service & WithName(const char *value)
Definition Service.h:121
Service & WithTemplateName(Aws::String &&value)
Definition Service.h:217
void SetTemplateName(const char *value)
Definition Service.h:215
Service & WithSpec(Aws::String &&value)
Definition Service.h:177
void SetBranchName(const char *value)
Definition Service.h:66
void SetArn(const char *value)
Definition Service.h:51
bool ArnHasBeenSet() const
Definition Service.h:48
void SetPipeline(const ServicePipeline &value)
Definition Service.h:130
Service & WithStatusMessage(Aws::String &&value)
Definition Service.h:203
const Aws::String & GetRepositoryConnectionArn() const
Definition Service.h:143
const ServicePipeline & GetPipeline() const
Definition Service.h:128
Service & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Service.h:81
void SetStatusMessage(const Aws::String &value)
Definition Service.h:199
bool LastModifiedAtHasBeenSet() const
Definition Service.h:103
void SetArn(const Aws::String &value)
Definition Service.h:49
bool StatusMessageHasBeenSet() const
Definition Service.h:198
void SetBranchName(Aws::String &&value)
Definition Service.h:65
const Aws::String & GetTemplateName() const
Definition Service.h:211
const Aws::String & GetBranchName() const
Definition Service.h:62
void SetBranchName(const Aws::String &value)
Definition Service.h:64
bool BranchNameHasBeenSet() const
Definition Service.h:63
void SetName(Aws::String &&value)
Definition Service.h:117
AWS_PROTON_API Service(Aws::Utils::Json::JsonView jsonValue)
bool DescriptionHasBeenSet() const
Definition Service.h:89
Service & WithArn(const char *value)
Definition Service.h:54
void SetLastModifiedAt(const Aws::Utils::DateTime &value)
Definition Service.h:104
AWS_PROTON_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
Service & WithBranchName(const char *value)
Definition Service.h:69
Service & WithName(const Aws::String &value)
Definition Service.h:119
bool NameHasBeenSet() const
Definition Service.h:115
void SetSpec(Aws::String &&value)
Definition Service.h:174
Service & WithRepositoryId(const char *value)
Definition Service.h:164
void SetSpec(const Aws::String &value)
Definition Service.h:173
void SetRepositoryConnectionArn(const char *value)
Definition Service.h:147
void SetPipeline(ServicePipeline &&value)
Definition Service.h:131
Service & WithStatus(const ServiceStatus &value)
Definition Service.h:189
bool CreatedAtHasBeenSet() const
Definition Service.h:77
Service & WithPipeline(ServicePipeline &&value)
Definition Service.h:133
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Service.h:76
Service & WithTemplateName(const Aws::String &value)
Definition Service.h:216
bool PipelineHasBeenSet() const
Definition Service.h:129
void SetDescription(const Aws::String &value)
Definition Service.h:90
bool TemplateNameHasBeenSet() const
Definition Service.h:212
void SetStatusMessage(const char *value)
Definition Service.h:201
Service & WithRepositoryId(Aws::String &&value)
Definition Service.h:163
Service & WithRepositoryConnectionArn(Aws::String &&value)
Definition Service.h:149
const ServiceStatus & GetStatus() const
Definition Service.h:185
const Aws::String & GetStatusMessage() const
Definition Service.h:197
const Aws::String & GetArn() const
Definition Service.h:47
bool StatusHasBeenSet() const
Definition Service.h:186
Service & WithBranchName(const Aws::String &value)
Definition Service.h:67
void SetName(const char *value)
Definition Service.h:118
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Service.h:79
Service & WithStatus(ServiceStatus &&value)
Definition Service.h:190
Service & WithSpec(const Aws::String &value)
Definition Service.h:176
void SetStatusMessage(Aws::String &&value)
Definition Service.h:200
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue