#[non_exhaustive]pub struct KxDatabaseConfigurationBuilder { /* private fields */ }Expand description
A builder for KxDatabaseConfiguration.
Implementations§
source§impl KxDatabaseConfigurationBuilder
impl KxDatabaseConfigurationBuilder
sourcepub fn database_name(self, input: impl Into<String>) -> Self
pub fn database_name(self, input: impl Into<String>) -> Self
The name of the kdb database. When this parameter is specified in the structure, S3 with the whole database is included by default.
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 the kdb database. When this parameter is specified in the structure, S3 with the whole database is included by default.
sourcepub fn get_database_name(&self) -> &Option<String>
pub fn get_database_name(&self) -> &Option<String>
The name of the kdb database. When this parameter is specified in the structure, S3 with the whole database is included by default.
sourcepub fn cache_configurations(self, input: KxDatabaseCacheConfiguration) -> Self
pub fn cache_configurations(self, input: KxDatabaseCacheConfiguration) -> Self
Appends an item to cache_configurations.
To override the contents of this collection use set_cache_configurations.
Configuration details for the disk cache used to increase performance reading from a kdb database mounted to the cluster.
sourcepub fn set_cache_configurations(
self,
input: Option<Vec<KxDatabaseCacheConfiguration>>
) -> Self
pub fn set_cache_configurations( self, input: Option<Vec<KxDatabaseCacheConfiguration>> ) -> Self
Configuration details for the disk cache used to increase performance reading from a kdb database mounted to the cluster.
sourcepub fn get_cache_configurations(
&self
) -> &Option<Vec<KxDatabaseCacheConfiguration>>
pub fn get_cache_configurations( &self ) -> &Option<Vec<KxDatabaseCacheConfiguration>>
Configuration details for the disk cache used to increase performance reading from a kdb database mounted to the cluster.
sourcepub fn changeset_id(self, input: impl Into<String>) -> Self
pub fn changeset_id(self, input: impl Into<String>) -> Self
A unique identifier of the changeset that is associated with the cluster.
sourcepub fn set_changeset_id(self, input: Option<String>) -> Self
pub fn set_changeset_id(self, input: Option<String>) -> Self
A unique identifier of the changeset that is associated with the cluster.
sourcepub fn get_changeset_id(&self) -> &Option<String>
pub fn get_changeset_id(&self) -> &Option<String>
A unique identifier of the changeset that is associated with the cluster.
sourcepub fn dataview_name(self, input: impl Into<String>) -> Self
pub fn dataview_name(self, input: impl Into<String>) -> Self
The name of the dataview to be used for caching historical data on disk.
sourcepub fn set_dataview_name(self, input: Option<String>) -> Self
pub fn set_dataview_name(self, input: Option<String>) -> Self
The name of the dataview to be used for caching historical data on disk.
sourcepub fn get_dataview_name(&self) -> &Option<String>
pub fn get_dataview_name(&self) -> &Option<String>
The name of the dataview to be used for caching historical data on disk.
sourcepub fn dataview_configuration(self, input: KxDataviewConfiguration) -> Self
pub fn dataview_configuration(self, input: KxDataviewConfiguration) -> Self
The configuration of the dataview to be used with specified cluster.
sourcepub fn set_dataview_configuration(
self,
input: Option<KxDataviewConfiguration>
) -> Self
pub fn set_dataview_configuration( self, input: Option<KxDataviewConfiguration> ) -> Self
The configuration of the dataview to be used with specified cluster.
sourcepub fn get_dataview_configuration(&self) -> &Option<KxDataviewConfiguration>
pub fn get_dataview_configuration(&self) -> &Option<KxDataviewConfiguration>
The configuration of the dataview to be used with specified cluster.
sourcepub fn build(self) -> Result<KxDatabaseConfiguration, BuildError>
pub fn build(self) -> Result<KxDatabaseConfiguration, BuildError>
Consumes the builder and constructs a KxDatabaseConfiguration.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for KxDatabaseConfigurationBuilder
impl Clone for KxDatabaseConfigurationBuilder
source§fn clone(&self) -> KxDatabaseConfigurationBuilder
fn clone(&self) -> KxDatabaseConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for KxDatabaseConfigurationBuilder
impl Default for KxDatabaseConfigurationBuilder
source§fn default() -> KxDatabaseConfigurationBuilder
fn default() -> KxDatabaseConfigurationBuilder
source§impl PartialEq for KxDatabaseConfigurationBuilder
impl PartialEq for KxDatabaseConfigurationBuilder
source§fn eq(&self, other: &KxDatabaseConfigurationBuilder) -> bool
fn eq(&self, other: &KxDatabaseConfigurationBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for KxDatabaseConfigurationBuilder
Auto Trait Implementations§
impl Freeze for KxDatabaseConfigurationBuilder
impl RefUnwindSafe for KxDatabaseConfigurationBuilder
impl Send for KxDatabaseConfigurationBuilder
impl Sync for KxDatabaseConfigurationBuilder
impl Unpin for KxDatabaseConfigurationBuilder
impl UnwindSafe for KxDatabaseConfigurationBuilder
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