#[non_exhaustive]pub struct ResourceConfigurationBuilder { /* private fields */ }
Expand description
A builder for ResourceConfiguration
.
Implementations§
source§impl ResourceConfigurationBuilder
impl ResourceConfigurationBuilder
sourcepub fn compute_type(self, input: ComputeType) -> Self
pub fn compute_type(self, input: ComputeType) -> Self
The type of the compute resource used to execute the containerAction
. Possible values are: ACU_1
(vCPU=4, memory=16 GiB) or ACU_2
(vCPU=8, memory=32 GiB).
sourcepub fn set_compute_type(self, input: Option<ComputeType>) -> Self
pub fn set_compute_type(self, input: Option<ComputeType>) -> Self
The type of the compute resource used to execute the containerAction
. Possible values are: ACU_1
(vCPU=4, memory=16 GiB) or ACU_2
(vCPU=8, memory=32 GiB).
sourcepub fn get_compute_type(&self) -> &Option<ComputeType>
pub fn get_compute_type(&self) -> &Option<ComputeType>
The type of the compute resource used to execute the containerAction
. Possible values are: ACU_1
(vCPU=4, memory=16 GiB) or ACU_2
(vCPU=8, memory=32 GiB).
sourcepub fn volume_size_in_gb(self, input: i32) -> Self
pub fn volume_size_in_gb(self, input: i32) -> Self
The size, in GB, of the persistent storage available to the resource instance used to execute the containerAction
(min: 1, max: 50).
sourcepub fn set_volume_size_in_gb(self, input: Option<i32>) -> Self
pub fn set_volume_size_in_gb(self, input: Option<i32>) -> Self
The size, in GB, of the persistent storage available to the resource instance used to execute the containerAction
(min: 1, max: 50).
sourcepub fn get_volume_size_in_gb(&self) -> &Option<i32>
pub fn get_volume_size_in_gb(&self) -> &Option<i32>
The size, in GB, of the persistent storage available to the resource instance used to execute the containerAction
(min: 1, max: 50).
sourcepub fn build(self) -> Result<ResourceConfiguration, BuildError>
pub fn build(self) -> Result<ResourceConfiguration, BuildError>
Consumes the builder and constructs a ResourceConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResourceConfigurationBuilder
impl Clone for ResourceConfigurationBuilder
source§fn clone(&self) -> ResourceConfigurationBuilder
fn clone(&self) -> ResourceConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResourceConfigurationBuilder
impl Debug for ResourceConfigurationBuilder
source§impl Default for ResourceConfigurationBuilder
impl Default for ResourceConfigurationBuilder
source§fn default() -> ResourceConfigurationBuilder
fn default() -> ResourceConfigurationBuilder
source§impl PartialEq for ResourceConfigurationBuilder
impl PartialEq for ResourceConfigurationBuilder
source§fn eq(&self, other: &ResourceConfigurationBuilder) -> bool
fn eq(&self, other: &ResourceConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.