aws-sdk-codeguruprofiler 1.98.0

AWS SDK for Amazon CodeGuru Profiler
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>The structure representing the deleteProfilingGroupRequest.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteProfilingGroupInput {
    /// <p>The name of the profiling group to delete.</p>
    pub profiling_group_name: ::std::option::Option<::std::string::String>,
}
impl DeleteProfilingGroupInput {
    /// <p>The name of the profiling group to delete.</p>
    pub fn profiling_group_name(&self) -> ::std::option::Option<&str> {
        self.profiling_group_name.as_deref()
    }
}
impl DeleteProfilingGroupInput {
    /// Creates a new builder-style object to manufacture [`DeleteProfilingGroupInput`](crate::operation::delete_profiling_group::DeleteProfilingGroupInput).
    pub fn builder() -> crate::operation::delete_profiling_group::builders::DeleteProfilingGroupInputBuilder {
        crate::operation::delete_profiling_group::builders::DeleteProfilingGroupInputBuilder::default()
    }
}

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