#[non_exhaustive]pub struct RedshiftDatabaseBuilder { /* private fields */ }
Expand description
A builder for RedshiftDatabase
.
Implementations§
source§impl RedshiftDatabaseBuilder
impl RedshiftDatabaseBuilder
sourcepub fn database_name(self, input: impl Into<String>) -> Self
pub fn database_name(self, input: impl Into<String>) -> Self
The name of a database hosted on an Amazon Redshift cluster.
This field is required.sourcepub fn set_database_name(self, input: Option<String>) -> Self
pub fn set_database_name(self, input: Option<String>) -> Self
The name of a database hosted on an Amazon Redshift cluster.
sourcepub fn get_database_name(&self) -> &Option<String>
pub fn get_database_name(&self) -> &Option<String>
The name of a database hosted on an Amazon Redshift cluster.
sourcepub fn cluster_identifier(self, input: impl Into<String>) -> Self
pub fn cluster_identifier(self, input: impl Into<String>) -> Self
The ID of an Amazon Redshift cluster.
This field is required.sourcepub fn set_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_cluster_identifier(self, input: Option<String>) -> Self
The ID of an Amazon Redshift cluster.
sourcepub fn get_cluster_identifier(&self) -> &Option<String>
pub fn get_cluster_identifier(&self) -> &Option<String>
The ID of an Amazon Redshift cluster.
sourcepub fn build(self) -> Result<RedshiftDatabase, BuildError>
pub fn build(self) -> Result<RedshiftDatabase, BuildError>
Consumes the builder and constructs a RedshiftDatabase
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for RedshiftDatabaseBuilder
impl Clone for RedshiftDatabaseBuilder
source§fn clone(&self) -> RedshiftDatabaseBuilder
fn clone(&self) -> RedshiftDatabaseBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RedshiftDatabaseBuilder
impl Debug for RedshiftDatabaseBuilder
source§impl Default for RedshiftDatabaseBuilder
impl Default for RedshiftDatabaseBuilder
source§fn default() -> RedshiftDatabaseBuilder
fn default() -> RedshiftDatabaseBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for RedshiftDatabaseBuilder
impl PartialEq for RedshiftDatabaseBuilder
source§fn eq(&self, other: &RedshiftDatabaseBuilder) -> bool
fn eq(&self, other: &RedshiftDatabaseBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RedshiftDatabaseBuilder
Auto Trait Implementations§
impl RefUnwindSafe for RedshiftDatabaseBuilder
impl Send for RedshiftDatabaseBuilder
impl Sync for RedshiftDatabaseBuilder
impl Unpin for RedshiftDatabaseBuilder
impl UnwindSafe for RedshiftDatabaseBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.