aws-sdk-cloudwatchomni 1.2.0

AWS SDK for CloudWatch Omni
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 DeleteAccessProfileInput {
    /// The unique ID of the space.
    pub space_id: ::std::option::Option<::std::string::String>,
    /// The unique ID of the access profile to delete.
    pub profile_id: ::std::option::Option<::std::string::String>,
}
impl DeleteAccessProfileInput {
    /// The unique ID of the space.
    pub fn space_id(&self) -> ::std::option::Option<&str> {
        self.space_id.as_deref()
    }
    /// The unique ID of the access profile to delete.
    pub fn profile_id(&self) -> ::std::option::Option<&str> {
        self.profile_id.as_deref()
    }
}
impl DeleteAccessProfileInput {
    /// Creates a new builder-style object to manufacture [`DeleteAccessProfileInput`](crate::operation::delete_access_profile::DeleteAccessProfileInput).
    pub fn builder() -> crate::operation::delete_access_profile::builders::DeleteAccessProfileInputBuilder {
        crate::operation::delete_access_profile::builders::DeleteAccessProfileInputBuilder::default()
    }
}

/// A builder for [`DeleteAccessProfileInput`](crate::operation::delete_access_profile::DeleteAccessProfileInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteAccessProfileInputBuilder {
    pub(crate) space_id: ::std::option::Option<::std::string::String>,
    pub(crate) profile_id: ::std::option::Option<::std::string::String>,
}
impl DeleteAccessProfileInputBuilder {
    /// The unique ID of the space.
    /// This field is required.
    pub fn space_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.space_id = ::std::option::Option::Some(input.into());
        self
    }
    /// The unique ID of the space.
    pub fn set_space_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.space_id = input;
        self
    }
    /// The unique ID of the space.
    pub fn get_space_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.space_id
    }
    /// The unique ID of the access profile to delete.
    /// This field is required.
    pub fn profile_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.profile_id = ::std::option::Option::Some(input.into());
        self
    }
    /// The unique ID of the access profile to delete.
    pub fn set_profile_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.profile_id = input;
        self
    }
    /// The unique ID of the access profile to delete.
    pub fn get_profile_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.profile_id
    }
    /// Consumes the builder and constructs a [`DeleteAccessProfileInput`](crate::operation::delete_access_profile::DeleteAccessProfileInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::delete_access_profile::DeleteAccessProfileInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::delete_access_profile::DeleteAccessProfileInput {
            space_id: self.space_id,
            profile_id: self.profile_id,
        })
    }
}