aws-sdk-managedblockchain 1.98.0

AWS SDK for Amazon Managed Blockchain
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 DeleteAccessorInput {
    /// <p>The unique identifier of the accessor.</p>
    pub accessor_id: ::std::option::Option<::std::string::String>,
}
impl DeleteAccessorInput {
    /// <p>The unique identifier of the accessor.</p>
    pub fn accessor_id(&self) -> ::std::option::Option<&str> {
        self.accessor_id.as_deref()
    }
}
impl DeleteAccessorInput {
    /// Creates a new builder-style object to manufacture [`DeleteAccessorInput`](crate::operation::delete_accessor::DeleteAccessorInput).
    pub fn builder() -> crate::operation::delete_accessor::builders::DeleteAccessorInputBuilder {
        crate::operation::delete_accessor::builders::DeleteAccessorInputBuilder::default()
    }
}

/// A builder for [`DeleteAccessorInput`](crate::operation::delete_accessor::DeleteAccessorInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteAccessorInputBuilder {
    pub(crate) accessor_id: ::std::option::Option<::std::string::String>,
}
impl DeleteAccessorInputBuilder {
    /// <p>The unique identifier of the accessor.</p>
    /// This field is required.
    pub fn accessor_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.accessor_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the accessor.</p>
    pub fn set_accessor_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.accessor_id = input;
        self
    }
    /// <p>The unique identifier of the accessor.</p>
    pub fn get_accessor_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.accessor_id
    }
    /// Consumes the builder and constructs a [`DeleteAccessorInput`](crate::operation::delete_accessor::DeleteAccessorInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_accessor::DeleteAccessorInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::delete_accessor::DeleteAccessorInput {
            accessor_id: self.accessor_id,
        })
    }
}