#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateVpcEndpointOutput {
pub vpc_endpoint: ::std::option::Option<crate::types::VpcEndpoint>,
_request_id: Option<String>,
}
impl UpdateVpcEndpointOutput {
pub fn vpc_endpoint(&self) -> ::std::option::Option<&crate::types::VpcEndpoint> {
self.vpc_endpoint.as_ref()
}
}
impl ::aws_types::request_id::RequestId for UpdateVpcEndpointOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UpdateVpcEndpointOutput {
pub fn builder() -> crate::operation::update_vpc_endpoint::builders::UpdateVpcEndpointOutputBuilder {
crate::operation::update_vpc_endpoint::builders::UpdateVpcEndpointOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateVpcEndpointOutputBuilder {
pub(crate) vpc_endpoint: ::std::option::Option<crate::types::VpcEndpoint>,
_request_id: Option<String>,
}
impl UpdateVpcEndpointOutputBuilder {
pub fn vpc_endpoint(mut self, input: crate::types::VpcEndpoint) -> Self {
self.vpc_endpoint = ::std::option::Option::Some(input);
self
}
pub fn set_vpc_endpoint(mut self, input: ::std::option::Option<crate::types::VpcEndpoint>) -> Self {
self.vpc_endpoint = input;
self
}
pub fn get_vpc_endpoint(&self) -> &::std::option::Option<crate::types::VpcEndpoint> {
&self.vpc_endpoint
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::update_vpc_endpoint::UpdateVpcEndpointOutput {
crate::operation::update_vpc_endpoint::UpdateVpcEndpointOutput {
vpc_endpoint: self.vpc_endpoint,
_request_id: self._request_id,
}
}
}