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 retrieve.
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetProfileEntryInput {
    /// The identifier (id or name) 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 GetProfileEntryInput {
    /// The identifier (id or name) 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 GetProfileEntryInput {
    /// Creates a new builder-style object to manufacture [`GetProfileEntryInput`](crate::operation::get_profile_entry::GetProfileEntryInput).
    pub fn builder() -> crate::operation::get_profile_entry::builders::GetProfileEntryInputBuilder {
        crate::operation::get_profile_entry::builders::GetProfileEntryInputBuilder::default()
    }
}

/// A builder for [`GetProfileEntryInput`](crate::operation::get_profile_entry::GetProfileEntryInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetProfileEntryInputBuilder {
    pub(crate) identifier: ::std::option::Option<::std::string::String>,
    pub(crate) profile_identifier: ::std::option::Option<::std::string::String>,
}
impl GetProfileEntryInputBuilder {
    /// The identifier (id or name) 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 (id or name) of the profile entry.
    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 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 [`GetProfileEntryInput`](crate::operation::get_profile_entry::GetProfileEntryInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_profile_entry::GetProfileEntryInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_profile_entry::GetProfileEntryInput {
            identifier: self.identifier,
            profile_identifier: self.profile_identifier,
        })
    }
}