#[non_exhaustive]pub struct LifecycleExecutionResourceBuilder { /* private fields */ }
Expand description
A builder for LifecycleExecutionResource
.
Implementations§
source§impl LifecycleExecutionResourceBuilder
impl LifecycleExecutionResourceBuilder
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The account that owns the impacted resource.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The account that owns the impacted resource.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The account that owns the impacted resource.
sourcepub fn resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
Identifies the impacted resource. The resource ID depends on the type of resource, as follows.
-
Image Builder image resources: Amazon Resource Name (ARN)
-
Distributed AMIs: AMI ID
-
Container images distributed to an ECR repository: image URI or SHA Digest
sourcepub fn set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
Identifies the impacted resource. The resource ID depends on the type of resource, as follows.
-
Image Builder image resources: Amazon Resource Name (ARN)
-
Distributed AMIs: AMI ID
-
Container images distributed to an ECR repository: image URI or SHA Digest
sourcepub fn get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &Option<String>
Identifies the impacted resource. The resource ID depends on the type of resource, as follows.
-
Image Builder image resources: Amazon Resource Name (ARN)
-
Distributed AMIs: AMI ID
-
Container images distributed to an ECR repository: image URI or SHA Digest
sourcepub fn state(self, input: LifecycleExecutionResourceState) -> Self
pub fn state(self, input: LifecycleExecutionResourceState) -> Self
The runtime state for the lifecycle execution.
sourcepub fn set_state(self, input: Option<LifecycleExecutionResourceState>) -> Self
pub fn set_state(self, input: Option<LifecycleExecutionResourceState>) -> Self
The runtime state for the lifecycle execution.
sourcepub fn get_state(&self) -> &Option<LifecycleExecutionResourceState>
pub fn get_state(&self) -> &Option<LifecycleExecutionResourceState>
The runtime state for the lifecycle execution.
sourcepub fn action(self, input: LifecycleExecutionResourceAction) -> Self
pub fn action(self, input: LifecycleExecutionResourceAction) -> Self
The action to take for the identified resource.
sourcepub fn set_action(self, input: Option<LifecycleExecutionResourceAction>) -> Self
pub fn set_action(self, input: Option<LifecycleExecutionResourceAction>) -> Self
The action to take for the identified resource.
sourcepub fn get_action(&self) -> &Option<LifecycleExecutionResourceAction>
pub fn get_action(&self) -> &Option<LifecycleExecutionResourceAction>
The action to take for the identified resource.
sourcepub fn region(self, input: impl Into<String>) -> Self
pub fn region(self, input: impl Into<String>) -> Self
The Amazon Web Services Region where the lifecycle execution resource is stored.
sourcepub fn set_region(self, input: Option<String>) -> Self
pub fn set_region(self, input: Option<String>) -> Self
The Amazon Web Services Region where the lifecycle execution resource is stored.
sourcepub fn get_region(&self) -> &Option<String>
pub fn get_region(&self) -> &Option<String>
The Amazon Web Services Region where the lifecycle execution resource is stored.
sourcepub fn snapshots(self, input: LifecycleExecutionSnapshotResource) -> Self
pub fn snapshots(self, input: LifecycleExecutionSnapshotResource) -> Self
Appends an item to snapshots
.
To override the contents of this collection use set_snapshots
.
A list of associated resource snapshots for the impacted resource if it’s an AMI.
sourcepub fn set_snapshots(
self,
input: Option<Vec<LifecycleExecutionSnapshotResource>>
) -> Self
pub fn set_snapshots( self, input: Option<Vec<LifecycleExecutionSnapshotResource>> ) -> Self
A list of associated resource snapshots for the impacted resource if it’s an AMI.
sourcepub fn get_snapshots(&self) -> &Option<Vec<LifecycleExecutionSnapshotResource>>
pub fn get_snapshots(&self) -> &Option<Vec<LifecycleExecutionSnapshotResource>>
A list of associated resource snapshots for the impacted resource if it’s an AMI.
sourcepub fn image_uris(self, input: impl Into<String>) -> Self
pub fn image_uris(self, input: impl Into<String>) -> Self
Appends an item to image_uris
.
To override the contents of this collection use set_image_uris
.
For an impacted container image, this identifies a list of URIs for associated container images distributed to ECR repositories.
sourcepub fn set_image_uris(self, input: Option<Vec<String>>) -> Self
pub fn set_image_uris(self, input: Option<Vec<String>>) -> Self
For an impacted container image, this identifies a list of URIs for associated container images distributed to ECR repositories.
sourcepub fn get_image_uris(&self) -> &Option<Vec<String>>
pub fn get_image_uris(&self) -> &Option<Vec<String>>
For an impacted container image, this identifies a list of URIs for associated container images distributed to ECR repositories.
sourcepub fn build(self) -> LifecycleExecutionResource
pub fn build(self) -> LifecycleExecutionResource
Consumes the builder and constructs a LifecycleExecutionResource
.
Trait Implementations§
source§impl Clone for LifecycleExecutionResourceBuilder
impl Clone for LifecycleExecutionResourceBuilder
source§fn clone(&self) -> LifecycleExecutionResourceBuilder
fn clone(&self) -> LifecycleExecutionResourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for LifecycleExecutionResourceBuilder
impl Default for LifecycleExecutionResourceBuilder
source§fn default() -> LifecycleExecutionResourceBuilder
fn default() -> LifecycleExecutionResourceBuilder
source§impl PartialEq for LifecycleExecutionResourceBuilder
impl PartialEq for LifecycleExecutionResourceBuilder
source§fn eq(&self, other: &LifecycleExecutionResourceBuilder) -> bool
fn eq(&self, other: &LifecycleExecutionResourceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.