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 EventBodyResponse
build()
EventBodyResponse.EventBodyResponseBuilder
message(java.lang.String message)
This message should be set if something goes wrong.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.EventBodyResponse.EventBodyResponseBuilder
responseStatus(ResponseStatus responseStatus)
Shows the status of the event that was processed by the adapter.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.java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-