aws-sdk-odb 1.42.0

AWS SDK for odb
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 RebootAutonomousDatabaseInput {
    /// <p>The unique identifier of the Autonomous Database to reboot.</p>
    pub autonomous_database_id: ::std::option::Option<::std::string::String>,
    /// <p>Specifies whether to perform an online reboot of the Autonomous Database without interrupting active connections.</p>
    pub is_online_reboot: ::std::option::Option<bool>,
}
impl RebootAutonomousDatabaseInput {
    /// <p>The unique identifier of the Autonomous Database to reboot.</p>
    pub fn autonomous_database_id(&self) -> ::std::option::Option<&str> {
        self.autonomous_database_id.as_deref()
    }
    /// <p>Specifies whether to perform an online reboot of the Autonomous Database without interrupting active connections.</p>
    pub fn is_online_reboot(&self) -> ::std::option::Option<bool> {
        self.is_online_reboot
    }
}
impl RebootAutonomousDatabaseInput {
    /// Creates a new builder-style object to manufacture [`RebootAutonomousDatabaseInput`](crate::operation::reboot_autonomous_database::RebootAutonomousDatabaseInput).
    pub fn builder() -> crate::operation::reboot_autonomous_database::builders::RebootAutonomousDatabaseInputBuilder {
        crate::operation::reboot_autonomous_database::builders::RebootAutonomousDatabaseInputBuilder::default()
    }
}

/// A builder for [`RebootAutonomousDatabaseInput`](crate::operation::reboot_autonomous_database::RebootAutonomousDatabaseInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RebootAutonomousDatabaseInputBuilder {
    pub(crate) autonomous_database_id: ::std::option::Option<::std::string::String>,
    pub(crate) is_online_reboot: ::std::option::Option<bool>,
}
impl RebootAutonomousDatabaseInputBuilder {
    /// <p>The unique identifier of the Autonomous Database to reboot.</p>
    /// This field is required.
    pub fn autonomous_database_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.autonomous_database_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the Autonomous Database to reboot.</p>
    pub fn set_autonomous_database_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.autonomous_database_id = input;
        self
    }
    /// <p>The unique identifier of the Autonomous Database to reboot.</p>
    pub fn get_autonomous_database_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.autonomous_database_id
    }
    /// <p>Specifies whether to perform an online reboot of the Autonomous Database without interrupting active connections.</p>
    pub fn is_online_reboot(mut self, input: bool) -> Self {
        self.is_online_reboot = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies whether to perform an online reboot of the Autonomous Database without interrupting active connections.</p>
    pub fn set_is_online_reboot(mut self, input: ::std::option::Option<bool>) -> Self {
        self.is_online_reboot = input;
        self
    }
    /// <p>Specifies whether to perform an online reboot of the Autonomous Database without interrupting active connections.</p>
    pub fn get_is_online_reboot(&self) -> &::std::option::Option<bool> {
        &self.is_online_reboot
    }
    /// Consumes the builder and constructs a [`RebootAutonomousDatabaseInput`](crate::operation::reboot_autonomous_database::RebootAutonomousDatabaseInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<
        crate::operation::reboot_autonomous_database::RebootAutonomousDatabaseInput,
        ::aws_smithy_types::error::operation::BuildError,
    > {
        ::std::result::Result::Ok(crate::operation::reboot_autonomous_database::RebootAutonomousDatabaseInput {
            autonomous_database_id: self.autonomous_database_id,
            is_online_reboot: self.is_online_reboot,
        })
    }
}