Interface WarningObject
- All Known Subinterfaces:
ImageProcessingOngoingWarning
public interface WarningObject
Represents a warning related to the returned response.
Example to create a subtype instance using the builder pattern
WarningObject warningObject = WarningObject.imageProcessingOngoingBuilder()
message("{message}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic WarningObject
deepCopy
(WarningObject template) factory method to create a deep copy of WarningObject@NotNull String
getCode()
Identifier for the type of warning.@NotNull String
Contains information about the returned response.builder for imageProcessingOngoing subtypevoid
setMessage
(String message) Contains information about the returned response.static com.fasterxml.jackson.core.type.TypeReference<WarningObject>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withWarningObject
(Function<WarningObject, T> helper) accessor map function
-
Method Details
-
getCode
Identifier for the type of warning.
- Returns:
- code
-
getMessage
Contains information about the returned response.
- Returns:
- message
-
setMessage
Contains information about the returned response.
- Parameters:
message
- value to be set
-
deepCopy
factory method to create a deep copy of WarningObject- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
imageProcessingOngoingBuilder
builder for imageProcessingOngoing subtype- Returns:
- builder
-
withWarningObject
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-