aws-sdk-drs 1.119.0

AWS SDK for Elastic Disaster Recovery Service
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 CreateRecoveryPlanOutput {
    /// A Recovery Plan resource.
    pub recovery_plan: ::std::option::Option<crate::types::RecoveryPlan>,
    _request_id: Option<String>,
}
impl CreateRecoveryPlanOutput {
    /// A Recovery Plan resource.
    pub fn recovery_plan(&self) -> ::std::option::Option<&crate::types::RecoveryPlan> {
        self.recovery_plan.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for CreateRecoveryPlanOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl CreateRecoveryPlanOutput {
    /// Creates a new builder-style object to manufacture [`CreateRecoveryPlanOutput`](crate::operation::create_recovery_plan::CreateRecoveryPlanOutput).
    pub fn builder() -> crate::operation::create_recovery_plan::builders::CreateRecoveryPlanOutputBuilder {
        crate::operation::create_recovery_plan::builders::CreateRecoveryPlanOutputBuilder::default()
    }
}

/// A builder for [`CreateRecoveryPlanOutput`](crate::operation::create_recovery_plan::CreateRecoveryPlanOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateRecoveryPlanOutputBuilder {
    pub(crate) recovery_plan: ::std::option::Option<crate::types::RecoveryPlan>,
    _request_id: Option<String>,
}
impl CreateRecoveryPlanOutputBuilder {
    /// A Recovery Plan resource.
    /// This field is required.
    pub fn recovery_plan(mut self, input: crate::types::RecoveryPlan) -> Self {
        self.recovery_plan = ::std::option::Option::Some(input);
        self
    }
    /// A Recovery Plan resource.
    pub fn set_recovery_plan(mut self, input: ::std::option::Option<crate::types::RecoveryPlan>) -> Self {
        self.recovery_plan = input;
        self
    }
    /// A Recovery Plan resource.
    pub fn get_recovery_plan(&self) -> &::std::option::Option<crate::types::RecoveryPlan> {
        &self.recovery_plan
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`CreateRecoveryPlanOutput`](crate::operation::create_recovery_plan::CreateRecoveryPlanOutput).
    pub fn build(self) -> crate::operation::create_recovery_plan::CreateRecoveryPlanOutput {
        crate::operation::create_recovery_plan::CreateRecoveryPlanOutput {
            recovery_plan: self.recovery_plan,
            _request_id: self._request_id,
        }
    }
}