aws-sdk-bedrock 1.143.0

AWS SDK for Amazon Bedrock
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 GetInferenceProfileInput {
    /// <p>The ID or Amazon Resource Name (ARN) of the inference profile.</p>
    pub inference_profile_identifier: ::std::option::Option<::std::string::String>,
}
impl GetInferenceProfileInput {
    /// <p>The ID or Amazon Resource Name (ARN) of the inference profile.</p>
    pub fn inference_profile_identifier(&self) -> ::std::option::Option<&str> {
        self.inference_profile_identifier.as_deref()
    }
}
impl GetInferenceProfileInput {
    /// Creates a new builder-style object to manufacture [`GetInferenceProfileInput`](crate::operation::get_inference_profile::GetInferenceProfileInput).
    pub fn builder() -> crate::operation::get_inference_profile::builders::GetInferenceProfileInputBuilder {
        crate::operation::get_inference_profile::builders::GetInferenceProfileInputBuilder::default()
    }
}

/// A builder for [`GetInferenceProfileInput`](crate::operation::get_inference_profile::GetInferenceProfileInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetInferenceProfileInputBuilder {
    pub(crate) inference_profile_identifier: ::std::option::Option<::std::string::String>,
}
impl GetInferenceProfileInputBuilder {
    /// <p>The ID or Amazon Resource Name (ARN) of the inference profile.</p>
    /// This field is required.
    pub fn inference_profile_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.inference_profile_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID or Amazon Resource Name (ARN) of the inference profile.</p>
    pub fn set_inference_profile_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.inference_profile_identifier = input;
        self
    }
    /// <p>The ID or Amazon Resource Name (ARN) of the inference profile.</p>
    pub fn get_inference_profile_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.inference_profile_identifier
    }
    /// Consumes the builder and constructs a [`GetInferenceProfileInput`](crate::operation::get_inference_profile::GetInferenceProfileInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_inference_profile::GetInferenceProfileInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::get_inference_profile::GetInferenceProfileInput {
            inference_profile_identifier: self.inference_profile_identifier,
        })
    }
}