Package no.fintlabs.adapter.models.event
Class EventBodyResponse.EventBodyResponseBuilder
- java.lang.Object
-
- no.fintlabs.adapter.models.event.EventBodyResponse.EventBodyResponseBuilder
-
- Enclosing class:
- EventBodyResponse
public static class EventBodyResponse.EventBodyResponseBuilder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventBodyResponsebuild()EventBodyResponse.EventBodyResponseBuildermessage(java.lang.String message)This message should be set if something goes wrong.EventBodyResponse.EventBodyResponseBuilderproblems(java.util.List<org.springframework.beans.factory.parsing.Problem> problems)Shows the problems the system has found when processing this event's request.EventBodyResponse.EventBodyResponseBuilderresponseStatus(ResponseStatus responseStatus)Shows the status of the event that was processed by the adapter.EventBodyResponse.EventBodyResponseBuilderstatusCode(java.lang.String statusCode)This status code should be set to some code that can be used to trace the origin of the error in the back end system.java.lang.StringtoString()
-
-
-
Method Detail
-
message
public EventBodyResponse.EventBodyResponseBuilder message(java.lang.String message)
This message should be set if something goes wrong. It should typically describe what went wrong, for example a stack trace or an error message.- Returns:
this.
-
statusCode
public EventBodyResponse.EventBodyResponseBuilder statusCode(java.lang.String statusCode)
This status code should be set to some code that can be used to trace the origin of the error in the back end system.- Returns:
this.
-
responseStatus
public EventBodyResponse.EventBodyResponseBuilder responseStatus(ResponseStatus responseStatus)
Shows the status of the event that was processed by the adapter.- Returns:
this.
-
problems
public EventBodyResponse.EventBodyResponseBuilder problems(java.util.List<org.springframework.beans.factory.parsing.Problem> problems)
Shows the problems the system has found when processing this event's request.- Returns:
this.
-
build
public EventBodyResponse build()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-