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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V2DeserializationFailureEvent
build()
Creates a new V2DeserializationFailureEvent instance from the existing configurationV2DeserializationFailureEvent.V2DeserializationFailureEventBuilder
withCause(Throwable cause)
Sets the exception that triggered the failureV2DeserializationFailureEvent.V2DeserializationFailureEventBuilder
withPayload(byte[] payload)
Sets the payload of the message that triggered the failureV2DeserializationFailureEvent.V2DeserializationFailureEventBuilder
withTopic(String topic)
Sets the topic of the message that triggered the failure
-
-
-
Method Detail
-
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
public V2DeserializationFailureEvent.V2DeserializationFailureEventBuilder withTopic(String topic)
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
public V2DeserializationFailureEvent build()
Creates a new V2DeserializationFailureEvent instance from the existing configuration- Returns:
- a new V2DeserializationFailureEvent instance
-
-