#[non_exhaustive]pub struct TaskContainerDependencyBuilder { /* private fields */ }
Expand description
A builder for TaskContainerDependency
.
Implementations§
source§impl TaskContainerDependencyBuilder
impl TaskContainerDependencyBuilder
sourcepub fn container_name(self, input: impl Into<String>) -> Self
pub fn container_name(self, input: impl Into<String>) -> Self
A unique identifier for the container.
sourcepub fn set_container_name(self, input: Option<String>) -> Self
pub fn set_container_name(self, input: Option<String>) -> Self
A unique identifier for the container.
sourcepub fn get_container_name(&self) -> &Option<String>
pub fn get_container_name(&self) -> &Option<String>
A unique identifier for the container.
sourcepub fn condition(self, input: impl Into<String>) -> Self
pub fn condition(self, input: impl Into<String>) -> Self
The dependency condition of the container. The following are the available conditions and their behavior:
-
START
- This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start. -
COMPLETE
- This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container. -
SUCCESS
- This condition is the same asCOMPLETE
, but it also requires that the container exits with a zero status. This condition can't be set on an essential container.
sourcepub fn set_condition(self, input: Option<String>) -> Self
pub fn set_condition(self, input: Option<String>) -> Self
The dependency condition of the container. The following are the available conditions and their behavior:
-
START
- This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start. -
COMPLETE
- This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container. -
SUCCESS
- This condition is the same asCOMPLETE
, but it also requires that the container exits with a zero status. This condition can't be set on an essential container.
sourcepub fn get_condition(&self) -> &Option<String>
pub fn get_condition(&self) -> &Option<String>
The dependency condition of the container. The following are the available conditions and their behavior:
-
START
- This condition emulates the behavior of links and volumes today. It validates that a dependent container is started before permitting other containers to start. -
COMPLETE
- This condition validates that a dependent container runs to completion (exits) before permitting other containers to start. This can be useful for nonessential containers that run a script and then exit. This condition can't be set on an essential container. -
SUCCESS
- This condition is the same asCOMPLETE
, but it also requires that the container exits with a zero status. This condition can't be set on an essential container.
sourcepub fn build(self) -> TaskContainerDependency
pub fn build(self) -> TaskContainerDependency
Consumes the builder and constructs a TaskContainerDependency
.
Trait Implementations§
source§impl Clone for TaskContainerDependencyBuilder
impl Clone for TaskContainerDependencyBuilder
source§fn clone(&self) -> TaskContainerDependencyBuilder
fn clone(&self) -> TaskContainerDependencyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TaskContainerDependencyBuilder
impl Default for TaskContainerDependencyBuilder
source§fn default() -> TaskContainerDependencyBuilder
fn default() -> TaskContainerDependencyBuilder
source§impl PartialEq for TaskContainerDependencyBuilder
impl PartialEq for TaskContainerDependencyBuilder
source§fn eq(&self, other: &TaskContainerDependencyBuilder) -> bool
fn eq(&self, other: &TaskContainerDependencyBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.