Class CfnEndpointConfigPropsMixin.AsyncInferenceNotificationConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnEndpointConfigPropsMixin.AsyncInferenceNotificationConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.AsyncInferenceNotificationConfigProperty>
- Enclosing interface:
CfnEndpointConfigPropsMixin.AsyncInferenceNotificationConfigProperty
@Stability(Stable)
public static final class CfnEndpointConfigPropsMixin.AsyncInferenceNotificationConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.AsyncInferenceNotificationConfigProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.errorTopic(String errorTopic) includeInferenceResponseIn(List<String> includeInferenceResponseIn) successTopic(String successTopic)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
errorTopic
@Stability(Stable) public CfnEndpointConfigPropsMixin.AsyncInferenceNotificationConfigProperty.Builder errorTopic(String errorTopic) Sets the value ofCfnEndpointConfigPropsMixin.AsyncInferenceNotificationConfigProperty.getErrorTopic()- Parameters:
errorTopic- Amazon SNS topic to post a notification to when an inference fails. If no topic is provided, no notification is sent on failure.- Returns:
this
-
includeInferenceResponseIn
@Stability(Stable) public CfnEndpointConfigPropsMixin.AsyncInferenceNotificationConfigProperty.Builder includeInferenceResponseIn(List<String> includeInferenceResponseIn) Sets the value ofCfnEndpointConfigPropsMixin.AsyncInferenceNotificationConfigProperty.getIncludeInferenceResponseIn()- Parameters:
includeInferenceResponseIn- 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.
- Returns:
this
-
successTopic
@Stability(Stable) public CfnEndpointConfigPropsMixin.AsyncInferenceNotificationConfigProperty.Builder successTopic(String successTopic) Sets the value ofCfnEndpointConfigPropsMixin.AsyncInferenceNotificationConfigProperty.getSuccessTopic()- Parameters:
successTopic- Amazon SNS topic to post a notification to when an inference completes successfully. If no topic is provided, no notification is sent on success.- Returns:
this
-
build
@Stability(Stable) public CfnEndpointConfigPropsMixin.AsyncInferenceNotificationConfigProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointConfigPropsMixin.AsyncInferenceNotificationConfigProperty>- Returns:
- a new instance of
CfnEndpointConfigPropsMixin.AsyncInferenceNotificationConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-