Package software.amazon.awssdk.iot
Class V2DeserializationFailureEvent.V2DeserializationFailureEventBuilder
java.lang.Object
software.amazon.awssdk.iot.V2DeserializationFailureEvent.V2DeserializationFailureEventBuilder
- Enclosing class:
- V2DeserializationFailureEvent
public static class V2DeserializationFailureEvent.V2DeserializationFailureEventBuilder
extends Object
Builder class for V2DeserializationFailureEvent instances
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a new V2DeserializationFailureEvent instance from the existing configurationSets the exception that triggered the failurewithPayload(byte[] payload) Sets the payload of the message that triggered the failureSets the topic of the message that triggered the failure
-
Method Details
-
withCause
public V2DeserializationFailureEvent.V2DeserializationFailureEventBuilder withCause(Throwable cause) Sets the exception that triggered the failure- Parameters:
cause- the exception that triggered the failure- Returns:
- this builder instance
-
withPayload
public V2DeserializationFailureEvent.V2DeserializationFailureEventBuilder withPayload(byte[] payload) Sets the payload of the message that triggered the failure- Parameters:
payload- the payload of the message that triggered the failure- Returns:
- this builder instance
-
withTopic
Sets the topic of the message that triggered the failure- Parameters:
topic- the topic of the message that triggered the failure- Returns:
- this builder instance
-
build
Creates a new V2DeserializationFailureEvent instance from the existing configuration- Returns:
- a new V2DeserializationFailureEvent instance
-