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 RequestFintEventbuild()RequestFintEvent.RequestFintEventBuildercorrId(java.lang.String corrId)GUID for correlation ID.RequestFintEvent.RequestFintEventBuildercreated(long created)When the event was created.RequestFintEvent.RequestFintEventBuilderdomainName(java.lang.String domainName)Name of the FINT domain.RequestFintEvent.RequestFintEventBuilderoperationType(OperationType operationType)The type of operation to be performed (CREATE, UPDATE, VALIDATE)RequestFintEvent.RequestFintEventBuilderorgId(java.lang.String orgId)OrgId for the current customer.RequestFintEvent.RequestFintEventBuilderpackageName(java.lang.String packageName)Name of the FINT package.RequestFintEvent.RequestFintEventBuilderresourceName(java.lang.String resourceName)Name of the FINT class/entity.RequestFintEvent.RequestFintEventBuildertimeToLive(long timeToLive)How long the request is valid in millisecondsjava.lang.StringtoString()RequestFintEvent.RequestFintEventBuildervalue(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:
toStringin classjava.lang.Object
-
-