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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteGraphOutput {
    /// <p>The unique identifier of the graph.</p>
    pub id: ::std::string::String,
    /// <p>The name of the graph.</p>
    pub name: ::std::string::String,
    /// <p>The ARN associated with the graph.</p>
    pub arn: ::std::string::String,
    /// <p>The status of the graph.</p>
    pub status: ::std::option::Option<crate::types::GraphStatus>,
    /// <p>The reason for the status of the graph.</p>
    pub status_reason: ::std::option::Option<::std::string::String>,
    /// <p>The time at which the graph was created.</p>
    pub create_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The number of memory-optimized Neptune Capacity Units (m-NCUs) allocated to the graph.</p>
    pub provisioned_memory: ::std::option::Option<i32>,
    /// <p>The graph endpoint.</p>
    pub endpoint: ::std::option::Option<::std::string::String>,
    /// <p>If <code>true</code>, the graph has a public endpoint, otherwise not.</p>
    pub public_connectivity: ::std::option::Option<bool>,
    /// <p>Specifies the number of dimensions for vector embeddings loaded into the graph. Max = 65535</p>
    pub vector_search_configuration: ::std::option::Option<crate::types::VectorSearchConfiguration>,
    /// <p>The number of replicas for the graph.</p>
    pub replica_count: ::std::option::Option<i32>,
    /// <p>The ID of the KMS key used to encrypt and decrypt graph data.</p>
    pub kms_key_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the snapshot from which the graph was created, if the graph was recovered from a snapshot.</p>
    pub source_snapshot_id: ::std::option::Option<::std::string::String>,
    /// <p>If <code>true</code>, deletion protection was enabled for the graph.</p>
    pub deletion_protection: ::std::option::Option<bool>,
    /// <p>The build number associated with the graph.</p>
    pub build_number: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl DeleteGraphOutput {
    /// <p>The unique identifier of the graph.</p>
    pub fn id(&self) -> &str {
        use std::ops::Deref;
        self.id.deref()
    }
    /// <p>The name of the graph.</p>
    pub fn name(&self) -> &str {
        use std::ops::Deref;
        self.name.deref()
    }
    /// <p>The ARN associated with the graph.</p>
    pub fn arn(&self) -> &str {
        use std::ops::Deref;
        self.arn.deref()
    }
    /// <p>The status of the graph.</p>
    pub fn status(&self) -> ::std::option::Option<&crate::types::GraphStatus> {
        self.status.as_ref()
    }
    /// <p>The reason for the status of the graph.</p>
    pub fn status_reason(&self) -> ::std::option::Option<&str> {
        self.status_reason.as_deref()
    }
    /// <p>The time at which the graph was created.</p>
    pub fn create_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.create_time.as_ref()
    }
    /// <p>The number of memory-optimized Neptune Capacity Units (m-NCUs) allocated to the graph.</p>
    pub fn provisioned_memory(&self) -> ::std::option::Option<i32> {
        self.provisioned_memory
    }
    /// <p>The graph endpoint.</p>
    pub fn endpoint(&self) -> ::std::option::Option<&str> {
        self.endpoint.as_deref()
    }
    /// <p>If <code>true</code>, the graph has a public endpoint, otherwise not.</p>
    pub fn public_connectivity(&self) -> ::std::option::Option<bool> {
        self.public_connectivity
    }
    /// <p>Specifies the number of dimensions for vector embeddings loaded into the graph. Max = 65535</p>
    pub fn vector_search_configuration(&self) -> ::std::option::Option<&crate::types::VectorSearchConfiguration> {
        self.vector_search_configuration.as_ref()
    }
    /// <p>The number of replicas for the graph.</p>
    pub fn replica_count(&self) -> ::std::option::Option<i32> {
        self.replica_count
    }
    /// <p>The ID of the KMS key used to encrypt and decrypt graph data.</p>
    pub fn kms_key_identifier(&self) -> ::std::option::Option<&str> {
        self.kms_key_identifier.as_deref()
    }
    /// <p>The ID of the snapshot from which the graph was created, if the graph was recovered from a snapshot.</p>
    pub fn source_snapshot_id(&self) -> ::std::option::Option<&str> {
        self.source_snapshot_id.as_deref()
    }
    /// <p>If <code>true</code>, deletion protection was enabled for the graph.</p>
    pub fn deletion_protection(&self) -> ::std::option::Option<bool> {
        self.deletion_protection
    }
    /// <p>The build number associated with the graph.</p>
    pub fn build_number(&self) -> ::std::option::Option<&str> {
        self.build_number.as_deref()
    }
}
impl ::aws_types::request_id::RequestId for DeleteGraphOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl DeleteGraphOutput {
    /// Creates a new builder-style object to manufacture [`DeleteGraphOutput`](crate::operation::delete_graph::DeleteGraphOutput).
    pub fn builder() -> crate::operation::delete_graph::builders::DeleteGraphOutputBuilder {
        crate::operation::delete_graph::builders::DeleteGraphOutputBuilder::default()
    }
}

/// A builder for [`DeleteGraphOutput`](crate::operation::delete_graph::DeleteGraphOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteGraphOutputBuilder {
    pub(crate) id: ::std::option::Option<::std::string::String>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) arn: ::std::option::Option<::std::string::String>,
    pub(crate) status: ::std::option::Option<crate::types::GraphStatus>,
    pub(crate) status_reason: ::std::option::Option<::std::string::String>,
    pub(crate) create_time: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) provisioned_memory: ::std::option::Option<i32>,
    pub(crate) endpoint: ::std::option::Option<::std::string::String>,
    pub(crate) public_connectivity: ::std::option::Option<bool>,
    pub(crate) vector_search_configuration: ::std::option::Option<crate::types::VectorSearchConfiguration>,
    pub(crate) replica_count: ::std::option::Option<i32>,
    pub(crate) kms_key_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) source_snapshot_id: ::std::option::Option<::std::string::String>,
    pub(crate) deletion_protection: ::std::option::Option<bool>,
    pub(crate) build_number: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl DeleteGraphOutputBuilder {
    /// <p>The unique identifier of the graph.</p>
    /// This field is required.
    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 unique identifier of the graph.</p>
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// <p>The unique identifier of the graph.</p>
    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.id
    }
    /// <p>The name of the graph.</p>
    /// This field is required.
    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 graph.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of the graph.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>The ARN associated with the graph.</p>
    /// This field is required.
    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 ARN associated with the graph.</p>
    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.arn = input;
        self
    }
    /// <p>The ARN associated with the graph.</p>
    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.arn
    }
    /// <p>The status of the graph.</p>
    pub fn status(mut self, input: crate::types::GraphStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The status of the graph.</p>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::GraphStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The status of the graph.</p>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::GraphStatus> {
        &self.status
    }
    /// <p>The reason for the status of the graph.</p>
    pub fn status_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.status_reason = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The reason for the status of the graph.</p>
    pub fn set_status_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.status_reason = input;
        self
    }
    /// <p>The reason for the status of the graph.</p>
    pub fn get_status_reason(&self) -> &::std::option::Option<::std::string::String> {
        &self.status_reason
    }
    /// <p>The time at which the graph was created.</p>
    pub fn create_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.create_time = ::std::option::Option::Some(input);
        self
    }
    /// <p>The time at which the graph was created.</p>
    pub fn set_create_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.create_time = input;
        self
    }
    /// <p>The time at which the graph was created.</p>
    pub fn get_create_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.create_time
    }
    /// <p>The number of memory-optimized Neptune Capacity Units (m-NCUs) allocated to the graph.</p>
    pub fn provisioned_memory(mut self, input: i32) -> Self {
        self.provisioned_memory = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of memory-optimized Neptune Capacity Units (m-NCUs) allocated to the graph.</p>
    pub fn set_provisioned_memory(mut self, input: ::std::option::Option<i32>) -> Self {
        self.provisioned_memory = input;
        self
    }
    /// <p>The number of memory-optimized Neptune Capacity Units (m-NCUs) allocated to the graph.</p>
    pub fn get_provisioned_memory(&self) -> &::std::option::Option<i32> {
        &self.provisioned_memory
    }
    /// <p>The graph endpoint.</p>
    pub fn endpoint(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.endpoint = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The graph endpoint.</p>
    pub fn set_endpoint(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.endpoint = input;
        self
    }
    /// <p>The graph endpoint.</p>
    pub fn get_endpoint(&self) -> &::std::option::Option<::std::string::String> {
        &self.endpoint
    }
    /// <p>If <code>true</code>, the graph has a public endpoint, otherwise not.</p>
    pub fn public_connectivity(mut self, input: bool) -> Self {
        self.public_connectivity = ::std::option::Option::Some(input);
        self
    }
    /// <p>If <code>true</code>, the graph has a public endpoint, otherwise not.</p>
    pub fn set_public_connectivity(mut self, input: ::std::option::Option<bool>) -> Self {
        self.public_connectivity = input;
        self
    }
    /// <p>If <code>true</code>, the graph has a public endpoint, otherwise not.</p>
    pub fn get_public_connectivity(&self) -> &::std::option::Option<bool> {
        &self.public_connectivity
    }
    /// <p>Specifies the number of dimensions for vector embeddings loaded into the graph. Max = 65535</p>
    pub fn vector_search_configuration(mut self, input: crate::types::VectorSearchConfiguration) -> Self {
        self.vector_search_configuration = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies the number of dimensions for vector embeddings loaded into the graph. Max = 65535</p>
    pub fn set_vector_search_configuration(mut self, input: ::std::option::Option<crate::types::VectorSearchConfiguration>) -> Self {
        self.vector_search_configuration = input;
        self
    }
    /// <p>Specifies the number of dimensions for vector embeddings loaded into the graph. Max = 65535</p>
    pub fn get_vector_search_configuration(&self) -> &::std::option::Option<crate::types::VectorSearchConfiguration> {
        &self.vector_search_configuration
    }
    /// <p>The number of replicas for the graph.</p>
    pub fn replica_count(mut self, input: i32) -> Self {
        self.replica_count = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of replicas for the graph.</p>
    pub fn set_replica_count(mut self, input: ::std::option::Option<i32>) -> Self {
        self.replica_count = input;
        self
    }
    /// <p>The number of replicas for the graph.</p>
    pub fn get_replica_count(&self) -> &::std::option::Option<i32> {
        &self.replica_count
    }
    /// <p>The ID of the KMS key used to encrypt and decrypt graph data.</p>
    pub fn kms_key_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.kms_key_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the KMS key used to encrypt and decrypt graph data.</p>
    pub fn set_kms_key_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.kms_key_identifier = input;
        self
    }
    /// <p>The ID of the KMS key used to encrypt and decrypt graph data.</p>
    pub fn get_kms_key_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.kms_key_identifier
    }
    /// <p>The ID of the snapshot from which the graph was created, if the graph was recovered from a snapshot.</p>
    pub fn source_snapshot_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.source_snapshot_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the snapshot from which the graph was created, if the graph was recovered from a snapshot.</p>
    pub fn set_source_snapshot_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.source_snapshot_id = input;
        self
    }
    /// <p>The ID of the snapshot from which the graph was created, if the graph was recovered from a snapshot.</p>
    pub fn get_source_snapshot_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.source_snapshot_id
    }
    /// <p>If <code>true</code>, deletion protection was enabled for the graph.</p>
    pub fn deletion_protection(mut self, input: bool) -> Self {
        self.deletion_protection = ::std::option::Option::Some(input);
        self
    }
    /// <p>If <code>true</code>, deletion protection was enabled for the graph.</p>
    pub fn set_deletion_protection(mut self, input: ::std::option::Option<bool>) -> Self {
        self.deletion_protection = input;
        self
    }
    /// <p>If <code>true</code>, deletion protection was enabled for the graph.</p>
    pub fn get_deletion_protection(&self) -> &::std::option::Option<bool> {
        &self.deletion_protection
    }
    /// <p>The build number associated with the graph.</p>
    pub fn build_number(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.build_number = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The build number associated with the graph.</p>
    pub fn set_build_number(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.build_number = input;
        self
    }
    /// <p>The build number associated with the graph.</p>
    pub fn get_build_number(&self) -> &::std::option::Option<::std::string::String> {
        &self.build_number
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`DeleteGraphOutput`](crate::operation::delete_graph::DeleteGraphOutput).
    /// This method will fail if any of the following fields are not set:
    /// - [`id`](crate::operation::delete_graph::builders::DeleteGraphOutputBuilder::id)
    /// - [`name`](crate::operation::delete_graph::builders::DeleteGraphOutputBuilder::name)
    /// - [`arn`](crate::operation::delete_graph::builders::DeleteGraphOutputBuilder::arn)
    pub fn build(self) -> ::std::result::Result<crate::operation::delete_graph::DeleteGraphOutput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_graph::DeleteGraphOutput {
            id: self.id.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "id",
                    "id was not specified but it is required when building DeleteGraphOutput",
                )
            })?,
            name: self.name.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "name",
                    "name was not specified but it is required when building DeleteGraphOutput",
                )
            })?,
            arn: self.arn.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "arn",
                    "arn was not specified but it is required when building DeleteGraphOutput",
                )
            })?,
            status: self.status,
            status_reason: self.status_reason,
            create_time: self.create_time,
            provisioned_memory: self.provisioned_memory,
            endpoint: self.endpoint,
            public_connectivity: self.public_connectivity,
            vector_search_configuration: self.vector_search_configuration,
            replica_count: self.replica_count,
            kms_key_identifier: self.kms_key_identifier,
            source_snapshot_id: self.source_snapshot_id,
            deletion_protection: self.deletion_protection,
            build_number: self.build_number,
            _request_id: self._request_id,
        })
    }
}