Package no.fintlabs.adapter.models.event
Class ResponseFintEvent
- java.lang.Object
-
- no.fintlabs.adapter.models.event.ResponseFintEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResponseFintEvent.ResponseFintEventBuilder
-
Constructor Summary
Constructors Constructor Description ResponseFintEvent()
ResponseFintEvent(java.lang.String corrId, java.lang.String orgId, java.lang.String adapterId, long handledAt, SyncPageEntry value, OperationType operationType, boolean failed, java.lang.String errorMessage, boolean rejected, java.lang.String rejectReason, boolean conflicted, java.lang.String conflictReason)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResponseFintEvent.ResponseFintEventBuilder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getAdapterId()
java.lang.String
getConflictReason()
A message that explains the reason for the conflict of the event.java.lang.String
getCorrId()
GUID for correlation ID.java.lang.String
getErrorMessage()
A message that explains the reason for the failure of the event.long
getHandledAt()
When the event was handled.OperationType
getOperationType()
The type of operation to be performed (CREATE, UPDATE, VALIDATE)java.lang.String
getOrgId()
OrgId for the current customer.java.lang.String
getRejectReason()
A message that explains the reason for the rejection of the event.SyncPageEntry
getValue()
The SyncPageEntry of the object that the event produced.int
hashCode()
boolean
isConflicted()
Indicates whether the event had a conflict.boolean
isFailed()
Indicates whether the event has failed.boolean
isRejected()
Indicates whether the event has been rejected.void
setAdapterId(java.lang.String adapterId)
void
setConflicted(boolean conflicted)
Indicates whether the event had a conflict.void
setConflictReason(java.lang.String conflictReason)
A message that explains the reason for the conflict of the event.void
setCorrId(java.lang.String corrId)
GUID for correlation ID.void
setErrorMessage(java.lang.String errorMessage)
A message that explains the reason for the failure of the event.void
setFailed(boolean failed)
Indicates whether the event has failed.void
setHandledAt(long handledAt)
When the event was handled.void
setOperationType(OperationType operationType)
The type of operation to be performed (CREATE, UPDATE, VALIDATE)void
setOrgId(java.lang.String orgId)
OrgId for the current customer.void
setRejected(boolean rejected)
Indicates whether the event has been rejected.void
setRejectReason(java.lang.String rejectReason)
A message that explains the reason for the rejection of the event.void
setValue(SyncPageEntry value)
The SyncPageEntry of the object that the event produced.java.lang.String
toString()
-
-
-
Constructor Detail
-
ResponseFintEvent
public ResponseFintEvent()
-
ResponseFintEvent
public ResponseFintEvent(java.lang.String corrId, java.lang.String orgId, java.lang.String adapterId, long handledAt, SyncPageEntry value, OperationType operationType, boolean failed, java.lang.String errorMessage, boolean rejected, java.lang.String rejectReason, boolean conflicted, java.lang.String conflictReason)
-
-
Method Detail
-
builder
public static ResponseFintEvent.ResponseFintEventBuilder builder()
-
getCorrId
public java.lang.String getCorrId()
GUID for correlation ID. The same ID should follow the request both upstream and downstream.
-
getOrgId
public java.lang.String getOrgId()
OrgId for the current customer.
-
getAdapterId
public java.lang.String getAdapterId()
-
getHandledAt
public long getHandledAt()
When the event was handled.
-
getValue
public SyncPageEntry getValue()
The SyncPageEntry of the object that the event produced. The object should be a FINT resource.
-
getOperationType
public OperationType getOperationType()
The type of operation to be performed (CREATE, UPDATE, VALIDATE)- Specified by:
getOperationType
in interfaceFintEvent
-
isFailed
public boolean isFailed()
Indicates whether the event has failed.
-
getErrorMessage
public java.lang.String getErrorMessage()
A message that explains the reason for the failure of the event.
-
isRejected
public boolean isRejected()
Indicates whether the event has been rejected.
-
getRejectReason
public java.lang.String getRejectReason()
A message that explains the reason for the rejection of the event.
-
isConflicted
public boolean isConflicted()
Indicates whether the event had a conflict.
-
getConflictReason
public java.lang.String getConflictReason()
A message that explains the reason for the conflict of the event.
-
setCorrId
public void setCorrId(java.lang.String corrId)
GUID for correlation ID. The same ID should follow the request both upstream and downstream.
-
setOrgId
public void setOrgId(java.lang.String orgId)
OrgId for the current customer.
-
setAdapterId
public void setAdapterId(java.lang.String adapterId)
-
setHandledAt
public void setHandledAt(long handledAt)
When the event was handled.
-
setValue
public void setValue(SyncPageEntry value)
The SyncPageEntry of the object that the event produced. The object should be a FINT resource.
-
setOperationType
public void setOperationType(OperationType operationType)
The type of operation to be performed (CREATE, UPDATE, VALIDATE)
-
setFailed
public void setFailed(boolean failed)
Indicates whether the event has failed.
-
setErrorMessage
public void setErrorMessage(java.lang.String errorMessage)
A message that explains the reason for the failure of the event.
-
setRejected
public void setRejected(boolean rejected)
Indicates whether the event has been rejected.
-
setRejectReason
public void setRejectReason(java.lang.String rejectReason)
A message that explains the reason for the rejection of the event.
-
setConflicted
public void setConflicted(boolean conflicted)
Indicates whether the event had a conflict.
-
setConflictReason
public void setConflictReason(java.lang.String conflictReason)
A message that explains the reason for the conflict of the event.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-