Class ExternalEvent.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class ExternalEvent.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for ExternalEvent instances.
-
-
Field Summary
Fields Modifier and Type Field Description public String
topic
public ByteBuffer
key
public ByteBuffer
payload
public Instant
timestamp
-
Method Summary
Modifier and Type Method Description String
getTopic()
Gets the value of the 'topic' field. ExternalEvent.Builder
setTopic(String value)
Sets the value of the 'topic' field. ByteBuffer
getKey()
Gets the value of the 'key' field. ExternalEvent.Builder
setKey(ByteBuffer value)
Sets the value of the 'key' field. ByteBuffer
getPayload()
Gets the value of the 'payload' field. ExternalEvent.Builder
setPayload(ByteBuffer value)
Sets the value of the 'payload' field. Instant
getTimestamp()
Gets the value of the 'timestamp' field. ExternalEvent.Builder
setTimestamp(Instant value)
Sets the value of the 'timestamp' field. boolean
hasTopic()
Checks whether the 'topic' field has been set. ExternalEvent.Builder
clearTopic()
Clears the value of the 'topic' field. boolean
hasKey()
Checks whether the 'key' field has been set. ExternalEvent.Builder
clearKey()
Clears the value of the 'key' field. boolean
hasPayload()
Checks whether the 'payload' field has been set. ExternalEvent.Builder
clearPayload()
Clears the value of the 'payload' field. boolean
hasTimestamp()
Checks whether the 'timestamp' field has been set. ExternalEvent.Builder
clearTimestamp()
Clears the value of the 'timestamp' field. ExternalEvent
build()
-
-
Method Detail
-
getTopic
String getTopic()
Gets the value of the 'topic' field. The topic that the external event is sent to.
-
setTopic
ExternalEvent.Builder setTopic(String value)
Sets the value of the 'topic' field. The topic that the external event is sent to.
- Parameters:
value
- The value of 'topic'.
-
getKey
ByteBuffer getKey()
Gets the value of the 'key' field. Avro serialized representation of the key that the external event is partitioned by.
-
setKey
ExternalEvent.Builder setKey(ByteBuffer value)
Sets the value of the 'key' field. Avro serialized representation of the key that the external event is partitioned by.
- Parameters:
value
- The value of 'key'.
-
getPayload
ByteBuffer getPayload()
Gets the value of the 'payload' field. Avro serialized representation of the payload that the external processor will process.
-
setPayload
ExternalEvent.Builder setPayload(ByteBuffer value)
Sets the value of the 'payload' field. Avro serialized representation of the payload that the external processor will process.
- Parameters:
value
- The value of 'payload'.
-
getTimestamp
Instant getTimestamp()
Gets the value of the 'timestamp' field. Time ([Instant]) in milliseconds when the external event was created.
-
setTimestamp
ExternalEvent.Builder setTimestamp(Instant value)
Sets the value of the 'timestamp' field. Time ([Instant]) in milliseconds when the external event was created.
- Parameters:
value
- The value of 'timestamp'.
-
hasTopic
boolean hasTopic()
Checks whether the 'topic' field has been set. The topic that the external event is sent to.
-
clearTopic
ExternalEvent.Builder clearTopic()
Clears the value of the 'topic' field. The topic that the external event is sent to.
-
hasKey
boolean hasKey()
Checks whether the 'key' field has been set. Avro serialized representation of the key that the external event is partitioned by.
-
clearKey
ExternalEvent.Builder clearKey()
Clears the value of the 'key' field. Avro serialized representation of the key that the external event is partitioned by.
-
hasPayload
boolean hasPayload()
Checks whether the 'payload' field has been set. Avro serialized representation of the payload that the external processor will process.
-
clearPayload
ExternalEvent.Builder clearPayload()
Clears the value of the 'payload' field. Avro serialized representation of the payload that the external processor will process.
-
hasTimestamp
boolean hasTimestamp()
Checks whether the 'timestamp' field has been set. Time ([Instant]) in milliseconds when the external event was created.
-
clearTimestamp
ExternalEvent.Builder clearTimestamp()
Clears the value of the 'timestamp' field. Time ([Instant]) in milliseconds when the external event was created.
-
build
ExternalEvent build()
-
-
-
-