Class CfnEndpointConfig.AsyncInferenceNotificationConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnEndpointConfig.AsyncInferenceNotificationConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEndpointConfig.AsyncInferenceNotificationConfigProperty>
- Enclosing interface:
CfnEndpointConfig.AsyncInferenceNotificationConfigProperty
@Stability(Stable)
public static final class CfnEndpointConfig.AsyncInferenceNotificationConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEndpointConfig.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 CfnEndpointConfig.AsyncInferenceNotificationConfigProperty.Builder errorTopic(String errorTopic) - 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 CfnEndpointConfig.AsyncInferenceNotificationConfigProperty.Builder includeInferenceResponseIn(List<String> includeInferenceResponseIn) Sets the value ofCfnEndpointConfig.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 CfnEndpointConfig.AsyncInferenceNotificationConfigProperty.Builder successTopic(String successTopic) - 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
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEndpointConfig.AsyncInferenceNotificationConfigProperty>- Returns:
- a new instance of
CfnEndpointConfig.AsyncInferenceNotificationConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-