aws-sdk-cloudextensions 1.0.0

AWS SDK for AWS Cloud Extensions
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// Identifies the profile to delete.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteProfileInput {
    /// The identifier (id or name) of the profile to delete.
    pub identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteProfileInput {
    /// The identifier (id or name) of the profile to delete.
    pub fn identifier(&self) -> ::std::option::Option<&str> {
        self.identifier.as_deref()
    }
}
impl DeleteProfileInput {
    /// Creates a new builder-style object to manufacture [`DeleteProfileInput`](crate::operation::delete_profile::DeleteProfileInput).
    pub fn builder() -> crate::operation::delete_profile::builders::DeleteProfileInputBuilder {
        crate::operation::delete_profile::builders::DeleteProfileInputBuilder::default()
    }
}

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