#[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 ==
.impl StructuralPartialEq for ResourceConfigurationBuilder
Auto Trait Implementations§
impl Freeze for ResourceConfigurationBuilder
impl RefUnwindSafe for ResourceConfigurationBuilder
impl Send for ResourceConfigurationBuilder
impl Sync for ResourceConfigurationBuilder
impl Unpin for ResourceConfigurationBuilder
impl UnwindSafe for ResourceConfigurationBuilder
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