aws_sdk_migrationhubrefactorspaces/operation/delete_route/
_delete_route_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DeleteRouteOutput {
6 pub route_id: ::std::option::Option<::std::string::String>,
8 pub arn: ::std::option::Option<::std::string::String>,
10 pub service_id: ::std::option::Option<::std::string::String>,
12 pub application_id: ::std::option::Option<::std::string::String>,
14 pub state: ::std::option::Option<crate::types::RouteState>,
16 pub last_updated_time: ::std::option::Option<::aws_smithy_types::DateTime>,
18 _request_id: Option<String>,
19}
20impl DeleteRouteOutput {
21 pub fn route_id(&self) -> ::std::option::Option<&str> {
23 self.route_id.as_deref()
24 }
25 pub fn arn(&self) -> ::std::option::Option<&str> {
27 self.arn.as_deref()
28 }
29 pub fn service_id(&self) -> ::std::option::Option<&str> {
31 self.service_id.as_deref()
32 }
33 pub fn application_id(&self) -> ::std::option::Option<&str> {
35 self.application_id.as_deref()
36 }
37 pub fn state(&self) -> ::std::option::Option<&crate::types::RouteState> {
39 self.state.as_ref()
40 }
41 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 pub fn builder() -> crate::operation::delete_route::builders::DeleteRouteOutputBuilder {
54 crate::operation::delete_route::builders::DeleteRouteOutputBuilder::default()
55 }
56}
57
58#[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 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 pub fn set_route_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
78 self.route_id = input;
79 self
80 }
81 pub fn get_route_id(&self) -> &::std::option::Option<::std::string::String> {
83 &self.route_id
84 }
85 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 pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
92 self.arn = input;
93 self
94 }
95 pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
97 &self.arn
98 }
99 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 pub fn set_service_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
106 self.service_id = input;
107 self
108 }
109 pub fn get_service_id(&self) -> &::std::option::Option<::std::string::String> {
111 &self.service_id
112 }
113 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 pub fn set_application_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
120 self.application_id = input;
121 self
122 }
123 pub fn get_application_id(&self) -> &::std::option::Option<::std::string::String> {
125 &self.application_id
126 }
127 pub fn state(mut self, input: crate::types::RouteState) -> Self {
129 self.state = ::std::option::Option::Some(input);
130 self
131 }
132 pub fn set_state(mut self, input: ::std::option::Option<crate::types::RouteState>) -> Self {
134 self.state = input;
135 self
136 }
137 pub fn get_state(&self) -> &::std::option::Option<crate::types::RouteState> {
139 &self.state
140 }
141 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 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 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 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}