#[non_exhaustive]pub struct AsyncInferenceNotificationConfigBuilder { /* private fields */ }
Expand description
A builder for AsyncInferenceNotificationConfig
.
Implementations§
source§impl AsyncInferenceNotificationConfigBuilder
impl AsyncInferenceNotificationConfigBuilder
sourcepub fn success_topic(self, input: impl Into<String>) -> Self
pub fn success_topic(self, input: impl Into<String>) -> Self
Amazon SNS topic to post a notification to when inference completes successfully. If no topic is provided, no notification is sent on success.
sourcepub fn set_success_topic(self, input: Option<String>) -> Self
pub fn set_success_topic(self, input: Option<String>) -> Self
Amazon SNS topic to post a notification to when inference completes successfully. If no topic is provided, no notification is sent on success.
sourcepub fn get_success_topic(&self) -> &Option<String>
pub fn get_success_topic(&self) -> &Option<String>
Amazon SNS topic to post a notification to when inference completes successfully. If no topic is provided, no notification is sent on success.
sourcepub fn error_topic(self, input: impl Into<String>) -> Self
pub fn error_topic(self, input: impl Into<String>) -> Self
Amazon SNS topic to post a notification to when inference fails. If no topic is provided, no notification is sent on failure.
sourcepub fn set_error_topic(self, input: Option<String>) -> Self
pub fn set_error_topic(self, input: Option<String>) -> Self
Amazon SNS topic to post a notification to when inference fails. If no topic is provided, no notification is sent on failure.
sourcepub fn get_error_topic(&self) -> &Option<String>
pub fn get_error_topic(&self) -> &Option<String>
Amazon SNS topic to post a notification to when inference fails. If no topic is provided, no notification is sent on failure.
sourcepub fn include_inference_response_in(
self,
input: AsyncNotificationTopicTypes,
) -> Self
pub fn include_inference_response_in( self, input: AsyncNotificationTopicTypes, ) -> Self
Appends an item to include_inference_response_in
.
To override the contents of this collection use set_include_inference_response_in
.
The Amazon SNS topics where you want the inference response to be included.
The inference response is included only if the response size is less than or equal to 128 KB.
sourcepub fn set_include_inference_response_in(
self,
input: Option<Vec<AsyncNotificationTopicTypes>>,
) -> Self
pub fn set_include_inference_response_in( self, input: Option<Vec<AsyncNotificationTopicTypes>>, ) -> Self
The Amazon SNS topics where you want the inference response to be included.
The inference response is included only if the response size is less than or equal to 128 KB.
sourcepub fn get_include_inference_response_in(
&self,
) -> &Option<Vec<AsyncNotificationTopicTypes>>
pub fn get_include_inference_response_in( &self, ) -> &Option<Vec<AsyncNotificationTopicTypes>>
The Amazon SNS topics where you want the inference response to be included.
The inference response is included only if the response size is less than or equal to 128 KB.
sourcepub fn build(self) -> AsyncInferenceNotificationConfig
pub fn build(self) -> AsyncInferenceNotificationConfig
Consumes the builder and constructs a AsyncInferenceNotificationConfig
.
Trait Implementations§
source§impl Clone for AsyncInferenceNotificationConfigBuilder
impl Clone for AsyncInferenceNotificationConfigBuilder
source§fn clone(&self) -> AsyncInferenceNotificationConfigBuilder
fn clone(&self) -> AsyncInferenceNotificationConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AsyncInferenceNotificationConfigBuilder
impl Default for AsyncInferenceNotificationConfigBuilder
source§fn default() -> AsyncInferenceNotificationConfigBuilder
fn default() -> AsyncInferenceNotificationConfigBuilder
source§impl PartialEq for AsyncInferenceNotificationConfigBuilder
impl PartialEq for AsyncInferenceNotificationConfigBuilder
source§fn eq(&self, other: &AsyncInferenceNotificationConfigBuilder) -> bool
fn eq(&self, other: &AsyncInferenceNotificationConfigBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AsyncInferenceNotificationConfigBuilder
Auto Trait Implementations§
impl Freeze for AsyncInferenceNotificationConfigBuilder
impl RefUnwindSafe for AsyncInferenceNotificationConfigBuilder
impl Send for AsyncInferenceNotificationConfigBuilder
impl Sync for AsyncInferenceNotificationConfigBuilder
impl Unpin for AsyncInferenceNotificationConfigBuilder
impl UnwindSafe for AsyncInferenceNotificationConfigBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more