Struct aws_smithy_runtime::client::orchestrator::operation::OperationBuilder
source · pub struct OperationBuilder<I = (), O = (), E = ()> { /* private fields */ }
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 stalled_stream_protection(
self,
stalled_stream_protection: StalledStreamProtectionConfig,
) -> Self
pub fn stalled_stream_protection( self, stalled_stream_protection: StalledStreamProtectionConfig, ) -> Self
Configures stalled stream protection with the given config.
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.
sourcepub fn deserializer_impl<O2, E2>(
self,
deserializer: impl DeserializeResponse + Send + Sync + 'static,
) -> OperationBuilder<I, O2, E2>
pub fn deserializer_impl<O2, E2>( self, deserializer: impl DeserializeResponse + Send + Sync + 'static, ) -> OperationBuilder<I, O2, E2>
Configures the a deserializer implementation for the builder.