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.ResponseFintEventBuilderadapterId(java.lang.String adapterId)ResponseFintEventbuild()ResponseFintEvent.ResponseFintEventBuilderconflicted(boolean conflicted)Indicates whether the event had a conflict.ResponseFintEvent.ResponseFintEventBuilderconflictReason(java.lang.String conflictReason)A message that explains the reason for the conflict of the event.ResponseFintEvent.ResponseFintEventBuildercorrId(java.lang.String corrId)GUID for correlation ID.ResponseFintEvent.ResponseFintEventBuildererrorMessage(java.lang.String errorMessage)A message that explains the reason for the failure of the event.ResponseFintEvent.ResponseFintEventBuilderfailed(boolean failed)Indicates whether the event has failed.ResponseFintEvent.ResponseFintEventBuilderhandledAt(long handledAt)When the event was handled.ResponseFintEvent.ResponseFintEventBuilderoperationType(OperationType operationType)The type of operation to be performed (CREATE, UPDATE, VALIDATE)ResponseFintEvent.ResponseFintEventBuilderorgId(java.lang.String orgId)OrgId for the current customer.ResponseFintEvent.ResponseFintEventBuilderrejected(boolean rejected)Indicates whether the event has been rejected.ResponseFintEvent.ResponseFintEventBuilderrejectReason(java.lang.String rejectReason)A message that explains the reason for the rejection of the event.java.lang.StringtoString()ResponseFintEvent.ResponseFintEventBuildervalue(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:
toStringin classjava.lang.Object
-
-