Struct aws_sdk_datapipeline::client::fluent_builders::SetStatus
source · [−]pub struct SetStatus { /* 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
sourceimpl SetStatus
impl SetStatus
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<SetStatus, AwsResponseRetryClassifier>, SdkError<SetStatusError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<SetStatus, AwsResponseRetryClassifier>, SdkError<SetStatusError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(self) -> Result<SetStatusOutput, SdkError<SetStatusError>>
pub async fn send(self) -> Result<SetStatusOutput, SdkError<SetStatusError>>
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 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 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 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
.