Struct aws_smithy_runtime::client::orchestrator::operation::OperationBuilder
source · pub struct OperationBuilder<I = (), O = (), E = ()> { /* private fields */ }
Available on crate feature
client
only.Expand description
Builder for Operation
.
Implementations§
source§impl OperationBuilder<(), (), ()>
impl OperationBuilder<(), (), ()>
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new OperationBuilder
.
source§impl<I, O, E> OperationBuilder<I, O, E>
impl<I, O, E> OperationBuilder<I, O, E>
sourcepub fn service_name(self, service_name: impl Into<Cow<'static, str>>) -> Self
pub fn service_name(self, service_name: impl Into<Cow<'static, str>>) -> Self
Configures the service name for the builder.
sourcepub fn operation_name(
self,
operation_name: impl Into<Cow<'static, str>>
) -> Self
pub fn operation_name( self, operation_name: impl Into<Cow<'static, str>> ) -> Self
Configures the operation name for the builder.
sourcepub fn http_client(self, connector: impl HttpClient + 'static) -> Self
pub fn http_client(self, connector: impl HttpClient + 'static) -> Self
Configures the http client for the builder.
sourcepub fn endpoint_url(self, url: &str) -> Self
pub fn endpoint_url(self, url: &str) -> Self
Configures the endpoint URL for the builder.
sourcepub fn retry_classifier(
self,
retry_classifier: impl ClassifyRetry + 'static
) -> Self
pub fn retry_classifier( self, retry_classifier: impl ClassifyRetry + 'static ) -> Self
Configures the retry classifier for the builder.
sourcepub fn standard_retry(self, retry_config: &RetryConfig) -> Self
pub fn standard_retry(self, retry_config: &RetryConfig) -> Self
Configures the standard retry for the builder.
sourcepub fn timeout_config(self, timeout_config: TimeoutConfig) -> Self
pub fn timeout_config(self, timeout_config: TimeoutConfig) -> Self
Configures the timeout configuration for the builder.
sourcepub fn sleep_impl(self, async_sleep: impl AsyncSleep + 'static) -> Self
pub fn sleep_impl(self, async_sleep: impl AsyncSleep + 'static) -> Self
Configures the sleep for the builder.
sourcepub fn time_source(self, time_source: impl TimeSource + 'static) -> Self
pub fn time_source(self, time_source: impl TimeSource + 'static) -> Self
Configures the time source for the builder.
sourcepub fn interceptor(self, interceptor: impl Intercept + 'static) -> Self
pub fn interceptor(self, interceptor: impl Intercept + 'static) -> Self
Configures the interceptor for the builder.
sourcepub fn with_connection_poisoning(self) -> Self
pub fn with_connection_poisoning(self) -> Self
Registers the ConnectionPoisoningInterceptor
.
sourcepub fn runtime_plugin(
self,
runtime_plugin: impl RuntimePlugin + 'static
) -> Self
pub fn runtime_plugin( self, runtime_plugin: impl RuntimePlugin + 'static ) -> Self
Configures the runtime plugin for the builder.
sourcepub fn serializer<I2>(
self,
serializer: impl Fn(I2) -> Result<HttpRequest, BoxError> + Send + Sync + 'static
) -> OperationBuilder<I2, O, E>
pub fn serializer<I2>( self, serializer: impl Fn(I2) -> Result<HttpRequest, BoxError> + Send + Sync + 'static ) -> OperationBuilder<I2, O, E>
Configures the serializer for the builder.
sourcepub fn deserializer<O2, E2>(
self,
deserializer: impl Fn(&HttpResponse) -> Result<O2, OrchestratorError<E2>> + Send + Sync + 'static
) -> OperationBuilder<I, O2, E2>
pub fn deserializer<O2, E2>( self, deserializer: impl Fn(&HttpResponse) -> Result<O2, OrchestratorError<E2>> + Send + Sync + 'static ) -> OperationBuilder<I, O2, E2>
Configures the deserializer for the builder.
Trait Implementations§
Auto Trait Implementations§
impl<I, O, E> Freeze for OperationBuilder<I, O, E>
impl<I = (), O = (), E = ()> !RefUnwindSafe for OperationBuilder<I, O, E>
impl<I, O, E> Send for OperationBuilder<I, O, E>
impl<I, O, E> Sync for OperationBuilder<I, O, E>
impl<I, O, E> Unpin for OperationBuilder<I, O, E>
impl<I = (), O = (), E = ()> !UnwindSafe for OperationBuilder<I, O, E>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.