aws-sdk-sagemaker 1.193.0

AWS SDK for Amazon SageMaker Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeWorkteamInput {
    /// <p>The name of the work team to return a description of.</p>
    pub workteam_name: ::std::option::Option<::std::string::String>,
}
impl DescribeWorkteamInput {
    /// <p>The name of the work team to return a description of.</p>
    pub fn workteam_name(&self) -> ::std::option::Option<&str> {
        self.workteam_name.as_deref()
    }
}
impl DescribeWorkteamInput {
    /// Creates a new builder-style object to manufacture [`DescribeWorkteamInput`](crate::operation::describe_workteam::DescribeWorkteamInput).
    pub fn builder() -> crate::operation::describe_workteam::builders::DescribeWorkteamInputBuilder {
        crate::operation::describe_workteam::builders::DescribeWorkteamInputBuilder::default()
    }
}

/// A builder for [`DescribeWorkteamInput`](crate::operation::describe_workteam::DescribeWorkteamInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeWorkteamInputBuilder {
    pub(crate) workteam_name: ::std::option::Option<::std::string::String>,
}
impl DescribeWorkteamInputBuilder {
    /// <p>The name of the work team to return a description of.</p>
    /// This field is required.
    pub fn workteam_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.workteam_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the work team to return a description of.</p>
    pub fn set_workteam_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.workteam_name = input;
        self
    }
    /// <p>The name of the work team to return a description of.</p>
    pub fn get_workteam_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.workteam_name
    }
    /// Consumes the builder and constructs a [`DescribeWorkteamInput`](crate::operation::describe_workteam::DescribeWorkteamInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_workteam::DescribeWorkteamInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::describe_workteam::DescribeWorkteamInput {
            workteam_name: self.workteam_name,
        })
    }
}