#[non_exhaustive]pub struct DataProviderBuilder { /* private fields */ }
Expand description
A builder for DataProvider
.
Implementations§
source§impl DataProviderBuilder
impl DataProviderBuilder
sourcepub fn data_provider_name(self, input: impl Into<String>) -> Self
pub fn data_provider_name(self, input: impl Into<String>) -> Self
The name of the data provider.
sourcepub fn set_data_provider_name(self, input: Option<String>) -> Self
pub fn set_data_provider_name(self, input: Option<String>) -> Self
The name of the data provider.
sourcepub fn get_data_provider_name(&self) -> &Option<String>
pub fn get_data_provider_name(&self) -> &Option<String>
The name of the data provider.
sourcepub fn data_provider_arn(self, input: impl Into<String>) -> Self
pub fn data_provider_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) string that uniquely identifies the data provider.
sourcepub fn set_data_provider_arn(self, input: Option<String>) -> Self
pub fn set_data_provider_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) string that uniquely identifies the data provider.
sourcepub fn get_data_provider_arn(&self) -> &Option<String>
pub fn get_data_provider_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) string that uniquely identifies the data provider.
sourcepub fn data_provider_creation_time(self, input: DateTime) -> Self
pub fn data_provider_creation_time(self, input: DateTime) -> Self
The time the data provider was created.
sourcepub fn set_data_provider_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_data_provider_creation_time(self, input: Option<DateTime>) -> Self
The time the data provider was created.
sourcepub fn get_data_provider_creation_time(&self) -> &Option<DateTime>
pub fn get_data_provider_creation_time(&self) -> &Option<DateTime>
The time the data provider was created.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the data provider. Descriptions can have up to 31 characters. A description can contain only ASCII letters, digits, and hyphens ('-'). Also, it can't end with a hyphen or contain two consecutive hyphens, and can only begin with a letter.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the data provider. Descriptions can have up to 31 characters. A description can contain only ASCII letters, digits, and hyphens ('-'). Also, it can't end with a hyphen or contain two consecutive hyphens, and can only begin with a letter.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the data provider. Descriptions can have up to 31 characters. A description can contain only ASCII letters, digits, and hyphens ('-'). Also, it can't end with a hyphen or contain two consecutive hyphens, and can only begin with a letter.
sourcepub fn engine(self, input: impl Into<String>) -> Self
pub fn engine(self, input: impl Into<String>) -> Self
The type of database engine for the data provider. Valid values include "aurora"
, "aurora-postgresql"
, "mysql"
, "oracle"
, "postgres"
, "sqlserver"
, redshift
, mariadb
, mongodb
, and docdb
. A value of "aurora"
represents Amazon Aurora MySQL-Compatible Edition.
sourcepub fn set_engine(self, input: Option<String>) -> Self
pub fn set_engine(self, input: Option<String>) -> Self
The type of database engine for the data provider. Valid values include "aurora"
, "aurora-postgresql"
, "mysql"
, "oracle"
, "postgres"
, "sqlserver"
, redshift
, mariadb
, mongodb
, and docdb
. A value of "aurora"
represents Amazon Aurora MySQL-Compatible Edition.
sourcepub fn get_engine(&self) -> &Option<String>
pub fn get_engine(&self) -> &Option<String>
The type of database engine for the data provider. Valid values include "aurora"
, "aurora-postgresql"
, "mysql"
, "oracle"
, "postgres"
, "sqlserver"
, redshift
, mariadb
, mongodb
, and docdb
. A value of "aurora"
represents Amazon Aurora MySQL-Compatible Edition.
sourcepub fn settings(self, input: DataProviderSettings) -> Self
pub fn settings(self, input: DataProviderSettings) -> Self
The settings in JSON format for a data provider.
sourcepub fn set_settings(self, input: Option<DataProviderSettings>) -> Self
pub fn set_settings(self, input: Option<DataProviderSettings>) -> Self
The settings in JSON format for a data provider.
sourcepub fn get_settings(&self) -> &Option<DataProviderSettings>
pub fn get_settings(&self) -> &Option<DataProviderSettings>
The settings in JSON format for a data provider.
sourcepub fn build(self) -> DataProvider
pub fn build(self) -> DataProvider
Consumes the builder and constructs a DataProvider
.
Trait Implementations§
source§impl Clone for DataProviderBuilder
impl Clone for DataProviderBuilder
source§fn clone(&self) -> DataProviderBuilder
fn clone(&self) -> DataProviderBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DataProviderBuilder
impl Debug for DataProviderBuilder
source§impl Default for DataProviderBuilder
impl Default for DataProviderBuilder
source§fn default() -> DataProviderBuilder
fn default() -> DataProviderBuilder
source§impl PartialEq for DataProviderBuilder
impl PartialEq for DataProviderBuilder
source§fn eq(&self, other: &DataProviderBuilder) -> bool
fn eq(&self, other: &DataProviderBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DataProviderBuilder
Auto Trait Implementations§
impl Freeze for DataProviderBuilder
impl RefUnwindSafe for DataProviderBuilder
impl Send for DataProviderBuilder
impl Sync for DataProviderBuilder
impl Unpin for DataProviderBuilder
impl UnwindSafe for DataProviderBuilder
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
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more