1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>A complex type that contains information about the specified service.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Service {
/// <p>The ID that Cloud Map assigned to the service when you created it.</p>
pub id: ::std::option::Option<::std::string::String>,
/// <p>The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.</p>
pub arn: ::std::option::Option<::std::string::String>,
/// <p>The ID of the Amazon Web Services account that created the namespace with which the service is associated. If this isn't your account ID, it is the ID of the account that shared the namespace with your account. For more information about shared namespaces, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html">Cross-account Cloud Map namespace sharing</a> in the <i>Cloud Map Developer Guide</i>.</p>
pub resource_owner: ::std::option::Option<::std::string::String>,
/// <p>The name of the service.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>The ID of the namespace that was used to create the service.</p>
pub namespace_id: ::std::option::Option<::std::string::String>,
/// <p>The description of the service.</p>
pub description: ::std::option::Option<::std::string::String>,
/// <p>The number of instances that are currently associated with the service. Instances that were previously associated with the service but that are deleted aren't included in the count. The count might not reflect pending registrations and deregistrations.</p>
pub instance_count: ::std::option::Option<i32>,
/// <p>A complex type that contains information about the Route 53 DNS records that you want Cloud Map to create when you register an instance.</p><important>
/// <p>The record types of a service can only be changed by deleting the service and recreating it with a new <code>Dnsconfig</code>.</p>
/// </important>
pub dns_config: ::std::option::Option<crate::types::DnsConfig>,
/// <p>Describes the systems that can be used to discover the service instances.</p>
/// <dl>
/// <dt>
/// DNS_HTTP
/// </dt>
/// <dd>
/// <p>The service instances can be discovered using either DNS queries or the <code>DiscoverInstances</code> API operation.</p>
/// </dd>
/// <dt>
/// HTTP
/// </dt>
/// <dd>
/// <p>The service instances can only be discovered using the <code>DiscoverInstances</code> API operation.</p>
/// </dd>
/// <dt>
/// DNS
/// </dt>
/// <dd>
/// <p>Reserved.</p>
/// </dd>
/// </dl>
pub r#type: ::std::option::Option<crate::types::ServiceType>,
/// <p><i>Public DNS and HTTP namespaces only.</i> A complex type that contains settings for an optional health check. If you specify settings for a health check, Cloud Map associates the health check with the records that you specify in <code>DnsConfig</code>.</p>
/// <p>For information about the charges for health checks, see <a href="http://aws.amazon.com/route53/pricing/">Amazon Route 53 Pricing</a>.</p>
pub health_check_config: ::std::option::Option<crate::types::HealthCheckConfig>,
/// <p>A complex type that contains information about an optional custom health check.</p><important>
/// <p>If you specify a health check configuration, you can specify either <code>HealthCheckCustomConfig</code> or <code>HealthCheckConfig</code> but not both.</p>
/// </important>
pub health_check_custom_config: ::std::option::Option<crate::types::HealthCheckCustomConfig>,
/// <p>The date and time that the service was created, in Unix format and Coordinated Universal Time (UTC). The value of <code>CreateDate</code> is accurate to milliseconds. For example, the value <code>1516925490.087</code> represents Friday, January 26, 2018 12:11:30.087 AM.</p>
pub create_date: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>A unique string that identifies the request and that allows failed requests to be retried without the risk of running the operation twice. <code>CreatorRequestId</code> can be any unique string (for example, a date/timestamp).</p>
pub creator_request_id: ::std::option::Option<::std::string::String>,
/// <p>The ID of the Amazon Web Services account that created the service. If this isn't your account ID, it is the ID of account of the namespace owner or of another account with which the namespace has been shared. For more information about shared namespaces, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html">Cross-account Cloud Map namespace sharing</a> in the <i>Cloud Map Developer Guide</i>.</p>
pub created_by_account: ::std::option::Option<::std::string::String>,
}
impl Service {
/// <p>The ID that Cloud Map assigned to the service when you created it.</p>
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
/// <p>The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.</p>
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The ID of the Amazon Web Services account that created the namespace with which the service is associated. If this isn't your account ID, it is the ID of the account that shared the namespace with your account. For more information about shared namespaces, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html">Cross-account Cloud Map namespace sharing</a> in the <i>Cloud Map Developer Guide</i>.</p>
pub fn resource_owner(&self) -> ::std::option::Option<&str> {
self.resource_owner.as_deref()
}
/// <p>The name of the service.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The ID of the namespace that was used to create the service.</p>
pub fn namespace_id(&self) -> ::std::option::Option<&str> {
self.namespace_id.as_deref()
}
/// <p>The description of the service.</p>
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The number of instances that are currently associated with the service. Instances that were previously associated with the service but that are deleted aren't included in the count. The count might not reflect pending registrations and deregistrations.</p>
pub fn instance_count(&self) -> ::std::option::Option<i32> {
self.instance_count
}
/// <p>A complex type that contains information about the Route 53 DNS records that you want Cloud Map to create when you register an instance.</p><important>
/// <p>The record types of a service can only be changed by deleting the service and recreating it with a new <code>Dnsconfig</code>.</p>
/// </important>
pub fn dns_config(&self) -> ::std::option::Option<&crate::types::DnsConfig> {
self.dns_config.as_ref()
}
/// <p>Describes the systems that can be used to discover the service instances.</p>
/// <dl>
/// <dt>
/// DNS_HTTP
/// </dt>
/// <dd>
/// <p>The service instances can be discovered using either DNS queries or the <code>DiscoverInstances</code> API operation.</p>
/// </dd>
/// <dt>
/// HTTP
/// </dt>
/// <dd>
/// <p>The service instances can only be discovered using the <code>DiscoverInstances</code> API operation.</p>
/// </dd>
/// <dt>
/// DNS
/// </dt>
/// <dd>
/// <p>Reserved.</p>
/// </dd>
/// </dl>
pub fn r#type(&self) -> ::std::option::Option<&crate::types::ServiceType> {
self.r#type.as_ref()
}
/// <p><i>Public DNS and HTTP namespaces only.</i> A complex type that contains settings for an optional health check. If you specify settings for a health check, Cloud Map associates the health check with the records that you specify in <code>DnsConfig</code>.</p>
/// <p>For information about the charges for health checks, see <a href="http://aws.amazon.com/route53/pricing/">Amazon Route 53 Pricing</a>.</p>
pub fn health_check_config(&self) -> ::std::option::Option<&crate::types::HealthCheckConfig> {
self.health_check_config.as_ref()
}
/// <p>A complex type that contains information about an optional custom health check.</p><important>
/// <p>If you specify a health check configuration, you can specify either <code>HealthCheckCustomConfig</code> or <code>HealthCheckConfig</code> but not both.</p>
/// </important>
pub fn health_check_custom_config(&self) -> ::std::option::Option<&crate::types::HealthCheckCustomConfig> {
self.health_check_custom_config.as_ref()
}
/// <p>The date and time that the service was created, in Unix format and Coordinated Universal Time (UTC). The value of <code>CreateDate</code> is accurate to milliseconds. For example, the value <code>1516925490.087</code> represents Friday, January 26, 2018 12:11:30.087 AM.</p>
pub fn create_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.create_date.as_ref()
}
/// <p>A unique string that identifies the request and that allows failed requests to be retried without the risk of running the operation twice. <code>CreatorRequestId</code> can be any unique string (for example, a date/timestamp).</p>
pub fn creator_request_id(&self) -> ::std::option::Option<&str> {
self.creator_request_id.as_deref()
}
/// <p>The ID of the Amazon Web Services account that created the service. If this isn't your account ID, it is the ID of account of the namespace owner or of another account with which the namespace has been shared. For more information about shared namespaces, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html">Cross-account Cloud Map namespace sharing</a> in the <i>Cloud Map Developer Guide</i>.</p>
pub fn created_by_account(&self) -> ::std::option::Option<&str> {
self.created_by_account.as_deref()
}
}
impl Service {
/// Creates a new builder-style object to manufacture [`Service`](crate::types::Service).
pub fn builder() -> crate::types::builders::ServiceBuilder {
crate::types::builders::ServiceBuilder::default()
}
}
/// A builder for [`Service`](crate::types::Service).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ServiceBuilder {
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) resource_owner: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) namespace_id: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) instance_count: ::std::option::Option<i32>,
pub(crate) dns_config: ::std::option::Option<crate::types::DnsConfig>,
pub(crate) r#type: ::std::option::Option<crate::types::ServiceType>,
pub(crate) health_check_config: ::std::option::Option<crate::types::HealthCheckConfig>,
pub(crate) health_check_custom_config: ::std::option::Option<crate::types::HealthCheckCustomConfig>,
pub(crate) create_date: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) creator_request_id: ::std::option::Option<::std::string::String>,
pub(crate) created_by_account: ::std::option::Option<::std::string::String>,
}
impl ServiceBuilder {
/// <p>The ID that Cloud Map assigned to the service when you created it.</p>
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID that Cloud Map assigned to the service when you created it.</p>
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
/// <p>The ID that Cloud Map assigned to the service when you created it.</p>
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
/// <p>The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.</p>
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.</p>
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The Amazon Resource Name (ARN) that Cloud Map assigns to the service when you create it.</p>
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
/// <p>The ID of the Amazon Web Services account that created the namespace with which the service is associated. If this isn't your account ID, it is the ID of the account that shared the namespace with your account. For more information about shared namespaces, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html">Cross-account Cloud Map namespace sharing</a> in the <i>Cloud Map Developer Guide</i>.</p>
pub fn resource_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.resource_owner = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the Amazon Web Services account that created the namespace with which the service is associated. If this isn't your account ID, it is the ID of the account that shared the namespace with your account. For more information about shared namespaces, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html">Cross-account Cloud Map namespace sharing</a> in the <i>Cloud Map Developer Guide</i>.</p>
pub fn set_resource_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.resource_owner = input;
self
}
/// <p>The ID of the Amazon Web Services account that created the namespace with which the service is associated. If this isn't your account ID, it is the ID of the account that shared the namespace with your account. For more information about shared namespaces, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html">Cross-account Cloud Map namespace sharing</a> in the <i>Cloud Map Developer Guide</i>.</p>
pub fn get_resource_owner(&self) -> &::std::option::Option<::std::string::String> {
&self.resource_owner
}
/// <p>The name of the service.</p>
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the service.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of the service.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p>The ID of the namespace that was used to create the service.</p>
pub fn namespace_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.namespace_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the namespace that was used to create the service.</p>
pub fn set_namespace_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.namespace_id = input;
self
}
/// <p>The ID of the namespace that was used to create the service.</p>
pub fn get_namespace_id(&self) -> &::std::option::Option<::std::string::String> {
&self.namespace_id
}
/// <p>The description of the service.</p>
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
/// <p>The description of the service.</p>
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The description of the service.</p>
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
/// <p>The number of instances that are currently associated with the service. Instances that were previously associated with the service but that are deleted aren't included in the count. The count might not reflect pending registrations and deregistrations.</p>
pub fn instance_count(mut self, input: i32) -> Self {
self.instance_count = ::std::option::Option::Some(input);
self
}
/// <p>The number of instances that are currently associated with the service. Instances that were previously associated with the service but that are deleted aren't included in the count. The count might not reflect pending registrations and deregistrations.</p>
pub fn set_instance_count(mut self, input: ::std::option::Option<i32>) -> Self {
self.instance_count = input;
self
}
/// <p>The number of instances that are currently associated with the service. Instances that were previously associated with the service but that are deleted aren't included in the count. The count might not reflect pending registrations and deregistrations.</p>
pub fn get_instance_count(&self) -> &::std::option::Option<i32> {
&self.instance_count
}
/// <p>A complex type that contains information about the Route 53 DNS records that you want Cloud Map to create when you register an instance.</p><important>
/// <p>The record types of a service can only be changed by deleting the service and recreating it with a new <code>Dnsconfig</code>.</p>
/// </important>
pub fn dns_config(mut self, input: crate::types::DnsConfig) -> Self {
self.dns_config = ::std::option::Option::Some(input);
self
}
/// <p>A complex type that contains information about the Route 53 DNS records that you want Cloud Map to create when you register an instance.</p><important>
/// <p>The record types of a service can only be changed by deleting the service and recreating it with a new <code>Dnsconfig</code>.</p>
/// </important>
pub fn set_dns_config(mut self, input: ::std::option::Option<crate::types::DnsConfig>) -> Self {
self.dns_config = input;
self
}
/// <p>A complex type that contains information about the Route 53 DNS records that you want Cloud Map to create when you register an instance.</p><important>
/// <p>The record types of a service can only be changed by deleting the service and recreating it with a new <code>Dnsconfig</code>.</p>
/// </important>
pub fn get_dns_config(&self) -> &::std::option::Option<crate::types::DnsConfig> {
&self.dns_config
}
/// <p>Describes the systems that can be used to discover the service instances.</p>
/// <dl>
/// <dt>
/// DNS_HTTP
/// </dt>
/// <dd>
/// <p>The service instances can be discovered using either DNS queries or the <code>DiscoverInstances</code> API operation.</p>
/// </dd>
/// <dt>
/// HTTP
/// </dt>
/// <dd>
/// <p>The service instances can only be discovered using the <code>DiscoverInstances</code> API operation.</p>
/// </dd>
/// <dt>
/// DNS
/// </dt>
/// <dd>
/// <p>Reserved.</p>
/// </dd>
/// </dl>
pub fn r#type(mut self, input: crate::types::ServiceType) -> Self {
self.r#type = ::std::option::Option::Some(input);
self
}
/// <p>Describes the systems that can be used to discover the service instances.</p>
/// <dl>
/// <dt>
/// DNS_HTTP
/// </dt>
/// <dd>
/// <p>The service instances can be discovered using either DNS queries or the <code>DiscoverInstances</code> API operation.</p>
/// </dd>
/// <dt>
/// HTTP
/// </dt>
/// <dd>
/// <p>The service instances can only be discovered using the <code>DiscoverInstances</code> API operation.</p>
/// </dd>
/// <dt>
/// DNS
/// </dt>
/// <dd>
/// <p>Reserved.</p>
/// </dd>
/// </dl>
pub fn set_type(mut self, input: ::std::option::Option<crate::types::ServiceType>) -> Self {
self.r#type = input;
self
}
/// <p>Describes the systems that can be used to discover the service instances.</p>
/// <dl>
/// <dt>
/// DNS_HTTP
/// </dt>
/// <dd>
/// <p>The service instances can be discovered using either DNS queries or the <code>DiscoverInstances</code> API operation.</p>
/// </dd>
/// <dt>
/// HTTP
/// </dt>
/// <dd>
/// <p>The service instances can only be discovered using the <code>DiscoverInstances</code> API operation.</p>
/// </dd>
/// <dt>
/// DNS
/// </dt>
/// <dd>
/// <p>Reserved.</p>
/// </dd>
/// </dl>
pub fn get_type(&self) -> &::std::option::Option<crate::types::ServiceType> {
&self.r#type
}
/// <p><i>Public DNS and HTTP namespaces only.</i> A complex type that contains settings for an optional health check. If you specify settings for a health check, Cloud Map associates the health check with the records that you specify in <code>DnsConfig</code>.</p>
/// <p>For information about the charges for health checks, see <a href="http://aws.amazon.com/route53/pricing/">Amazon Route 53 Pricing</a>.</p>
pub fn health_check_config(mut self, input: crate::types::HealthCheckConfig) -> Self {
self.health_check_config = ::std::option::Option::Some(input);
self
}
/// <p><i>Public DNS and HTTP namespaces only.</i> A complex type that contains settings for an optional health check. If you specify settings for a health check, Cloud Map associates the health check with the records that you specify in <code>DnsConfig</code>.</p>
/// <p>For information about the charges for health checks, see <a href="http://aws.amazon.com/route53/pricing/">Amazon Route 53 Pricing</a>.</p>
pub fn set_health_check_config(mut self, input: ::std::option::Option<crate::types::HealthCheckConfig>) -> Self {
self.health_check_config = input;
self
}
/// <p><i>Public DNS and HTTP namespaces only.</i> A complex type that contains settings for an optional health check. If you specify settings for a health check, Cloud Map associates the health check with the records that you specify in <code>DnsConfig</code>.</p>
/// <p>For information about the charges for health checks, see <a href="http://aws.amazon.com/route53/pricing/">Amazon Route 53 Pricing</a>.</p>
pub fn get_health_check_config(&self) -> &::std::option::Option<crate::types::HealthCheckConfig> {
&self.health_check_config
}
/// <p>A complex type that contains information about an optional custom health check.</p><important>
/// <p>If you specify a health check configuration, you can specify either <code>HealthCheckCustomConfig</code> or <code>HealthCheckConfig</code> but not both.</p>
/// </important>
pub fn health_check_custom_config(mut self, input: crate::types::HealthCheckCustomConfig) -> Self {
self.health_check_custom_config = ::std::option::Option::Some(input);
self
}
/// <p>A complex type that contains information about an optional custom health check.</p><important>
/// <p>If you specify a health check configuration, you can specify either <code>HealthCheckCustomConfig</code> or <code>HealthCheckConfig</code> but not both.</p>
/// </important>
pub fn set_health_check_custom_config(mut self, input: ::std::option::Option<crate::types::HealthCheckCustomConfig>) -> Self {
self.health_check_custom_config = input;
self
}
/// <p>A complex type that contains information about an optional custom health check.</p><important>
/// <p>If you specify a health check configuration, you can specify either <code>HealthCheckCustomConfig</code> or <code>HealthCheckConfig</code> but not both.</p>
/// </important>
pub fn get_health_check_custom_config(&self) -> &::std::option::Option<crate::types::HealthCheckCustomConfig> {
&self.health_check_custom_config
}
/// <p>The date and time that the service was created, in Unix format and Coordinated Universal Time (UTC). The value of <code>CreateDate</code> is accurate to milliseconds. For example, the value <code>1516925490.087</code> represents Friday, January 26, 2018 12:11:30.087 AM.</p>
pub fn create_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.create_date = ::std::option::Option::Some(input);
self
}
/// <p>The date and time that the service was created, in Unix format and Coordinated Universal Time (UTC). The value of <code>CreateDate</code> is accurate to milliseconds. For example, the value <code>1516925490.087</code> represents Friday, January 26, 2018 12:11:30.087 AM.</p>
pub fn set_create_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.create_date = input;
self
}
/// <p>The date and time that the service was created, in Unix format and Coordinated Universal Time (UTC). The value of <code>CreateDate</code> is accurate to milliseconds. For example, the value <code>1516925490.087</code> represents Friday, January 26, 2018 12:11:30.087 AM.</p>
pub fn get_create_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.create_date
}
/// <p>A unique string that identifies the request and that allows failed requests to be retried without the risk of running the operation twice. <code>CreatorRequestId</code> can be any unique string (for example, a date/timestamp).</p>
pub fn creator_request_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.creator_request_id = ::std::option::Option::Some(input.into());
self
}
/// <p>A unique string that identifies the request and that allows failed requests to be retried without the risk of running the operation twice. <code>CreatorRequestId</code> can be any unique string (for example, a date/timestamp).</p>
pub fn set_creator_request_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.creator_request_id = input;
self
}
/// <p>A unique string that identifies the request and that allows failed requests to be retried without the risk of running the operation twice. <code>CreatorRequestId</code> can be any unique string (for example, a date/timestamp).</p>
pub fn get_creator_request_id(&self) -> &::std::option::Option<::std::string::String> {
&self.creator_request_id
}
/// <p>The ID of the Amazon Web Services account that created the service. If this isn't your account ID, it is the ID of account of the namespace owner or of another account with which the namespace has been shared. For more information about shared namespaces, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html">Cross-account Cloud Map namespace sharing</a> in the <i>Cloud Map Developer Guide</i>.</p>
pub fn created_by_account(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.created_by_account = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID of the Amazon Web Services account that created the service. If this isn't your account ID, it is the ID of account of the namespace owner or of another account with which the namespace has been shared. For more information about shared namespaces, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html">Cross-account Cloud Map namespace sharing</a> in the <i>Cloud Map Developer Guide</i>.</p>
pub fn set_created_by_account(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.created_by_account = input;
self
}
/// <p>The ID of the Amazon Web Services account that created the service. If this isn't your account ID, it is the ID of account of the namespace owner or of another account with which the namespace has been shared. For more information about shared namespaces, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html">Cross-account Cloud Map namespace sharing</a> in the <i>Cloud Map Developer Guide</i>.</p>
pub fn get_created_by_account(&self) -> &::std::option::Option<::std::string::String> {
&self.created_by_account
}
/// Consumes the builder and constructs a [`Service`](crate::types::Service).
pub fn build(self) -> crate::types::Service {
crate::types::Service {
id: self.id,
arn: self.arn,
resource_owner: self.resource_owner,
name: self.name,
namespace_id: self.namespace_id,
description: self.description,
instance_count: self.instance_count,
dns_config: self.dns_config,
r#type: self.r#type,
health_check_config: self.health_check_config,
health_check_custom_config: self.health_check_custom_config,
create_date: self.create_date,
creator_request_id: self.creator_request_id,
created_by_account: self.created_by_account,
}
}
}