Struct aws_sdk_datasync::operation::stop_discovery_job::builders::StopDiscoveryJobFluentBuilder
source · pub struct StopDiscoveryJobFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to StopDiscoveryJob
.
Stops a running DataSync discovery job.
You can stop a discovery job anytime. A job that's stopped before it's scheduled to end likely will provide you some information about your on-premises storage system resources. To get recommendations for a stopped job, you must use the GenerateRecommendations operation.
Implementations§
source§impl StopDiscoveryJobFluentBuilder
impl StopDiscoveryJobFluentBuilder
sourcepub fn as_input(&self) -> &StopDiscoveryJobInputBuilder
pub fn as_input(&self) -> &StopDiscoveryJobInputBuilder
Access the StopDiscoveryJob as a reference.
sourcepub async fn send(
self
) -> Result<StopDiscoveryJobOutput, SdkError<StopDiscoveryJobError, HttpResponse>>
pub async fn send( self ) -> Result<StopDiscoveryJobOutput, SdkError<StopDiscoveryJobError, 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 async fn customize(
self
) -> Result<CustomizableOperation<StopDiscoveryJobOutput, StopDiscoveryJobError, Self>, SdkError<StopDiscoveryJobError>>
pub async fn customize( self ) -> Result<CustomizableOperation<StopDiscoveryJobOutput, StopDiscoveryJobError, Self>, SdkError<StopDiscoveryJobError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn discovery_job_arn(self, input: impl Into<String>) -> Self
pub fn discovery_job_arn(self, input: impl Into<String>) -> Self
Specifies the Amazon Resource Name (ARN) of the discovery job that you want to stop.
sourcepub fn set_discovery_job_arn(self, input: Option<String>) -> Self
pub fn set_discovery_job_arn(self, input: Option<String>) -> Self
Specifies the Amazon Resource Name (ARN) of the discovery job that you want to stop.
sourcepub fn get_discovery_job_arn(&self) -> &Option<String>
pub fn get_discovery_job_arn(&self) -> &Option<String>
Specifies the Amazon Resource Name (ARN) of the discovery job that you want to stop.
Trait Implementations§
source§impl Clone for StopDiscoveryJobFluentBuilder
impl Clone for StopDiscoveryJobFluentBuilder
source§fn clone(&self) -> StopDiscoveryJobFluentBuilder
fn clone(&self) -> StopDiscoveryJobFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more