#[non_exhaustive]pub struct S3OnDeviceServiceConfigurationBuilder { /* private fields */ }
Expand description
A builder for S3OnDeviceServiceConfiguration
.
Implementations§
source§impl S3OnDeviceServiceConfigurationBuilder
impl S3OnDeviceServiceConfigurationBuilder
sourcepub fn storage_limit(self, input: f64) -> Self
pub fn storage_limit(self, input: f64) -> Self
If the specified storage limit value matches storage limit of one of the defined configurations, that configuration will be used. If the specified storage limit value does not match any defined configuration, the request will fail. If more than one configuration has the same storage limit as specified, the other input need to be provided.
sourcepub fn set_storage_limit(self, input: Option<f64>) -> Self
pub fn set_storage_limit(self, input: Option<f64>) -> Self
If the specified storage limit value matches storage limit of one of the defined configurations, that configuration will be used. If the specified storage limit value does not match any defined configuration, the request will fail. If more than one configuration has the same storage limit as specified, the other input need to be provided.
sourcepub fn get_storage_limit(&self) -> &Option<f64>
pub fn get_storage_limit(&self) -> &Option<f64>
If the specified storage limit value matches storage limit of one of the defined configurations, that configuration will be used. If the specified storage limit value does not match any defined configuration, the request will fail. If more than one configuration has the same storage limit as specified, the other input need to be provided.
sourcepub fn storage_unit(self, input: StorageUnit) -> Self
pub fn storage_unit(self, input: StorageUnit) -> Self
Storage unit. Currently the only supported unit is TB.
sourcepub fn set_storage_unit(self, input: Option<StorageUnit>) -> Self
pub fn set_storage_unit(self, input: Option<StorageUnit>) -> Self
Storage unit. Currently the only supported unit is TB.
sourcepub fn get_storage_unit(&self) -> &Option<StorageUnit>
pub fn get_storage_unit(&self) -> &Option<StorageUnit>
Storage unit. Currently the only supported unit is TB.
sourcepub fn service_size(self, input: i32) -> Self
pub fn service_size(self, input: i32) -> Self
Applicable when creating a cluster. Specifies how many nodes are needed for Amazon S3 compatible storage on Snow family devices. If specified, the other input can be omitted.
sourcepub fn set_service_size(self, input: Option<i32>) -> Self
pub fn set_service_size(self, input: Option<i32>) -> Self
Applicable when creating a cluster. Specifies how many nodes are needed for Amazon S3 compatible storage on Snow family devices. If specified, the other input can be omitted.
sourcepub fn get_service_size(&self) -> &Option<i32>
pub fn get_service_size(&self) -> &Option<i32>
Applicable when creating a cluster. Specifies how many nodes are needed for Amazon S3 compatible storage on Snow family devices. If specified, the other input can be omitted.
sourcepub fn fault_tolerance(self, input: i32) -> Self
pub fn fault_tolerance(self, input: i32) -> Self
>Fault tolerance level of the cluster. This indicates the number of nodes that can go down without degrading the performance of the cluster. This additional input helps when the specified StorageLimit
matches more than one Amazon S3 compatible storage on Snow family devices service configuration.
sourcepub fn set_fault_tolerance(self, input: Option<i32>) -> Self
pub fn set_fault_tolerance(self, input: Option<i32>) -> Self
>Fault tolerance level of the cluster. This indicates the number of nodes that can go down without degrading the performance of the cluster. This additional input helps when the specified StorageLimit
matches more than one Amazon S3 compatible storage on Snow family devices service configuration.
sourcepub fn get_fault_tolerance(&self) -> &Option<i32>
pub fn get_fault_tolerance(&self) -> &Option<i32>
>Fault tolerance level of the cluster. This indicates the number of nodes that can go down without degrading the performance of the cluster. This additional input helps when the specified StorageLimit
matches more than one Amazon S3 compatible storage on Snow family devices service configuration.
sourcepub fn build(self) -> S3OnDeviceServiceConfiguration
pub fn build(self) -> S3OnDeviceServiceConfiguration
Consumes the builder and constructs a S3OnDeviceServiceConfiguration
.
Trait Implementations§
source§impl Clone for S3OnDeviceServiceConfigurationBuilder
impl Clone for S3OnDeviceServiceConfigurationBuilder
source§fn clone(&self) -> S3OnDeviceServiceConfigurationBuilder
fn clone(&self) -> S3OnDeviceServiceConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for S3OnDeviceServiceConfigurationBuilder
impl Default for S3OnDeviceServiceConfigurationBuilder
source§fn default() -> S3OnDeviceServiceConfigurationBuilder
fn default() -> S3OnDeviceServiceConfigurationBuilder
source§impl PartialEq for S3OnDeviceServiceConfigurationBuilder
impl PartialEq for S3OnDeviceServiceConfigurationBuilder
source§fn eq(&self, other: &S3OnDeviceServiceConfigurationBuilder) -> bool
fn eq(&self, other: &S3OnDeviceServiceConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.