Package no.fintlabs.adapter.models.event
Class RequestFintEvent.RequestFintEventBuilder
- java.lang.Object
-
- no.fintlabs.adapter.models.event.RequestFintEvent.RequestFintEventBuilder
-
- Enclosing class:
- RequestFintEvent
public static class RequestFintEvent.RequestFintEventBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestFintEvent
build()
RequestFintEvent.RequestFintEventBuilder
corrId(java.lang.String corrId)
GUID for correlation ID.RequestFintEvent.RequestFintEventBuilder
created(long created)
When the event was created.RequestFintEvent.RequestFintEventBuilder
domainName(java.lang.String domainName)
Name of the FINT domain.RequestFintEvent.RequestFintEventBuilder
operationType(OperationType operationType)
The type of operation to be performed (CREATE, UPDATE, VALIDATE)RequestFintEvent.RequestFintEventBuilder
orgId(java.lang.String orgId)
OrgId for the current customer.RequestFintEvent.RequestFintEventBuilder
packageName(java.lang.String packageName)
Name of the FINT package.RequestFintEvent.RequestFintEventBuilder
resourceName(java.lang.String resourceName)
Name of the FINT class/entity.RequestFintEvent.RequestFintEventBuilder
timeToLive(long timeToLive)
How long the request is valid in millisecondsjava.lang.String
toString()
RequestFintEvent.RequestFintEventBuilder
value(java.lang.String value)
The object to which the event applies
-
-
-
Method Detail
-
corrId
public RequestFintEvent.RequestFintEventBuilder corrId(java.lang.String corrId)
GUID for correlation ID. The same ID should follow the request both upstream and downstream.- Returns:
this
.
-
orgId
public RequestFintEvent.RequestFintEventBuilder orgId(java.lang.String orgId)
OrgId for the current customer.- Returns:
this
.
-
domainName
public RequestFintEvent.RequestFintEventBuilder domainName(java.lang.String domainName)
Name of the FINT domain. E.g. utdanning.- Returns:
this
.
-
packageName
public RequestFintEvent.RequestFintEventBuilder packageName(java.lang.String packageName)
Name of the FINT package. E.g. vurdering.- Returns:
this
.
-
resourceName
public RequestFintEvent.RequestFintEventBuilder resourceName(java.lang.String resourceName)
Name of the FINT class/entity. E.g. fravar- Returns:
this
.
-
operationType
public RequestFintEvent.RequestFintEventBuilder operationType(OperationType operationType)
The type of operation to be performed (CREATE, UPDATE, VALIDATE)- Returns:
this
.
-
created
public RequestFintEvent.RequestFintEventBuilder created(long created)
When the event was created.- Returns:
this
.
-
timeToLive
public RequestFintEvent.RequestFintEventBuilder timeToLive(long timeToLive)
How long the request is valid in milliseconds- Returns:
this
.
-
value
public RequestFintEvent.RequestFintEventBuilder value(java.lang.String value)
The object to which the event applies- Returns:
this
.
-
build
public RequestFintEvent build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-