aws-sdk-redshiftserverless 1.106.0

AWS SDK for Redshift Serverless
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 GetRecoveryPointInput {
    /// <p>The unique identifier of the recovery point to return information for.</p>
    pub recovery_point_id: ::std::option::Option<::std::string::String>,
}
impl GetRecoveryPointInput {
    /// <p>The unique identifier of the recovery point to return information for.</p>
    pub fn recovery_point_id(&self) -> ::std::option::Option<&str> {
        self.recovery_point_id.as_deref()
    }
}
impl GetRecoveryPointInput {
    /// Creates a new builder-style object to manufacture [`GetRecoveryPointInput`](crate::operation::get_recovery_point::GetRecoveryPointInput).
    pub fn builder() -> crate::operation::get_recovery_point::builders::GetRecoveryPointInputBuilder {
        crate::operation::get_recovery_point::builders::GetRecoveryPointInputBuilder::default()
    }
}

/// A builder for [`GetRecoveryPointInput`](crate::operation::get_recovery_point::GetRecoveryPointInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetRecoveryPointInputBuilder {
    pub(crate) recovery_point_id: ::std::option::Option<::std::string::String>,
}
impl GetRecoveryPointInputBuilder {
    /// <p>The unique identifier of the recovery point to return information for.</p>
    /// This field is required.
    pub fn recovery_point_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.recovery_point_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the recovery point to return information for.</p>
    pub fn set_recovery_point_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.recovery_point_id = input;
        self
    }
    /// <p>The unique identifier of the recovery point to return information for.</p>
    pub fn get_recovery_point_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.recovery_point_id
    }
    /// Consumes the builder and constructs a [`GetRecoveryPointInput`](crate::operation::get_recovery_point::GetRecoveryPointInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_recovery_point::GetRecoveryPointInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_recovery_point::GetRecoveryPointInput {
            recovery_point_id: self.recovery_point_id,
        })
    }
}