#[non_exhaustive]pub struct TimestreamSettingsBuilder { /* private fields */ }
Expand description
A builder for TimestreamSettings
.
Implementations§
source§impl TimestreamSettingsBuilder
impl TimestreamSettingsBuilder
sourcepub fn database_name(self, input: impl Into<String>) -> Self
pub fn database_name(self, input: impl Into<String>) -> Self
Database name for the endpoint.
This field is required.sourcepub fn set_database_name(self, input: Option<String>) -> Self
pub fn set_database_name(self, input: Option<String>) -> Self
Database name for the endpoint.
sourcepub fn get_database_name(&self) -> &Option<String>
pub fn get_database_name(&self) -> &Option<String>
Database name for the endpoint.
sourcepub fn memory_duration(self, input: i32) -> Self
pub fn memory_duration(self, input: i32) -> Self
Set this attribute to specify the length of time to store all of the tables in memory that are migrated into Amazon Timestream from the source database. Time is measured in units of hours. When Timestream data comes in, it first resides in memory for the specified duration, which allows quick access to it.
This field is required.sourcepub fn set_memory_duration(self, input: Option<i32>) -> Self
pub fn set_memory_duration(self, input: Option<i32>) -> Self
Set this attribute to specify the length of time to store all of the tables in memory that are migrated into Amazon Timestream from the source database. Time is measured in units of hours. When Timestream data comes in, it first resides in memory for the specified duration, which allows quick access to it.
sourcepub fn get_memory_duration(&self) -> &Option<i32>
pub fn get_memory_duration(&self) -> &Option<i32>
Set this attribute to specify the length of time to store all of the tables in memory that are migrated into Amazon Timestream from the source database. Time is measured in units of hours. When Timestream data comes in, it first resides in memory for the specified duration, which allows quick access to it.
sourcepub fn magnetic_duration(self, input: i32) -> Self
pub fn magnetic_duration(self, input: i32) -> Self
Set this attribute to specify the default magnetic duration applied to the Amazon Timestream tables in days. This is the number of days that records remain in magnetic store before being discarded. For more information, see Storage in the Amazon Timestream Developer Guide.
This field is required.sourcepub fn set_magnetic_duration(self, input: Option<i32>) -> Self
pub fn set_magnetic_duration(self, input: Option<i32>) -> Self
Set this attribute to specify the default magnetic duration applied to the Amazon Timestream tables in days. This is the number of days that records remain in magnetic store before being discarded. For more information, see Storage in the Amazon Timestream Developer Guide.
sourcepub fn get_magnetic_duration(&self) -> &Option<i32>
pub fn get_magnetic_duration(&self) -> &Option<i32>
Set this attribute to specify the default magnetic duration applied to the Amazon Timestream tables in days. This is the number of days that records remain in magnetic store before being discarded. For more information, see Storage in the Amazon Timestream Developer Guide.
sourcepub fn cdc_inserts_and_updates(self, input: bool) -> Self
pub fn cdc_inserts_and_updates(self, input: bool) -> Self
Set this attribute to true
to specify that DMS only applies inserts and updates, and not deletes. Amazon Timestream does not allow deleting records, so if this value is false
, DMS nulls out the corresponding record in the Timestream database rather than deleting it.
sourcepub fn set_cdc_inserts_and_updates(self, input: Option<bool>) -> Self
pub fn set_cdc_inserts_and_updates(self, input: Option<bool>) -> Self
Set this attribute to true
to specify that DMS only applies inserts and updates, and not deletes. Amazon Timestream does not allow deleting records, so if this value is false
, DMS nulls out the corresponding record in the Timestream database rather than deleting it.
sourcepub fn get_cdc_inserts_and_updates(&self) -> &Option<bool>
pub fn get_cdc_inserts_and_updates(&self) -> &Option<bool>
Set this attribute to true
to specify that DMS only applies inserts and updates, and not deletes. Amazon Timestream does not allow deleting records, so if this value is false
, DMS nulls out the corresponding record in the Timestream database rather than deleting it.
sourcepub fn enable_magnetic_store_writes(self, input: bool) -> Self
pub fn enable_magnetic_store_writes(self, input: bool) -> Self
Set this attribute to true
to enable memory store writes. When this value is false
, DMS does not write records that are older in days than the value specified in MagneticDuration
, because Amazon Timestream does not allow memory writes by default. For more information, see Storage in the Amazon Timestream Developer Guide.
sourcepub fn set_enable_magnetic_store_writes(self, input: Option<bool>) -> Self
pub fn set_enable_magnetic_store_writes(self, input: Option<bool>) -> Self
Set this attribute to true
to enable memory store writes. When this value is false
, DMS does not write records that are older in days than the value specified in MagneticDuration
, because Amazon Timestream does not allow memory writes by default. For more information, see Storage in the Amazon Timestream Developer Guide.
sourcepub fn get_enable_magnetic_store_writes(&self) -> &Option<bool>
pub fn get_enable_magnetic_store_writes(&self) -> &Option<bool>
Set this attribute to true
to enable memory store writes. When this value is false
, DMS does not write records that are older in days than the value specified in MagneticDuration
, because Amazon Timestream does not allow memory writes by default. For more information, see Storage in the Amazon Timestream Developer Guide.
sourcepub fn build(self) -> Result<TimestreamSettings, BuildError>
pub fn build(self) -> Result<TimestreamSettings, BuildError>
Consumes the builder and constructs a TimestreamSettings
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TimestreamSettingsBuilder
impl Clone for TimestreamSettingsBuilder
source§fn clone(&self) -> TimestreamSettingsBuilder
fn clone(&self) -> TimestreamSettingsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TimestreamSettingsBuilder
impl Debug for TimestreamSettingsBuilder
source§impl Default for TimestreamSettingsBuilder
impl Default for TimestreamSettingsBuilder
source§fn default() -> TimestreamSettingsBuilder
fn default() -> TimestreamSettingsBuilder
source§impl PartialEq for TimestreamSettingsBuilder
impl PartialEq for TimestreamSettingsBuilder
source§fn eq(&self, other: &TimestreamSettingsBuilder) -> bool
fn eq(&self, other: &TimestreamSettingsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.