aws_sdk_directconnect/operation/delete_interconnect/
_delete_interconnect_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DeleteInterconnectOutput {
6    /// <p>The state of the interconnect. The following are the possible values:</p>
7    /// <ul>
8    /// <li>
9    /// <p><code>requested</code>: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.</p></li>
10    /// <li>
11    /// <p><code>pending</code>: The interconnect is approved, and is being initialized.</p></li>
12    /// <li>
13    /// <p><code>available</code>: The network link is up, and the interconnect is ready for use.</p></li>
14    /// <li>
15    /// <p><code>down</code>: The network link is down.</p></li>
16    /// <li>
17    /// <p><code>deleting</code>: The interconnect is being deleted.</p></li>
18    /// <li>
19    /// <p><code>deleted</code>: The interconnect is deleted.</p></li>
20    /// <li>
21    /// <p><code>unknown</code>: The state of the interconnect is not available.</p></li>
22    /// </ul>
23    pub interconnect_state: ::std::option::Option<crate::types::InterconnectState>,
24    _request_id: Option<String>,
25}
26impl DeleteInterconnectOutput {
27    /// <p>The state of the interconnect. The following are the possible values:</p>
28    /// <ul>
29    /// <li>
30    /// <p><code>requested</code>: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.</p></li>
31    /// <li>
32    /// <p><code>pending</code>: The interconnect is approved, and is being initialized.</p></li>
33    /// <li>
34    /// <p><code>available</code>: The network link is up, and the interconnect is ready for use.</p></li>
35    /// <li>
36    /// <p><code>down</code>: The network link is down.</p></li>
37    /// <li>
38    /// <p><code>deleting</code>: The interconnect is being deleted.</p></li>
39    /// <li>
40    /// <p><code>deleted</code>: The interconnect is deleted.</p></li>
41    /// <li>
42    /// <p><code>unknown</code>: The state of the interconnect is not available.</p></li>
43    /// </ul>
44    pub fn interconnect_state(&self) -> ::std::option::Option<&crate::types::InterconnectState> {
45        self.interconnect_state.as_ref()
46    }
47}
48impl ::aws_types::request_id::RequestId for DeleteInterconnectOutput {
49    fn request_id(&self) -> Option<&str> {
50        self._request_id.as_deref()
51    }
52}
53impl DeleteInterconnectOutput {
54    /// Creates a new builder-style object to manufacture [`DeleteInterconnectOutput`](crate::operation::delete_interconnect::DeleteInterconnectOutput).
55    pub fn builder() -> crate::operation::delete_interconnect::builders::DeleteInterconnectOutputBuilder {
56        crate::operation::delete_interconnect::builders::DeleteInterconnectOutputBuilder::default()
57    }
58}
59
60/// A builder for [`DeleteInterconnectOutput`](crate::operation::delete_interconnect::DeleteInterconnectOutput).
61#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
62#[non_exhaustive]
63pub struct DeleteInterconnectOutputBuilder {
64    pub(crate) interconnect_state: ::std::option::Option<crate::types::InterconnectState>,
65    _request_id: Option<String>,
66}
67impl DeleteInterconnectOutputBuilder {
68    /// <p>The state of the interconnect. The following are the possible values:</p>
69    /// <ul>
70    /// <li>
71    /// <p><code>requested</code>: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.</p></li>
72    /// <li>
73    /// <p><code>pending</code>: The interconnect is approved, and is being initialized.</p></li>
74    /// <li>
75    /// <p><code>available</code>: The network link is up, and the interconnect is ready for use.</p></li>
76    /// <li>
77    /// <p><code>down</code>: The network link is down.</p></li>
78    /// <li>
79    /// <p><code>deleting</code>: The interconnect is being deleted.</p></li>
80    /// <li>
81    /// <p><code>deleted</code>: The interconnect is deleted.</p></li>
82    /// <li>
83    /// <p><code>unknown</code>: The state of the interconnect is not available.</p></li>
84    /// </ul>
85    pub fn interconnect_state(mut self, input: crate::types::InterconnectState) -> Self {
86        self.interconnect_state = ::std::option::Option::Some(input);
87        self
88    }
89    /// <p>The state of the interconnect. The following are the possible values:</p>
90    /// <ul>
91    /// <li>
92    /// <p><code>requested</code>: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.</p></li>
93    /// <li>
94    /// <p><code>pending</code>: The interconnect is approved, and is being initialized.</p></li>
95    /// <li>
96    /// <p><code>available</code>: The network link is up, and the interconnect is ready for use.</p></li>
97    /// <li>
98    /// <p><code>down</code>: The network link is down.</p></li>
99    /// <li>
100    /// <p><code>deleting</code>: The interconnect is being deleted.</p></li>
101    /// <li>
102    /// <p><code>deleted</code>: The interconnect is deleted.</p></li>
103    /// <li>
104    /// <p><code>unknown</code>: The state of the interconnect is not available.</p></li>
105    /// </ul>
106    pub fn set_interconnect_state(mut self, input: ::std::option::Option<crate::types::InterconnectState>) -> Self {
107        self.interconnect_state = input;
108        self
109    }
110    /// <p>The state of the interconnect. The following are the possible values:</p>
111    /// <ul>
112    /// <li>
113    /// <p><code>requested</code>: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.</p></li>
114    /// <li>
115    /// <p><code>pending</code>: The interconnect is approved, and is being initialized.</p></li>
116    /// <li>
117    /// <p><code>available</code>: The network link is up, and the interconnect is ready for use.</p></li>
118    /// <li>
119    /// <p><code>down</code>: The network link is down.</p></li>
120    /// <li>
121    /// <p><code>deleting</code>: The interconnect is being deleted.</p></li>
122    /// <li>
123    /// <p><code>deleted</code>: The interconnect is deleted.</p></li>
124    /// <li>
125    /// <p><code>unknown</code>: The state of the interconnect is not available.</p></li>
126    /// </ul>
127    pub fn get_interconnect_state(&self) -> &::std::option::Option<crate::types::InterconnectState> {
128        &self.interconnect_state
129    }
130    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
131        self._request_id = Some(request_id.into());
132        self
133    }
134
135    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
136        self._request_id = request_id;
137        self
138    }
139    /// Consumes the builder and constructs a [`DeleteInterconnectOutput`](crate::operation::delete_interconnect::DeleteInterconnectOutput).
140    pub fn build(self) -> crate::operation::delete_interconnect::DeleteInterconnectOutput {
141        crate::operation::delete_interconnect::DeleteInterconnectOutput {
142            interconnect_state: self.interconnect_state,
143            _request_id: self._request_id,
144        }
145    }
146}