@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AsyncInferenceNotificationConfig extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the configuration for notifications of inference results for asynchronous inference.
| Constructor and Description |
|---|
AsyncInferenceNotificationConfig() |
| Modifier and Type | Method and Description |
|---|---|
AsyncInferenceNotificationConfig |
clone() |
boolean |
equals(Object obj) |
String |
getErrorTopic()
Amazon SNS topic to post a notification to when inference fails.
|
List<String> |
getIncludeInferenceResponseIn()
The Amazon SNS topics where you want the inference response to be included.
|
String |
getSuccessTopic()
Amazon SNS topic to post a notification to when inference completes successfully.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setErrorTopic(String errorTopic)
Amazon SNS topic to post a notification to when inference fails.
|
void |
setIncludeInferenceResponseIn(Collection<String> includeInferenceResponseIn)
The Amazon SNS topics where you want the inference response to be included.
|
void |
setSuccessTopic(String successTopic)
Amazon SNS topic to post a notification to when inference completes successfully.
|
String |
toString()
Returns a string representation of this object.
|
AsyncInferenceNotificationConfig |
withErrorTopic(String errorTopic)
Amazon SNS topic to post a notification to when inference fails.
|
AsyncInferenceNotificationConfig |
withIncludeInferenceResponseIn(AsyncNotificationTopicTypes... includeInferenceResponseIn)
The Amazon SNS topics where you want the inference response to be included.
|
AsyncInferenceNotificationConfig |
withIncludeInferenceResponseIn(Collection<String> includeInferenceResponseIn)
The Amazon SNS topics where you want the inference response to be included.
|
AsyncInferenceNotificationConfig |
withIncludeInferenceResponseIn(String... includeInferenceResponseIn)
The Amazon SNS topics where you want the inference response to be included.
|
AsyncInferenceNotificationConfig |
withSuccessTopic(String successTopic)
Amazon SNS topic to post a notification to when inference completes successfully.
|
public void setSuccessTopic(String successTopic)
Amazon SNS topic to post a notification to when inference completes successfully. If no topic is provided, no notification is sent on success.
successTopic - Amazon SNS topic to post a notification to when inference completes successfully. If no topic is provided,
no notification is sent on success.public String getSuccessTopic()
Amazon SNS topic to post a notification to when inference completes successfully. If no topic is provided, no notification is sent on success.
public AsyncInferenceNotificationConfig withSuccessTopic(String successTopic)
Amazon SNS topic to post a notification to when inference completes successfully. If no topic is provided, no notification is sent on success.
successTopic - Amazon SNS topic to post a notification to when inference completes successfully. If no topic is provided,
no notification is sent on success.public void setErrorTopic(String errorTopic)
Amazon SNS topic to post a notification to when inference fails. If no topic is provided, no notification is sent on failure.
errorTopic - Amazon SNS topic to post a notification to when inference fails. If no topic is provided, no notification
is sent on failure.public String getErrorTopic()
Amazon SNS topic to post a notification to when inference fails. If no topic is provided, no notification is sent on failure.
public AsyncInferenceNotificationConfig withErrorTopic(String errorTopic)
Amazon SNS topic to post a notification to when inference fails. If no topic is provided, no notification is sent on failure.
errorTopic - Amazon SNS topic to post a notification to when inference fails. If no topic is provided, no notification
is sent on failure.public List<String> getIncludeInferenceResponseIn()
The Amazon SNS topics where you want the inference response to be included.
AsyncNotificationTopicTypespublic void setIncludeInferenceResponseIn(Collection<String> includeInferenceResponseIn)
The Amazon SNS topics where you want the inference response to be included.
includeInferenceResponseIn - The Amazon SNS topics where you want the inference response to be included.AsyncNotificationTopicTypespublic AsyncInferenceNotificationConfig withIncludeInferenceResponseIn(String... includeInferenceResponseIn)
The Amazon SNS topics where you want the inference response to be included.
NOTE: This method appends the values to the existing list (if any). Use
setIncludeInferenceResponseIn(java.util.Collection) or
withIncludeInferenceResponseIn(java.util.Collection) if you want to override the existing values.
includeInferenceResponseIn - The Amazon SNS topics where you want the inference response to be included.AsyncNotificationTopicTypespublic AsyncInferenceNotificationConfig withIncludeInferenceResponseIn(Collection<String> includeInferenceResponseIn)
The Amazon SNS topics where you want the inference response to be included.
includeInferenceResponseIn - The Amazon SNS topics where you want the inference response to be included.AsyncNotificationTopicTypespublic AsyncInferenceNotificationConfig withIncludeInferenceResponseIn(AsyncNotificationTopicTypes... includeInferenceResponseIn)
The Amazon SNS topics where you want the inference response to be included.
includeInferenceResponseIn - The Amazon SNS topics where you want the inference response to be included.AsyncNotificationTopicTypespublic String toString()
toString in class ObjectObject.toString()public AsyncInferenceNotificationConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.