Class ExternalEventResponse.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class ExternalEventResponse.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for ExternalEventResponse instances.
-
-
Field Summary
Fields Modifier and Type Field Description public String
requestId
public ByteBuffer
payload
public ExternalEventResponseError
error
public ExternalEventResponseError.Builder
errorBuilder
public Instant
timestamp
-
Method Summary
Modifier and Type Method Description String
getRequestId()
Gets the value of the 'requestId' field. ExternalEventResponse.Builder
setRequestId(String value)
Sets the value of the 'requestId' field. ByteBuffer
getPayload()
Gets the value of the 'payload' field. ExternalEventResponse.Builder
setPayload(ByteBuffer value)
Sets the value of the 'payload' field. ExternalEventResponseError
getError()
Gets the value of the 'error' field. ExternalEventResponse.Builder
setError(ExternalEventResponseError value)
Sets the value of the 'error' field. ExternalEventResponseError.Builder
getErrorBuilder()
Gets the Builder instance for the 'error' field and creates one if it doesn't exist yet. ExternalEventResponse.Builder
setErrorBuilder(ExternalEventResponseError.Builder value)
Sets the Builder instance for the 'error' field The ExternalEventResponseError representing an error that occurred when processing the incoming external event request. Instant
getTimestamp()
Gets the value of the 'timestamp' field. ExternalEventResponse.Builder
setTimestamp(Instant value)
Sets the value of the 'timestamp' field. boolean
hasRequestId()
Checks whether the 'requestId' field has been set. ExternalEventResponse.Builder
clearRequestId()
Clears the value of the 'requestId' field. boolean
hasPayload()
Checks whether the 'payload' field has been set. ExternalEventResponse.Builder
clearPayload()
Clears the value of the 'payload' field. boolean
hasError()
Checks whether the 'error' field has been set. boolean
hasErrorBuilder()
Checks whether the 'error' field has an active Builder instance The ExternalEventResponseError representing an error that occurred when processing the incoming external event request. ExternalEventResponse.Builder
clearError()
Clears the value of the 'error' field. boolean
hasTimestamp()
Checks whether the 'timestamp' field has been set. ExternalEventResponse.Builder
clearTimestamp()
Clears the value of the 'timestamp' field. ExternalEventResponse
build()
-
-
Method Detail
-
getRequestId
String getRequestId()
Gets the value of the 'requestId' field. The request id of the external event response. Used for deduplication when processing responses.
-
setRequestId
ExternalEventResponse.Builder setRequestId(String value)
Sets the value of the 'requestId' field. The request id of the external event response. Used for deduplication when processing responses.
- Parameters:
value
- The value of 'requestId'.
-
getPayload
ByteBuffer getPayload()
Gets the value of the 'payload' field. Avro serialized representation of the underlying payload that can contain domain specific information that is not serialized into the data property. `null` if the response represents an error and therefore does not have a payload to respond with.
-
setPayload
ExternalEventResponse.Builder setPayload(ByteBuffer value)
Sets the value of the 'payload' field. Avro serialized representation of the underlying payload that can contain domain specific information that is not serialized into the data property. `null` if the response represents an error and therefore does not have a payload to respond with.
- Parameters:
value
- The value of 'payload'.
-
getError
ExternalEventResponseError getError()
Gets the value of the 'error' field. The ExternalEventResponseError representing an error that occurred when processing the incoming external event request. `null` if the request was successfully processed and there is no error to respond with.
-
setError
ExternalEventResponse.Builder setError(ExternalEventResponseError value)
Sets the value of the 'error' field. The ExternalEventResponseError representing an error that occurred when processing the incoming external event request. `null` if the request was successfully processed and there is no error to respond with.
- Parameters:
value
- The value of 'error'.
-
getErrorBuilder
ExternalEventResponseError.Builder getErrorBuilder()
Gets the Builder instance for the 'error' field and creates one if it doesn't exist yet. The ExternalEventResponseError representing an error that occurred when processing the incoming external event request. `null` if the request was successfully processed and there is no error to respond with.
-
setErrorBuilder
ExternalEventResponse.Builder setErrorBuilder(ExternalEventResponseError.Builder value)
Sets the Builder instance for the 'error' field The ExternalEventResponseError representing an error that occurred when processing the incoming external event request. `null` if the request was successfully processed and there is no error to respond with.
- Parameters:
value
- The builder instance that must be set.
-
getTimestamp
Instant getTimestamp()
Gets the value of the 'timestamp' field. Time ([Instant]) in milliseconds when the response was created.
-
setTimestamp
ExternalEventResponse.Builder setTimestamp(Instant value)
Sets the value of the 'timestamp' field. Time ([Instant]) in milliseconds when the response was created.
- Parameters:
value
- The value of 'timestamp'.
-
hasRequestId
boolean hasRequestId()
Checks whether the 'requestId' field has been set. The request id of the external event response. Used for deduplication when processing responses.
-
clearRequestId
ExternalEventResponse.Builder clearRequestId()
Clears the value of the 'requestId' field. The request id of the external event response. Used for deduplication when processing responses.
-
hasPayload
boolean hasPayload()
Checks whether the 'payload' field has been set. Avro serialized representation of the underlying payload that can contain domain specific information that is not serialized into the data property. `null` if the response represents an error and therefore does not have a payload to respond with.
-
clearPayload
ExternalEventResponse.Builder clearPayload()
Clears the value of the 'payload' field. Avro serialized representation of the underlying payload that can contain domain specific information that is not serialized into the data property. `null` if the response represents an error and therefore does not have a payload to respond with.
-
hasError
boolean hasError()
Checks whether the 'error' field has been set. The ExternalEventResponseError representing an error that occurred when processing the incoming external event request. `null` if the request was successfully processed and there is no error to respond with.
-
hasErrorBuilder
boolean hasErrorBuilder()
Checks whether the 'error' field has an active Builder instance The ExternalEventResponseError representing an error that occurred when processing the incoming external event request. `null` if the request was successfully processed and there is no error to respond with.
-
clearError
ExternalEventResponse.Builder clearError()
Clears the value of the 'error' field. The ExternalEventResponseError representing an error that occurred when processing the incoming external event request. `null` if the request was successfully processed and there is no error to respond with.
-
hasTimestamp
boolean hasTimestamp()
Checks whether the 'timestamp' field has been set. Time ([Instant]) in milliseconds when the response was created.
-
clearTimestamp
ExternalEventResponse.Builder clearTimestamp()
Clears the value of the 'timestamp' field. Time ([Instant]) in milliseconds when the response was created.
-
build
ExternalEventResponse build()
-
-
-
-