#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateTypeOutput {
pub r#type: ::std::option::Option<crate::types::Type>,
_request_id: Option<String>,
}
impl UpdateTypeOutput {
pub fn r#type(&self) -> ::std::option::Option<&crate::types::Type> {
self.r#type.as_ref()
}
}
impl ::aws_types::request_id::RequestId for UpdateTypeOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UpdateTypeOutput {
pub fn builder() -> crate::operation::update_type::builders::UpdateTypeOutputBuilder {
crate::operation::update_type::builders::UpdateTypeOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateTypeOutputBuilder {
pub(crate) r#type: ::std::option::Option<crate::types::Type>,
_request_id: Option<String>,
}
impl UpdateTypeOutputBuilder {
pub fn r#type(mut self, input: crate::types::Type) -> Self {
self.r#type = ::std::option::Option::Some(input);
self
}
pub fn set_type(mut self, input: ::std::option::Option<crate::types::Type>) -> Self {
self.r#type = input;
self
}
pub fn get_type(&self) -> &::std::option::Option<crate::types::Type> {
&self.r#type
}
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_type::UpdateTypeOutput {
crate::operation::update_type::UpdateTypeOutput {
r#type: self.r#type,
_request_id: self._request_id,
}
}
}