aws-sdk-odb 1.22.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 GetDbServerInput {
    /// <p>The unique identifier of the Oracle Exadata infrastructure that contains the database server.</p>
    pub cloud_exadata_infrastructure_id: ::std::option::Option<::std::string::String>,
    /// <p>The unique identifier of the database server to retrieve information about.</p>
    pub db_server_id: ::std::option::Option<::std::string::String>,
}
impl GetDbServerInput {
    /// <p>The unique identifier of the Oracle Exadata infrastructure that contains the database server.</p>
    pub fn cloud_exadata_infrastructure_id(&self) -> ::std::option::Option<&str> {
        self.cloud_exadata_infrastructure_id.as_deref()
    }
    /// <p>The unique identifier of the database server to retrieve information about.</p>
    pub fn db_server_id(&self) -> ::std::option::Option<&str> {
        self.db_server_id.as_deref()
    }
}
impl GetDbServerInput {
    /// Creates a new builder-style object to manufacture [`GetDbServerInput`](crate::operation::get_db_server::GetDbServerInput).
    pub fn builder() -> crate::operation::get_db_server::builders::GetDbServerInputBuilder {
        crate::operation::get_db_server::builders::GetDbServerInputBuilder::default()
    }
}

/// A builder for [`GetDbServerInput`](crate::operation::get_db_server::GetDbServerInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDbServerInputBuilder {
    pub(crate) cloud_exadata_infrastructure_id: ::std::option::Option<::std::string::String>,
    pub(crate) db_server_id: ::std::option::Option<::std::string::String>,
}
impl GetDbServerInputBuilder {
    /// <p>The unique identifier of the Oracle Exadata infrastructure that contains the database server.</p>
    /// This field is required.
    pub fn cloud_exadata_infrastructure_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.cloud_exadata_infrastructure_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the Oracle Exadata infrastructure that contains the database server.</p>
    pub fn set_cloud_exadata_infrastructure_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.cloud_exadata_infrastructure_id = input;
        self
    }
    /// <p>The unique identifier of the Oracle Exadata infrastructure that contains the database server.</p>
    pub fn get_cloud_exadata_infrastructure_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.cloud_exadata_infrastructure_id
    }
    /// <p>The unique identifier of the database server to retrieve information about.</p>
    /// This field is required.
    pub fn db_server_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.db_server_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique identifier of the database server to retrieve information about.</p>
    pub fn set_db_server_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.db_server_id = input;
        self
    }
    /// <p>The unique identifier of the database server to retrieve information about.</p>
    pub fn get_db_server_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.db_server_id
    }
    /// Consumes the builder and constructs a [`GetDbServerInput`](crate::operation::get_db_server::GetDbServerInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::get_db_server::GetDbServerInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_db_server::GetDbServerInput {
            cloud_exadata_infrastructure_id: self.cloud_exadata_infrastructure_id,
            db_server_id: self.db_server_id,
        })
    }
}