#[non_exhaustive]pub struct ContainerServiceDeploymentBuilder { /* private fields */ }
Expand description
A builder for ContainerServiceDeployment
.
Implementations§
source§impl ContainerServiceDeploymentBuilder
impl ContainerServiceDeploymentBuilder
sourcepub fn set_version(self, input: Option<i32>) -> Self
pub fn set_version(self, input: Option<i32>) -> Self
The version number of the deployment.
sourcepub fn get_version(&self) -> &Option<i32>
pub fn get_version(&self) -> &Option<i32>
The version number of the deployment.
sourcepub fn state(self, input: ContainerServiceDeploymentState) -> Self
pub fn state(self, input: ContainerServiceDeploymentState) -> Self
The state of the deployment.
A deployment can be in one of the following states:
-
ACTIVATING
- The deployment is being created. -
ACTIVE
- The deployment was successfully created, and it's currently running on the container service. The container service can have only one deployment in an active state at a time. -
INACTIVE
- The deployment was previously successfully created, but it is not currently running on the container service. -
FAILED
- The deployment failed. Use theGetContainerLog
action to view the log events for the containers in the deployment to try to determine the reason for the failure.
sourcepub fn set_state(self, input: Option<ContainerServiceDeploymentState>) -> Self
pub fn set_state(self, input: Option<ContainerServiceDeploymentState>) -> Self
The state of the deployment.
A deployment can be in one of the following states:
-
ACTIVATING
- The deployment is being created. -
ACTIVE
- The deployment was successfully created, and it's currently running on the container service. The container service can have only one deployment in an active state at a time. -
INACTIVE
- The deployment was previously successfully created, but it is not currently running on the container service. -
FAILED
- The deployment failed. Use theGetContainerLog
action to view the log events for the containers in the deployment to try to determine the reason for the failure.
sourcepub fn get_state(&self) -> &Option<ContainerServiceDeploymentState>
pub fn get_state(&self) -> &Option<ContainerServiceDeploymentState>
The state of the deployment.
A deployment can be in one of the following states:
-
ACTIVATING
- The deployment is being created. -
ACTIVE
- The deployment was successfully created, and it's currently running on the container service. The container service can have only one deployment in an active state at a time. -
INACTIVE
- The deployment was previously successfully created, but it is not currently running on the container service. -
FAILED
- The deployment failed. Use theGetContainerLog
action to view the log events for the containers in the deployment to try to determine the reason for the failure.
sourcepub fn containers(self, k: impl Into<String>, v: Container) -> Self
pub fn containers(self, k: impl Into<String>, v: Container) -> Self
Adds a key-value pair to containers
.
To override the contents of this collection use set_containers
.
An object that describes the configuration for the containers of the deployment.
sourcepub fn set_containers(self, input: Option<HashMap<String, Container>>) -> Self
pub fn set_containers(self, input: Option<HashMap<String, Container>>) -> Self
An object that describes the configuration for the containers of the deployment.
sourcepub fn get_containers(&self) -> &Option<HashMap<String, Container>>
pub fn get_containers(&self) -> &Option<HashMap<String, Container>>
An object that describes the configuration for the containers of the deployment.
sourcepub fn public_endpoint(self, input: ContainerServiceEndpoint) -> Self
pub fn public_endpoint(self, input: ContainerServiceEndpoint) -> Self
An object that describes the endpoint of the deployment.
sourcepub fn set_public_endpoint(
self,
input: Option<ContainerServiceEndpoint>
) -> Self
pub fn set_public_endpoint( self, input: Option<ContainerServiceEndpoint> ) -> Self
An object that describes the endpoint of the deployment.
sourcepub fn get_public_endpoint(&self) -> &Option<ContainerServiceEndpoint>
pub fn get_public_endpoint(&self) -> &Option<ContainerServiceEndpoint>
An object that describes the endpoint of the deployment.
sourcepub fn created_at(self, input: DateTime) -> Self
pub fn created_at(self, input: DateTime) -> Self
The timestamp when the deployment was created.
sourcepub fn set_created_at(self, input: Option<DateTime>) -> Self
pub fn set_created_at(self, input: Option<DateTime>) -> Self
The timestamp when the deployment was created.
sourcepub fn get_created_at(&self) -> &Option<DateTime>
pub fn get_created_at(&self) -> &Option<DateTime>
The timestamp when the deployment was created.
sourcepub fn build(self) -> ContainerServiceDeployment
pub fn build(self) -> ContainerServiceDeployment
Consumes the builder and constructs a ContainerServiceDeployment
.
Trait Implementations§
source§impl Clone for ContainerServiceDeploymentBuilder
impl Clone for ContainerServiceDeploymentBuilder
source§fn clone(&self) -> ContainerServiceDeploymentBuilder
fn clone(&self) -> ContainerServiceDeploymentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ContainerServiceDeploymentBuilder
impl Default for ContainerServiceDeploymentBuilder
source§fn default() -> ContainerServiceDeploymentBuilder
fn default() -> ContainerServiceDeploymentBuilder
source§impl PartialEq for ContainerServiceDeploymentBuilder
impl PartialEq for ContainerServiceDeploymentBuilder
source§fn eq(&self, other: &ContainerServiceDeploymentBuilder) -> bool
fn eq(&self, other: &ContainerServiceDeploymentBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContainerServiceDeploymentBuilder
Auto Trait Implementations§
impl Freeze for ContainerServiceDeploymentBuilder
impl RefUnwindSafe for ContainerServiceDeploymentBuilder
impl Send for ContainerServiceDeploymentBuilder
impl Sync for ContainerServiceDeploymentBuilder
impl Unpin for ContainerServiceDeploymentBuilder
impl UnwindSafe for ContainerServiceDeploymentBuilder
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