Struct aws_sdk_codedeploy::types::builders::InstanceTargetBuilder
source · #[non_exhaustive]pub struct InstanceTargetBuilder { /* private fields */ }
Expand description
A builder for InstanceTarget
.
Implementations§
source§impl InstanceTargetBuilder
impl InstanceTargetBuilder
sourcepub fn deployment_id(self, input: impl Into<String>) -> Self
pub fn deployment_id(self, input: impl Into<String>) -> Self
The unique ID of a deployment.
sourcepub fn set_deployment_id(self, input: Option<String>) -> Self
pub fn set_deployment_id(self, input: Option<String>) -> Self
The unique ID of a deployment.
sourcepub fn get_deployment_id(&self) -> &Option<String>
pub fn get_deployment_id(&self) -> &Option<String>
The unique ID of a deployment.
sourcepub fn target_id(self, input: impl Into<String>) -> Self
pub fn target_id(self, input: impl Into<String>) -> Self
The unique ID of a deployment target that has a type of instanceTarget
.
sourcepub fn set_target_id(self, input: Option<String>) -> Self
pub fn set_target_id(self, input: Option<String>) -> Self
The unique ID of a deployment target that has a type of instanceTarget
.
sourcepub fn get_target_id(&self) -> &Option<String>
pub fn get_target_id(&self) -> &Option<String>
The unique ID of a deployment target that has a type of instanceTarget
.
sourcepub fn target_arn(self, input: impl Into<String>) -> Self
pub fn target_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the target.
sourcepub fn set_target_arn(self, input: Option<String>) -> Self
pub fn set_target_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the target.
sourcepub fn get_target_arn(&self) -> &Option<String>
pub fn get_target_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the target.
sourcepub fn status(self, input: TargetStatus) -> Self
pub fn status(self, input: TargetStatus) -> Self
The status an EC2/On-premises deployment's target instance.
sourcepub fn set_status(self, input: Option<TargetStatus>) -> Self
pub fn set_status(self, input: Option<TargetStatus>) -> Self
The status an EC2/On-premises deployment's target instance.
sourcepub fn get_status(&self) -> &Option<TargetStatus>
pub fn get_status(&self) -> &Option<TargetStatus>
The status an EC2/On-premises deployment's target instance.
sourcepub fn last_updated_at(self, input: DateTime) -> Self
pub fn last_updated_at(self, input: DateTime) -> Self
The date and time when the target instance was updated by a deployment.
sourcepub fn set_last_updated_at(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_at(self, input: Option<DateTime>) -> Self
The date and time when the target instance was updated by a deployment.
sourcepub fn get_last_updated_at(&self) -> &Option<DateTime>
pub fn get_last_updated_at(&self) -> &Option<DateTime>
The date and time when the target instance was updated by a deployment.
sourcepub fn lifecycle_events(self, input: LifecycleEvent) -> Self
pub fn lifecycle_events(self, input: LifecycleEvent) -> Self
Appends an item to lifecycle_events
.
To override the contents of this collection use set_lifecycle_events
.
The lifecycle events of the deployment to this target instance.
sourcepub fn set_lifecycle_events(self, input: Option<Vec<LifecycleEvent>>) -> Self
pub fn set_lifecycle_events(self, input: Option<Vec<LifecycleEvent>>) -> Self
The lifecycle events of the deployment to this target instance.
sourcepub fn get_lifecycle_events(&self) -> &Option<Vec<LifecycleEvent>>
pub fn get_lifecycle_events(&self) -> &Option<Vec<LifecycleEvent>>
The lifecycle events of the deployment to this target instance.
sourcepub fn instance_label(self, input: TargetLabel) -> Self
pub fn instance_label(self, input: TargetLabel) -> Self
A label that identifies whether the instance is an original target (BLUE
) or a replacement target (GREEN
).
sourcepub fn set_instance_label(self, input: Option<TargetLabel>) -> Self
pub fn set_instance_label(self, input: Option<TargetLabel>) -> Self
A label that identifies whether the instance is an original target (BLUE
) or a replacement target (GREEN
).
sourcepub fn get_instance_label(&self) -> &Option<TargetLabel>
pub fn get_instance_label(&self) -> &Option<TargetLabel>
A label that identifies whether the instance is an original target (BLUE
) or a replacement target (GREEN
).
sourcepub fn build(self) -> InstanceTarget
pub fn build(self) -> InstanceTarget
Consumes the builder and constructs a InstanceTarget
.
Trait Implementations§
source§impl Clone for InstanceTargetBuilder
impl Clone for InstanceTargetBuilder
source§fn clone(&self) -> InstanceTargetBuilder
fn clone(&self) -> InstanceTargetBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstanceTargetBuilder
impl Debug for InstanceTargetBuilder
source§impl Default for InstanceTargetBuilder
impl Default for InstanceTargetBuilder
source§fn default() -> InstanceTargetBuilder
fn default() -> InstanceTargetBuilder
source§impl PartialEq for InstanceTargetBuilder
impl PartialEq for InstanceTargetBuilder
source§fn eq(&self, other: &InstanceTargetBuilder) -> bool
fn eq(&self, other: &InstanceTargetBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InstanceTargetBuilder
Auto Trait Implementations§
impl Freeze for InstanceTargetBuilder
impl RefUnwindSafe for InstanceTargetBuilder
impl Send for InstanceTargetBuilder
impl Sync for InstanceTargetBuilder
impl Unpin for InstanceTargetBuilder
impl UnwindSafe for InstanceTargetBuilder
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