Class StatusDetailMessage
java.lang.Object
org.eclipse.ditto.internal.utils.health.StatusDetailMessage
- All Implemented Interfaces:
org.eclipse.ditto.base.model.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>
public final class StatusDetailMessage
extends Object
implements org.eclipse.ditto.base.model.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>
A StatusDetailMessage contains a
StatusDetailMessage.Level (INFO, WARN or ERROR) associated with a message.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe available levels of a StatusDetailMessage.Nested classes/interfaces inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable
org.eclipse.ditto.base.model.json.Jsonifiable.WithFieldSelector, org.eclipse.ditto.base.model.json.Jsonifiable.WithFieldSelectorAndPredicate<T extends Object>, org.eclipse.ditto.base.model.json.Jsonifiable.WithPointer<J extends org.eclipse.ditto.json.JsonValue>, org.eclipse.ditto.base.model.json.Jsonifiable.WithPredicate<J extends org.eclipse.ditto.json.JsonValue,T extends Object> -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic StatusDetailMessagefromJson(org.eclipse.ditto.json.JsonObject jsonObject) Creates a newStatusDetailMessagefrom a JSON object.getLevel()org.eclipse.ditto.json.JsonValueinthashCode()static StatusDetailMessageof(StatusDetailMessage.Level level, String message) static StatusDetailMessageof(StatusDetailMessage.Level level, org.eclipse.ditto.json.JsonValue message) org.eclipse.ditto.json.JsonObjecttoJson()toString()static StatusDetailMessageMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable
getImplementedSchemaVersion, getLatestSchemaVersion, getSupportedSchemaVersions, implementsSchemaVersion, implementsSchemaVersion, toJsonString
-
Method Details
-
of
-
of
public static StatusDetailMessage of(StatusDetailMessage.Level level, org.eclipse.ditto.json.JsonValue message) -
warn
-
toJson
public org.eclipse.ditto.json.JsonObject toJson()- Specified by:
toJsonin interfaceorg.eclipse.ditto.base.model.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>
-
fromJson
Creates a newStatusDetailMessagefrom a JSON object.- Parameters:
jsonObject- the JSON object.- Returns:
- the message.
- Throws:
NullPointerException- ifjsonObjectisnull.IllegalArgumentException- ifjsonObjectis empty.org.eclipse.ditto.json.JsonMissingFieldException- if the passed injsonObjectwas not in the expected format.
-
getLevel
-
getMessage
public org.eclipse.ditto.json.JsonValue getMessage() -
equals
-
hashCode
public int hashCode() -
toString
-