Struct aws_sdk_imagebuilder::operation::start_resource_state_update::builders::StartResourceStateUpdateInputBuilder
source · #[non_exhaustive]pub struct StartResourceStateUpdateInputBuilder { /* private fields */ }
Expand description
A builder for StartResourceStateUpdateInput
.
Implementations§
source§impl StartResourceStateUpdateInputBuilder
impl StartResourceStateUpdateInputBuilder
sourcepub fn resource_arn(self, input: impl Into<String>) -> Self
pub fn resource_arn(self, input: impl Into<String>) -> Self
The ARN of the Image Builder resource that is updated. The state update might also impact associated resources.
This field is required.sourcepub fn set_resource_arn(self, input: Option<String>) -> Self
pub fn set_resource_arn(self, input: Option<String>) -> Self
The ARN of the Image Builder resource that is updated. The state update might also impact associated resources.
sourcepub fn get_resource_arn(&self) -> &Option<String>
pub fn get_resource_arn(&self) -> &Option<String>
The ARN of the Image Builder resource that is updated. The state update might also impact associated resources.
sourcepub fn state(self, input: ResourceState) -> Self
pub fn state(self, input: ResourceState) -> Self
Indicates the lifecycle action to take for this request.
This field is required.sourcepub fn set_state(self, input: Option<ResourceState>) -> Self
pub fn set_state(self, input: Option<ResourceState>) -> Self
Indicates the lifecycle action to take for this request.
sourcepub fn get_state(&self) -> &Option<ResourceState>
pub fn get_state(&self) -> &Option<ResourceState>
Indicates the lifecycle action to take for this request.
sourcepub fn execution_role(self, input: impl Into<String>) -> Self
pub fn execution_role(self, input: impl Into<String>) -> Self
The name or Amazon Resource Name (ARN) of the IAM role that’s used to update image state.
sourcepub fn set_execution_role(self, input: Option<String>) -> Self
pub fn set_execution_role(self, input: Option<String>) -> Self
The name or Amazon Resource Name (ARN) of the IAM role that’s used to update image state.
sourcepub fn get_execution_role(&self) -> &Option<String>
pub fn get_execution_role(&self) -> &Option<String>
The name or Amazon Resource Name (ARN) of the IAM role that’s used to update image state.
sourcepub fn include_resources(
self,
input: ResourceStateUpdateIncludeResources
) -> Self
pub fn include_resources( self, input: ResourceStateUpdateIncludeResources ) -> Self
A list of image resources to update state for.
sourcepub fn set_include_resources(
self,
input: Option<ResourceStateUpdateIncludeResources>
) -> Self
pub fn set_include_resources( self, input: Option<ResourceStateUpdateIncludeResources> ) -> Self
A list of image resources to update state for.
sourcepub fn get_include_resources(
&self
) -> &Option<ResourceStateUpdateIncludeResources>
pub fn get_include_resources( &self ) -> &Option<ResourceStateUpdateIncludeResources>
A list of image resources to update state for.
sourcepub fn exclusion_rules(self, input: ResourceStateUpdateExclusionRules) -> Self
pub fn exclusion_rules(self, input: ResourceStateUpdateExclusionRules) -> Self
Skip action on the image resource and associated resources if specified exclusion rules are met.
sourcepub fn set_exclusion_rules(
self,
input: Option<ResourceStateUpdateExclusionRules>
) -> Self
pub fn set_exclusion_rules( self, input: Option<ResourceStateUpdateExclusionRules> ) -> Self
Skip action on the image resource and associated resources if specified exclusion rules are met.
sourcepub fn get_exclusion_rules(&self) -> &Option<ResourceStateUpdateExclusionRules>
pub fn get_exclusion_rules(&self) -> &Option<ResourceStateUpdateExclusionRules>
Skip action on the image resource and associated resources if specified exclusion rules are met.
sourcepub fn update_at(self, input: DateTime) -> Self
pub fn update_at(self, input: DateTime) -> Self
The timestamp that indicates when resources are updated by a lifecycle action.
sourcepub fn set_update_at(self, input: Option<DateTime>) -> Self
pub fn set_update_at(self, input: Option<DateTime>) -> Self
The timestamp that indicates when resources are updated by a lifecycle action.
sourcepub fn get_update_at(&self) -> &Option<DateTime>
pub fn get_update_at(&self) -> &Option<DateTime>
The timestamp that indicates when resources are updated by a lifecycle action.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
This field is required.sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
sourcepub fn build(self) -> Result<StartResourceStateUpdateInput, BuildError>
pub fn build(self) -> Result<StartResourceStateUpdateInput, BuildError>
Consumes the builder and constructs a StartResourceStateUpdateInput
.
source§impl StartResourceStateUpdateInputBuilder
impl StartResourceStateUpdateInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<StartResourceStateUpdateOutput, SdkError<StartResourceStateUpdateError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<StartResourceStateUpdateOutput, SdkError<StartResourceStateUpdateError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for StartResourceStateUpdateInputBuilder
impl Clone for StartResourceStateUpdateInputBuilder
source§fn clone(&self) -> StartResourceStateUpdateInputBuilder
fn clone(&self) -> StartResourceStateUpdateInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for StartResourceStateUpdateInputBuilder
impl Default for StartResourceStateUpdateInputBuilder
source§fn default() -> StartResourceStateUpdateInputBuilder
fn default() -> StartResourceStateUpdateInputBuilder
source§impl PartialEq for StartResourceStateUpdateInputBuilder
impl PartialEq for StartResourceStateUpdateInputBuilder
source§fn eq(&self, other: &StartResourceStateUpdateInputBuilder) -> bool
fn eq(&self, other: &StartResourceStateUpdateInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.