aws-sdk-greengrass 1.98.0

AWS SDK for AWS Greengrass
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 GetFunctionDefinitionInput {
    /// The ID of the Lambda function definition.
    pub function_definition_id: ::std::option::Option<::std::string::String>,
}
impl GetFunctionDefinitionInput {
    /// The ID of the Lambda function definition.
    pub fn function_definition_id(&self) -> ::std::option::Option<&str> {
        self.function_definition_id.as_deref()
    }
}
impl GetFunctionDefinitionInput {
    /// Creates a new builder-style object to manufacture [`GetFunctionDefinitionInput`](crate::operation::get_function_definition::GetFunctionDefinitionInput).
    pub fn builder() -> crate::operation::get_function_definition::builders::GetFunctionDefinitionInputBuilder {
        crate::operation::get_function_definition::builders::GetFunctionDefinitionInputBuilder::default()
    }
}

/// A builder for [`GetFunctionDefinitionInput`](crate::operation::get_function_definition::GetFunctionDefinitionInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetFunctionDefinitionInputBuilder {
    pub(crate) function_definition_id: ::std::option::Option<::std::string::String>,
}
impl GetFunctionDefinitionInputBuilder {
    /// The ID of the Lambda function definition.
    /// This field is required.
    pub fn function_definition_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.function_definition_id = ::std::option::Option::Some(input.into());
        self
    }
    /// The ID of the Lambda function definition.
    pub fn set_function_definition_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.function_definition_id = input;
        self
    }
    /// The ID of the Lambda function definition.
    pub fn get_function_definition_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.function_definition_id
    }
    /// Consumes the builder and constructs a [`GetFunctionDefinitionInput`](crate::operation::get_function_definition::GetFunctionDefinitionInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_function_definition::GetFunctionDefinitionInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::get_function_definition::GetFunctionDefinitionInput {
            function_definition_id: self.function_definition_id,
        })
    }
}