Package no.fintlabs.adapter.models.event
Class ResponseFintEvent.ResponseFintEventBuilder
- java.lang.Object
-
- no.fintlabs.adapter.models.event.ResponseFintEvent.ResponseFintEventBuilder
-
- Enclosing class:
- ResponseFintEvent
public static class ResponseFintEvent.ResponseFintEventBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseFintEvent.ResponseFintEventBuilder
adapterId(java.lang.String adapterId)
ResponseFintEvent
build()
ResponseFintEvent.ResponseFintEventBuilder
conflicted(boolean conflicted)
Indicates whether the event had a conflict.ResponseFintEvent.ResponseFintEventBuilder
conflictReason(java.lang.String conflictReason)
A message that explains the reason for the conflict of the event.ResponseFintEvent.ResponseFintEventBuilder
corrId(java.lang.String corrId)
GUID for correlation ID.ResponseFintEvent.ResponseFintEventBuilder
errorMessage(java.lang.String errorMessage)
A message that explains the reason for the failure of the event.ResponseFintEvent.ResponseFintEventBuilder
failed(boolean failed)
Indicates whether the event has failed.ResponseFintEvent.ResponseFintEventBuilder
handledAt(long handledAt)
When the event was handled.ResponseFintEvent.ResponseFintEventBuilder
operationType(OperationType operationType)
The type of operation to be performed (CREATE, UPDATE, VALIDATE)ResponseFintEvent.ResponseFintEventBuilder
orgId(java.lang.String orgId)
OrgId for the current customer.ResponseFintEvent.ResponseFintEventBuilder
rejected(boolean rejected)
Indicates whether the event has been rejected.ResponseFintEvent.ResponseFintEventBuilder
rejectReason(java.lang.String rejectReason)
A message that explains the reason for the rejection of the event.java.lang.String
toString()
ResponseFintEvent.ResponseFintEventBuilder
value(SyncPageEntry value)
The SyncPageEntry of the object that the event produced.
-
-
-
Method Detail
-
corrId
public ResponseFintEvent.ResponseFintEventBuilder corrId(java.lang.String corrId)
GUID for correlation ID. The same ID should follow the request both upstream and downstream.- Returns:
this
.
-
orgId
public ResponseFintEvent.ResponseFintEventBuilder orgId(java.lang.String orgId)
OrgId for the current customer.- Returns:
this
.
-
adapterId
public ResponseFintEvent.ResponseFintEventBuilder adapterId(java.lang.String adapterId)
- Returns:
this
.
-
handledAt
public ResponseFintEvent.ResponseFintEventBuilder handledAt(long handledAt)
When the event was handled.- Returns:
this
.
-
value
public ResponseFintEvent.ResponseFintEventBuilder value(SyncPageEntry value)
The SyncPageEntry of the object that the event produced. The object should be a FINT resource.- Returns:
this
.
-
operationType
public ResponseFintEvent.ResponseFintEventBuilder operationType(OperationType operationType)
The type of operation to be performed (CREATE, UPDATE, VALIDATE)- Returns:
this
.
-
failed
public ResponseFintEvent.ResponseFintEventBuilder failed(boolean failed)
Indicates whether the event has failed.- Returns:
this
.
-
errorMessage
public ResponseFintEvent.ResponseFintEventBuilder errorMessage(java.lang.String errorMessage)
A message that explains the reason for the failure of the event.- Returns:
this
.
-
rejected
public ResponseFintEvent.ResponseFintEventBuilder rejected(boolean rejected)
Indicates whether the event has been rejected.- Returns:
this
.
-
rejectReason
public ResponseFintEvent.ResponseFintEventBuilder rejectReason(java.lang.String rejectReason)
A message that explains the reason for the rejection of the event.- Returns:
this
.
-
conflicted
public ResponseFintEvent.ResponseFintEventBuilder conflicted(boolean conflicted)
Indicates whether the event had a conflict.- Returns:
this
.
-
conflictReason
public ResponseFintEvent.ResponseFintEventBuilder conflictReason(java.lang.String conflictReason)
A message that explains the reason for the conflict of the event.- Returns:
this
.
-
build
public ResponseFintEvent build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-