pub struct SetStatusFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to SetStatus
.
Requests that the status of the specified physical or logical pipeline objects be updated in the specified pipeline. This update might not occur immediately, but is eventually consistent. The status that can be set depends on the type of object (for example, DataNode or Activity). You cannot perform this operation on FINISHED
pipelines and attempting to do so returns InvalidRequestException
.
Implementations§
source§impl SetStatusFluentBuilder
impl SetStatusFluentBuilder
sourcepub fn as_input(&self) -> &SetStatusInputBuilder
pub fn as_input(&self) -> &SetStatusInputBuilder
Access the SetStatus as a reference.
sourcepub async fn send(
self
) -> Result<SetStatusOutput, SdkError<SetStatusError, HttpResponse>>
pub async fn send( self ) -> Result<SetStatusOutput, SdkError<SetStatusError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<SetStatusOutput, SetStatusError, Self>
pub fn customize( self ) -> CustomizableOperation<SetStatusOutput, SetStatusError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn pipeline_id(self, input: impl Into<String>) -> Self
pub fn pipeline_id(self, input: impl Into<String>) -> Self
The ID of the pipeline that contains the objects.
sourcepub fn set_pipeline_id(self, input: Option<String>) -> Self
pub fn set_pipeline_id(self, input: Option<String>) -> Self
The ID of the pipeline that contains the objects.
sourcepub fn get_pipeline_id(&self) -> &Option<String>
pub fn get_pipeline_id(&self) -> &Option<String>
The ID of the pipeline that contains the objects.
sourcepub fn object_ids(self, input: impl Into<String>) -> Self
pub fn object_ids(self, input: impl Into<String>) -> Self
Appends an item to objectIds
.
To override the contents of this collection use set_object_ids
.
The IDs of the objects. The corresponding objects can be either physical or components, but not a mix of both types.
sourcepub fn set_object_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_object_ids(self, input: Option<Vec<String>>) -> Self
The IDs of the objects. The corresponding objects can be either physical or components, but not a mix of both types.
sourcepub fn get_object_ids(&self) -> &Option<Vec<String>>
pub fn get_object_ids(&self) -> &Option<Vec<String>>
The IDs of the objects. The corresponding objects can be either physical or components, but not a mix of both types.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
The status to be set on all the objects specified in objectIds
. For components, use PAUSE
or RESUME
. For instances, use TRY_CANCEL
, RERUN
, or MARK_FINISHED
.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The status to be set on all the objects specified in objectIds
. For components, use PAUSE
or RESUME
. For instances, use TRY_CANCEL
, RERUN
, or MARK_FINISHED
.
sourcepub fn get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
The status to be set on all the objects specified in objectIds
. For components, use PAUSE
or RESUME
. For instances, use TRY_CANCEL
, RERUN
, or MARK_FINISHED
.
Trait Implementations§
source§impl Clone for SetStatusFluentBuilder
impl Clone for SetStatusFluentBuilder
source§fn clone(&self) -> SetStatusFluentBuilder
fn clone(&self) -> SetStatusFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more