aws-sdk-sagemaker 1.196.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 DescribeTrialInput {
    /// <p>The name of the trial to describe.</p>
    pub trial_name: ::std::option::Option<::std::string::String>,
}
impl DescribeTrialInput {
    /// <p>The name of the trial to describe.</p>
    pub fn trial_name(&self) -> ::std::option::Option<&str> {
        self.trial_name.as_deref()
    }
}
impl DescribeTrialInput {
    /// Creates a new builder-style object to manufacture [`DescribeTrialInput`](crate::operation::describe_trial::DescribeTrialInput).
    pub fn builder() -> crate::operation::describe_trial::builders::DescribeTrialInputBuilder {
        crate::operation::describe_trial::builders::DescribeTrialInputBuilder::default()
    }
}

/// A builder for [`DescribeTrialInput`](crate::operation::describe_trial::DescribeTrialInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeTrialInputBuilder {
    pub(crate) trial_name: ::std::option::Option<::std::string::String>,
}
impl DescribeTrialInputBuilder {
    /// <p>The name of the trial to describe.</p>
    /// This field is required.
    pub fn trial_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.trial_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the trial to describe.</p>
    pub fn set_trial_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.trial_name = input;
        self
    }
    /// <p>The name of the trial to describe.</p>
    pub fn get_trial_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.trial_name
    }
    /// Consumes the builder and constructs a [`DescribeTrialInput`](crate::operation::describe_trial::DescribeTrialInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_trial::DescribeTrialInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::describe_trial::DescribeTrialInput { trial_name: self.trial_name })
    }
}