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 DeleteDeviceFleetInput {
    /// <p>The name of the fleet to delete.</p>
    pub device_fleet_name: ::std::option::Option<::std::string::String>,
}
impl DeleteDeviceFleetInput {
    /// <p>The name of the fleet to delete.</p>
    pub fn device_fleet_name(&self) -> ::std::option::Option<&str> {
        self.device_fleet_name.as_deref()
    }
}
impl DeleteDeviceFleetInput {
    /// Creates a new builder-style object to manufacture [`DeleteDeviceFleetInput`](crate::operation::delete_device_fleet::DeleteDeviceFleetInput).
    pub fn builder() -> crate::operation::delete_device_fleet::builders::DeleteDeviceFleetInputBuilder {
        crate::operation::delete_device_fleet::builders::DeleteDeviceFleetInputBuilder::default()
    }
}

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