Class RetrieveHealthResponse
java.lang.Object
org.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<RetrieveHealthResponse>
org.eclipse.ditto.internal.utils.health.RetrieveHealthResponse
- All Implemented Interfaces:
org.eclipse.ditto.base.model.headers.DittoHeadersSettable<RetrieveHealthResponse>,org.eclipse.ditto.base.model.headers.WithDittoHeaders,org.eclipse.ditto.base.model.headers.WithManifest,org.eclipse.ditto.base.model.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>,org.eclipse.ditto.base.model.json.Jsonifiable.WithPredicate<org.eclipse.ditto.json.JsonObject,,org.eclipse.ditto.json.JsonField> org.eclipse.ditto.base.model.signals.commands.CommandResponse<RetrieveHealthResponse>,org.eclipse.ditto.base.model.signals.commands.WithHttpStatus,org.eclipse.ditto.base.model.signals.Signal<RetrieveHealthResponse>,org.eclipse.ditto.base.model.signals.WithName,org.eclipse.ditto.base.model.signals.WithResource,org.eclipse.ditto.base.model.signals.WithType
@Immutable
public final class RetrieveHealthResponse
extends org.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<RetrieveHealthResponse>
Response of
RetrieveHealth.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.ditto.base.model.signals.commands.CommandResponse
org.eclipse.ditto.base.model.signals.commands.CommandResponse.JsonFieldsNested 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> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.eclipse.ditto.json.JsonFieldDefinition<org.eclipse.ditto.json.JsonObject>Json field of the StatusInfo-payload.static final StringType of this response.Fields inherited from interface org.eclipse.ditto.base.model.signals.commands.CommandResponse
TYPE_QUALIFIERFields inherited from interface org.eclipse.ditto.base.model.signals.Signal
CHANNEL_LIVE, CHANNEL_TWINFields inherited from interface org.eclipse.ditto.base.model.signals.WithType
MESSAGES_COMMAND_RESPONSES_PREFIX, MESSAGES_COMMANDS_PREFIX, POLICY_ANNOUNCEMENT_PREFIX, THINGS_COMMAND_RESPONSES_PREFIX, THINGS_COMMANDS_PREFIX, THINGS_EVENTS_PREFIX -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendPayload(org.eclipse.ditto.json.JsonObjectBuilder jsonObjectBuilder, org.eclipse.ditto.base.model.json.JsonSchemaVersion schemaVersion, Predicate<org.eclipse.ditto.json.JsonField> predicate) booleanstatic RetrieveHealthResponsefromJson(org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Create a RetrieveHealthResponse from its JSON representation.org.eclipse.ditto.json.JsonPointerReturn the status info.inthashCode()static RetrieveHealthResponseof(StatusInfo statusInfo, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Create a RetrieveHealthResponse.setDittoHeaders(org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) toString()Methods inherited from class org.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse
canEqual, getDittoHeaders, getHttpStatus, getManifest, getType, toJsonMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.ditto.base.model.signals.commands.CommandResponse
getImplementedSchemaVersion, getResponseType, isOfExpectedResponseType, toJsonMethods inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable
getLatestSchemaVersion, getSupportedSchemaVersions, implementsSchemaVersion, implementsSchemaVersion, toJsonStringMethods inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable.WithPredicate
toJson, toJsonString, toJsonStringMethods inherited from interface org.eclipse.ditto.base.model.signals.Signal
getName
-
Field Details
-
TYPE
Type of this response.- See Also:
-
STATUS_INFO
public static final org.eclipse.ditto.json.JsonFieldDefinition<org.eclipse.ditto.json.JsonObject> STATUS_INFOJson field of the StatusInfo-payload.
-
-
Method Details
-
of
public static RetrieveHealthResponse of(StatusInfo statusInfo, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Create a RetrieveHealthResponse.- Parameters:
statusInfo- the status info.dittoHeaders- the Ditto headers.- Returns:
- the RetrieveHealthResponse.
-
fromJson
public static RetrieveHealthResponse fromJson(org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Create a RetrieveHealthResponse from its JSON representation.- Parameters:
jsonObject- JSON of the response.dittoHeaders- headers of the response.- Returns:
- the response.
-
getStatusInfo
Return the status info.- Returns:
- the status info.
-
appendPayload
protected void appendPayload(org.eclipse.ditto.json.JsonObjectBuilder jsonObjectBuilder, org.eclipse.ditto.base.model.json.JsonSchemaVersion schemaVersion, Predicate<org.eclipse.ditto.json.JsonField> predicate) - Specified by:
appendPayloadin classorg.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<RetrieveHealthResponse>
-
setDittoHeaders
public RetrieveHealthResponse setDittoHeaders(org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) -
getResourcePath
public org.eclipse.ditto.json.JsonPointer getResourcePath() -
getResourceType
-
equals
- Overrides:
equalsin classorg.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<RetrieveHealthResponse>
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<RetrieveHealthResponse>
-
toString
- Overrides:
toStringin classorg.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<RetrieveHealthResponse>
-