#[non_exhaustive]pub struct ContainerConfigurationBuilder { /* private fields */ }
Expand description
A builder for ContainerConfiguration
.
Implementations§
source§impl ContainerConfigurationBuilder
impl ContainerConfigurationBuilder
sourcepub fn container_name(self, input: impl Into<String>) -> Self
pub fn container_name(self, input: impl Into<String>) -> Self
The name of the container.
sourcepub fn set_container_name(self, input: Option<String>) -> Self
pub fn set_container_name(self, input: Option<String>) -> Self
The name of the container.
sourcepub fn get_container_name(&self) -> &Option<String>
pub fn get_container_name(&self) -> &Option<String>
The name of the container.
sourcepub fn memory_size_configuration(self, input: MemorySizeConfiguration) -> Self
pub fn memory_size_configuration(self, input: MemorySizeConfiguration) -> Self
The memory size configurations for the container.
sourcepub fn set_memory_size_configuration(
self,
input: Option<MemorySizeConfiguration>
) -> Self
pub fn set_memory_size_configuration( self, input: Option<MemorySizeConfiguration> ) -> Self
The memory size configurations for the container.
sourcepub fn get_memory_size_configuration(&self) -> &Option<MemorySizeConfiguration>
pub fn get_memory_size_configuration(&self) -> &Option<MemorySizeConfiguration>
The memory size configurations for the container.
sourcepub fn set_cpu(self, input: Option<i32>) -> Self
pub fn set_cpu(self, input: Option<i32>) -> Self
The number of CPU units reserved for the container.
sourcepub fn build(self) -> ContainerConfiguration
pub fn build(self) -> ContainerConfiguration
Consumes the builder and constructs a ContainerConfiguration
.
Trait Implementations§
source§impl Clone for ContainerConfigurationBuilder
impl Clone for ContainerConfigurationBuilder
source§fn clone(&self) -> ContainerConfigurationBuilder
fn clone(&self) -> ContainerConfigurationBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ContainerConfigurationBuilder
impl Default for ContainerConfigurationBuilder
source§fn default() -> ContainerConfigurationBuilder
fn default() -> ContainerConfigurationBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ContainerConfigurationBuilder
impl PartialEq for ContainerConfigurationBuilder
source§fn eq(&self, other: &ContainerConfigurationBuilder) -> bool
fn eq(&self, other: &ContainerConfigurationBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContainerConfigurationBuilder
Auto Trait Implementations§
impl Freeze for ContainerConfigurationBuilder
impl RefUnwindSafe for ContainerConfigurationBuilder
impl Send for ContainerConfigurationBuilder
impl Sync for ContainerConfigurationBuilder
impl Unpin for ContainerConfigurationBuilder
impl UnwindSafe for ContainerConfigurationBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.