aws_sdk_migrationhubrefactorspaces/operation/delete_route/
_delete_route_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 DeleteRouteOutput {
6    /// <p>The ID of the route to delete.</p>
7    pub route_id: ::std::option::Option<::std::string::String>,
8    /// <p>The Amazon Resource Name (ARN) of the route.</p>
9    pub arn: ::std::option::Option<::std::string::String>,
10    /// <p>The ID of the service that the route belongs to.</p>
11    pub service_id: ::std::option::Option<::std::string::String>,
12    /// <p>The ID of the application that the route belongs to.</p>
13    pub application_id: ::std::option::Option<::std::string::String>,
14    /// <p>The current state of the route.</p>
15    pub state: ::std::option::Option<crate::types::RouteState>,
16    /// <p>A timestamp that indicates when the route was last updated.</p>
17    pub last_updated_time: ::std::option::Option<::aws_smithy_types::DateTime>,
18    _request_id: Option<String>,
19}
20impl DeleteRouteOutput {
21    /// <p>The ID of the route to delete.</p>
22    pub fn route_id(&self) -> ::std::option::Option<&str> {
23        self.route_id.as_deref()
24    }
25    /// <p>The Amazon Resource Name (ARN) of the route.</p>
26    pub fn arn(&self) -> ::std::option::Option<&str> {
27        self.arn.as_deref()
28    }
29    /// <p>The ID of the service that the route belongs to.</p>
30    pub fn service_id(&self) -> ::std::option::Option<&str> {
31        self.service_id.as_deref()
32    }
33    /// <p>The ID of the application that the route belongs to.</p>
34    pub fn application_id(&self) -> ::std::option::Option<&str> {
35        self.application_id.as_deref()
36    }
37    /// <p>The current state of the route.</p>
38    pub fn state(&self) -> ::std::option::Option<&crate::types::RouteState> {
39        self.state.as_ref()
40    }
41    /// <p>A timestamp that indicates when the route was last updated.</p>
42    pub fn last_updated_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
43        self.last_updated_time.as_ref()
44    }
45}
46impl ::aws_types::request_id::RequestId for DeleteRouteOutput {
47    fn request_id(&self) -> Option<&str> {
48        self._request_id.as_deref()
49    }
50}
51impl DeleteRouteOutput {
52    /// Creates a new builder-style object to manufacture [`DeleteRouteOutput`](crate::operation::delete_route::DeleteRouteOutput).
53    pub fn builder() -> crate::operation::delete_route::builders::DeleteRouteOutputBuilder {
54        crate::operation::delete_route::builders::DeleteRouteOutputBuilder::default()
55    }
56}
57
58/// A builder for [`DeleteRouteOutput`](crate::operation::delete_route::DeleteRouteOutput).
59#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
60#[non_exhaustive]
61pub struct DeleteRouteOutputBuilder {
62    pub(crate) route_id: ::std::option::Option<::std::string::String>,
63    pub(crate) arn: ::std::option::Option<::std::string::String>,
64    pub(crate) service_id: ::std::option::Option<::std::string::String>,
65    pub(crate) application_id: ::std::option::Option<::std::string::String>,
66    pub(crate) state: ::std::option::Option<crate::types::RouteState>,
67    pub(crate) last_updated_time: ::std::option::Option<::aws_smithy_types::DateTime>,
68    _request_id: Option<String>,
69}
70impl DeleteRouteOutputBuilder {
71    /// <p>The ID of the route to delete.</p>
72    pub fn route_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
73        self.route_id = ::std::option::Option::Some(input.into());
74        self
75    }
76    /// <p>The ID of the route to delete.</p>
77    pub fn set_route_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
78        self.route_id = input;
79        self
80    }
81    /// <p>The ID of the route to delete.</p>
82    pub fn get_route_id(&self) -> &::std::option::Option<::std::string::String> {
83        &self.route_id
84    }
85    /// <p>The Amazon Resource Name (ARN) of the route.</p>
86    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
87        self.arn = ::std::option::Option::Some(input.into());
88        self
89    }
90    /// <p>The Amazon Resource Name (ARN) of the route.</p>
91    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
92        self.arn = input;
93        self
94    }
95    /// <p>The Amazon Resource Name (ARN) of the route.</p>
96    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
97        &self.arn
98    }
99    /// <p>The ID of the service that the route belongs to.</p>
100    pub fn service_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
101        self.service_id = ::std::option::Option::Some(input.into());
102        self
103    }
104    /// <p>The ID of the service that the route belongs to.</p>
105    pub fn set_service_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
106        self.service_id = input;
107        self
108    }
109    /// <p>The ID of the service that the route belongs to.</p>
110    pub fn get_service_id(&self) -> &::std::option::Option<::std::string::String> {
111        &self.service_id
112    }
113    /// <p>The ID of the application that the route belongs to.</p>
114    pub fn application_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
115        self.application_id = ::std::option::Option::Some(input.into());
116        self
117    }
118    /// <p>The ID of the application that the route belongs to.</p>
119    pub fn set_application_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
120        self.application_id = input;
121        self
122    }
123    /// <p>The ID of the application that the route belongs to.</p>
124    pub fn get_application_id(&self) -> &::std::option::Option<::std::string::String> {
125        &self.application_id
126    }
127    /// <p>The current state of the route.</p>
128    pub fn state(mut self, input: crate::types::RouteState) -> Self {
129        self.state = ::std::option::Option::Some(input);
130        self
131    }
132    /// <p>The current state of the route.</p>
133    pub fn set_state(mut self, input: ::std::option::Option<crate::types::RouteState>) -> Self {
134        self.state = input;
135        self
136    }
137    /// <p>The current state of the route.</p>
138    pub fn get_state(&self) -> &::std::option::Option<crate::types::RouteState> {
139        &self.state
140    }
141    /// <p>A timestamp that indicates when the route was last updated.</p>
142    pub fn last_updated_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
143        self.last_updated_time = ::std::option::Option::Some(input);
144        self
145    }
146    /// <p>A timestamp that indicates when the route was last updated.</p>
147    pub fn set_last_updated_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
148        self.last_updated_time = input;
149        self
150    }
151    /// <p>A timestamp that indicates when the route was last updated.</p>
152    pub fn get_last_updated_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
153        &self.last_updated_time
154    }
155    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
156        self._request_id = Some(request_id.into());
157        self
158    }
159
160    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
161        self._request_id = request_id;
162        self
163    }
164    /// Consumes the builder and constructs a [`DeleteRouteOutput`](crate::operation::delete_route::DeleteRouteOutput).
165    pub fn build(self) -> crate::operation::delete_route::DeleteRouteOutput {
166        crate::operation::delete_route::DeleteRouteOutput {
167            route_id: self.route_id,
168            arn: self.arn,
169            service_id: self.service_id,
170            application_id: self.application_id,
171            state: self.state,
172            last_updated_time: self.last_updated_time,
173            _request_id: self._request_id,
174        }
175    }
176}