aws_sdk_databasemigration/operation/delete_endpoint/
_delete_endpoint_output.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DeleteEndpointOutput {
7 pub endpoint: ::std::option::Option<crate::types::Endpoint>,
9 _request_id: Option<String>,
10}
11impl DeleteEndpointOutput {
12 pub fn endpoint(&self) -> ::std::option::Option<&crate::types::Endpoint> {
14 self.endpoint.as_ref()
15 }
16}
17impl ::aws_types::request_id::RequestId for DeleteEndpointOutput {
18 fn request_id(&self) -> Option<&str> {
19 self._request_id.as_deref()
20 }
21}
22impl DeleteEndpointOutput {
23 pub fn builder() -> crate::operation::delete_endpoint::builders::DeleteEndpointOutputBuilder {
25 crate::operation::delete_endpoint::builders::DeleteEndpointOutputBuilder::default()
26 }
27}
28
29#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
31#[non_exhaustive]
32pub struct DeleteEndpointOutputBuilder {
33 pub(crate) endpoint: ::std::option::Option<crate::types::Endpoint>,
34 _request_id: Option<String>,
35}
36impl DeleteEndpointOutputBuilder {
37 pub fn endpoint(mut self, input: crate::types::Endpoint) -> Self {
39 self.endpoint = ::std::option::Option::Some(input);
40 self
41 }
42 pub fn set_endpoint(mut self, input: ::std::option::Option<crate::types::Endpoint>) -> Self {
44 self.endpoint = input;
45 self
46 }
47 pub fn get_endpoint(&self) -> &::std::option::Option<crate::types::Endpoint> {
49 &self.endpoint
50 }
51 pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
52 self._request_id = Some(request_id.into());
53 self
54 }
55
56 pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
57 self._request_id = request_id;
58 self
59 }
60 pub fn build(self) -> crate::operation::delete_endpoint::DeleteEndpointOutput {
62 crate::operation::delete_endpoint::DeleteEndpointOutput {
63 endpoint: self.endpoint,
64 _request_id: self._request_id,
65 }
66 }
67}