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 entry to delete.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteProfileEntryInput {
    /// The identifier of the profile entry.
    pub identifier: ::std::option::Option<::std::string::String>,
    /// The identifier of the owning profile.
    pub profile_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteProfileEntryInput {
    /// The identifier of the profile entry.
    pub fn identifier(&self) -> ::std::option::Option<&str> {
        self.identifier.as_deref()
    }
    /// The identifier of the owning profile.
    pub fn profile_identifier(&self) -> ::std::option::Option<&str> {
        self.profile_identifier.as_deref()
    }
}
impl DeleteProfileEntryInput {
    /// Creates a new builder-style object to manufacture [`DeleteProfileEntryInput`](crate::operation::delete_profile_entry::DeleteProfileEntryInput).
    pub fn builder() -> crate::operation::delete_profile_entry::builders::DeleteProfileEntryInputBuilder {
        crate::operation::delete_profile_entry::builders::DeleteProfileEntryInputBuilder::default()
    }
}

/// A builder for [`DeleteProfileEntryInput`](crate::operation::delete_profile_entry::DeleteProfileEntryInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteProfileEntryInputBuilder {
    pub(crate) identifier: ::std::option::Option<::std::string::String>,
    pub(crate) profile_identifier: ::std::option::Option<::std::string::String>,
}
impl DeleteProfileEntryInputBuilder {
    /// The identifier of the profile entry.
    /// 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 of the profile entry.
    pub fn set_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.identifier = input;
        self
    }
    /// The identifier of the profile entry.
    pub fn get_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.identifier
    }
    /// The identifier of the owning profile.
    /// This field is required.
    pub fn profile_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.profile_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// The identifier of the owning profile.
    pub fn set_profile_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.profile_identifier = input;
        self
    }
    /// The identifier of the owning profile.
    pub fn get_profile_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.profile_identifier
    }
    /// Consumes the builder and constructs a [`DeleteProfileEntryInput`](crate::operation::delete_profile_entry::DeleteProfileEntryInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_profile_entry::DeleteProfileEntryInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::delete_profile_entry::DeleteProfileEntryInput {
            identifier: self.identifier,
            profile_identifier: self.profile_identifier,
        })
    }
}