Struct aws_sdk_codedeploy::types::builders::LifecycleEventBuilder
source · #[non_exhaustive]pub struct LifecycleEventBuilder { /* private fields */ }
Expand description
A builder for LifecycleEvent
.
Implementations§
source§impl LifecycleEventBuilder
impl LifecycleEventBuilder
sourcepub fn lifecycle_event_name(self, input: impl Into<String>) -> Self
pub fn lifecycle_event_name(self, input: impl Into<String>) -> Self
The deployment lifecycle event name, such as ApplicationStop
, BeforeInstall
, AfterInstall
, ApplicationStart
, or ValidateService
.
sourcepub fn set_lifecycle_event_name(self, input: Option<String>) -> Self
pub fn set_lifecycle_event_name(self, input: Option<String>) -> Self
The deployment lifecycle event name, such as ApplicationStop
, BeforeInstall
, AfterInstall
, ApplicationStart
, or ValidateService
.
sourcepub fn get_lifecycle_event_name(&self) -> &Option<String>
pub fn get_lifecycle_event_name(&self) -> &Option<String>
The deployment lifecycle event name, such as ApplicationStop
, BeforeInstall
, AfterInstall
, ApplicationStart
, or ValidateService
.
sourcepub fn diagnostics(self, input: Diagnostics) -> Self
pub fn diagnostics(self, input: Diagnostics) -> Self
Diagnostic information about the deployment lifecycle event.
sourcepub fn set_diagnostics(self, input: Option<Diagnostics>) -> Self
pub fn set_diagnostics(self, input: Option<Diagnostics>) -> Self
Diagnostic information about the deployment lifecycle event.
sourcepub fn get_diagnostics(&self) -> &Option<Diagnostics>
pub fn get_diagnostics(&self) -> &Option<Diagnostics>
Diagnostic information about the deployment lifecycle event.
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
A timestamp that indicates when the deployment lifecycle event started.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
A timestamp that indicates when the deployment lifecycle event started.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
A timestamp that indicates when the deployment lifecycle event started.
sourcepub fn end_time(self, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
A timestamp that indicates when the deployment lifecycle event ended.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
A timestamp that indicates when the deployment lifecycle event ended.
sourcepub fn get_end_time(&self) -> &Option<DateTime>
pub fn get_end_time(&self) -> &Option<DateTime>
A timestamp that indicates when the deployment lifecycle event ended.
sourcepub fn status(self, input: LifecycleEventStatus) -> Self
pub fn status(self, input: LifecycleEventStatus) -> Self
The deployment lifecycle event status:
-
Pending: The deployment lifecycle event is pending.
-
InProgress: The deployment lifecycle event is in progress.
-
Succeeded: The deployment lifecycle event ran successfully.
-
Failed: The deployment lifecycle event has failed.
-
Skipped: The deployment lifecycle event has been skipped.
-
Unknown: The deployment lifecycle event is unknown.
sourcepub fn set_status(self, input: Option<LifecycleEventStatus>) -> Self
pub fn set_status(self, input: Option<LifecycleEventStatus>) -> Self
The deployment lifecycle event status:
-
Pending: The deployment lifecycle event is pending.
-
InProgress: The deployment lifecycle event is in progress.
-
Succeeded: The deployment lifecycle event ran successfully.
-
Failed: The deployment lifecycle event has failed.
-
Skipped: The deployment lifecycle event has been skipped.
-
Unknown: The deployment lifecycle event is unknown.
sourcepub fn get_status(&self) -> &Option<LifecycleEventStatus>
pub fn get_status(&self) -> &Option<LifecycleEventStatus>
The deployment lifecycle event status:
-
Pending: The deployment lifecycle event is pending.
-
InProgress: The deployment lifecycle event is in progress.
-
Succeeded: The deployment lifecycle event ran successfully.
-
Failed: The deployment lifecycle event has failed.
-
Skipped: The deployment lifecycle event has been skipped.
-
Unknown: The deployment lifecycle event is unknown.
sourcepub fn build(self) -> LifecycleEvent
pub fn build(self) -> LifecycleEvent
Consumes the builder and constructs a LifecycleEvent
.
Trait Implementations§
source§impl Clone for LifecycleEventBuilder
impl Clone for LifecycleEventBuilder
source§fn clone(&self) -> LifecycleEventBuilder
fn clone(&self) -> LifecycleEventBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LifecycleEventBuilder
impl Debug for LifecycleEventBuilder
source§impl Default for LifecycleEventBuilder
impl Default for LifecycleEventBuilder
source§fn default() -> LifecycleEventBuilder
fn default() -> LifecycleEventBuilder
source§impl PartialEq for LifecycleEventBuilder
impl PartialEq for LifecycleEventBuilder
source§fn eq(&self, other: &LifecycleEventBuilder) -> bool
fn eq(&self, other: &LifecycleEventBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LifecycleEventBuilder
Auto Trait Implementations§
impl Freeze for LifecycleEventBuilder
impl RefUnwindSafe for LifecycleEventBuilder
impl Send for LifecycleEventBuilder
impl Sync for LifecycleEventBuilder
impl Unpin for LifecycleEventBuilder
impl UnwindSafe for LifecycleEventBuilder
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