#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateMeshInput {
    pub mesh_name: ::std::option::Option<::std::string::String>,
    pub spec: ::std::option::Option<crate::types::MeshSpec>,
    pub client_token: ::std::option::Option<::std::string::String>,
}
impl UpdateMeshInput {
    pub fn mesh_name(&self) -> ::std::option::Option<&str> {
        self.mesh_name.as_deref()
    }
    pub fn spec(&self) -> ::std::option::Option<&crate::types::MeshSpec> {
        self.spec.as_ref()
    }
    pub fn client_token(&self) -> ::std::option::Option<&str> {
        self.client_token.as_deref()
    }
}
impl UpdateMeshInput {
    pub fn builder() -> crate::operation::update_mesh::builders::UpdateMeshInputBuilder {
        crate::operation::update_mesh::builders::UpdateMeshInputBuilder::default()
    }
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateMeshInputBuilder {
    pub(crate) mesh_name: ::std::option::Option<::std::string::String>,
    pub(crate) spec: ::std::option::Option<crate::types::MeshSpec>,
    pub(crate) client_token: ::std::option::Option<::std::string::String>,
}
impl UpdateMeshInputBuilder {
    pub fn mesh_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.mesh_name = ::std::option::Option::Some(input.into());
        self
    }
    pub fn set_mesh_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.mesh_name = input;
        self
    }
    pub fn get_mesh_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.mesh_name
    }
    pub fn spec(mut self, input: crate::types::MeshSpec) -> Self {
        self.spec = ::std::option::Option::Some(input);
        self
    }
    pub fn set_spec(mut self, input: ::std::option::Option<crate::types::MeshSpec>) -> Self {
        self.spec = input;
        self
    }
    pub fn get_spec(&self) -> &::std::option::Option<crate::types::MeshSpec> {
        &self.spec
    }
    pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.client_token = ::std::option::Option::Some(input.into());
        self
    }
    pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.client_token = input;
        self
    }
    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.client_token
    }
    pub fn build(self) -> ::std::result::Result<crate::operation::update_mesh::UpdateMeshInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::update_mesh::UpdateMeshInput {
            mesh_name: self.mesh_name,
            spec: self.spec,
            client_token: self.client_token,
        })
    }
}