aws_sdk_sagemaker/operation/update_endpoint/
_update_endpoint_output.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct UpdateEndpointOutput {
6 pub endpoint_arn: ::std::option::Option<::std::string::String>,
8 _request_id: Option<String>,
9}
10impl UpdateEndpointOutput {
11 pub fn endpoint_arn(&self) -> ::std::option::Option<&str> {
13 self.endpoint_arn.as_deref()
14 }
15}
16impl ::aws_types::request_id::RequestId for UpdateEndpointOutput {
17 fn request_id(&self) -> Option<&str> {
18 self._request_id.as_deref()
19 }
20}
21impl UpdateEndpointOutput {
22 pub fn builder() -> crate::operation::update_endpoint::builders::UpdateEndpointOutputBuilder {
24 crate::operation::update_endpoint::builders::UpdateEndpointOutputBuilder::default()
25 }
26}
27
28#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct UpdateEndpointOutputBuilder {
32 pub(crate) endpoint_arn: ::std::option::Option<::std::string::String>,
33 _request_id: Option<String>,
34}
35impl UpdateEndpointOutputBuilder {
36 pub fn endpoint_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39 self.endpoint_arn = ::std::option::Option::Some(input.into());
40 self
41 }
42 pub fn set_endpoint_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44 self.endpoint_arn = input;
45 self
46 }
47 pub fn get_endpoint_arn(&self) -> &::std::option::Option<::std::string::String> {
49 &self.endpoint_arn
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::update_endpoint::UpdateEndpointOutput {
62 crate::operation::update_endpoint::UpdateEndpointOutput {
63 endpoint_arn: self.endpoint_arn,
64 _request_id: self._request_id,
65 }
66 }
67}