Class SudoRetrieveThingResponse
java.lang.Object
org.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<SudoRetrieveThingResponse>
org.eclipse.ditto.things.api.commands.sudo.SudoRetrieveThingResponse
- All Implemented Interfaces:
org.eclipse.ditto.base.model.headers.DittoHeadersSettable<SudoRetrieveThingResponse>,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<SudoRetrieveThingResponse>,org.eclipse.ditto.base.model.signals.commands.WithEntity<SudoRetrieveThingResponse>,org.eclipse.ditto.base.model.signals.commands.WithHttpStatus,org.eclipse.ditto.base.model.signals.Signal<SudoRetrieveThingResponse>,org.eclipse.ditto.base.model.signals.WithName,org.eclipse.ditto.base.model.signals.WithResource,org.eclipse.ditto.base.model.signals.WithType,SudoCommandResponse<SudoRetrieveThingResponse>
@Immutable
public final class SudoRetrieveThingResponse
extends org.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<SudoRetrieveThingResponse>
implements SudoCommandResponse<SudoRetrieveThingResponse>
Response to a
SudoRetrieveThing command.-
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> Nested classes/interfaces inherited from interface org.eclipse.ditto.things.api.commands.sudo.SudoCommandResponse
SudoCommandResponse.JsonFields -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the response.static final StringType of this command.Fields inherited from interface org.eclipse.ditto.base.model.signals.commands.CommandResponse
TYPE_QUALIFIERFields inherited from interface org.eclipse.ditto.things.api.commands.sudo.SudoCommandResponse
TYPE_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> thePredicate) protected booleanbooleanstatic SudoRetrieveThingResponseCreates a newSudoRetrieveThingResponsefrom a JSON string.static SudoRetrieveThingResponsefromJson(org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Creates a newSudoRetrieveThingResponsefrom a JSON object.org.eclipse.ditto.json.JsonObjectgetEntity(org.eclipse.ditto.base.model.json.JsonSchemaVersion schemaVersion) org.eclipse.ditto.things.model.ThinggetThing()Returns theThing.inthashCode()static SudoRetrieveThingResponseof(org.eclipse.ditto.json.JsonObject thing, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Creates a new instance ofSudoRetrieveThingResponse.setDittoHeaders(org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) setEntity(org.eclipse.ditto.json.JsonValue entity) toString()Methods inherited from class org.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse
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, toJson, 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
getNameMethods inherited from interface org.eclipse.ditto.things.api.commands.sudo.SudoCommandResponse
getResourcePath, getResourceTypeMethods inherited from interface org.eclipse.ditto.base.model.headers.WithDittoHeaders
getDittoHeadersMethods inherited from interface org.eclipse.ditto.base.model.signals.commands.WithEntity
getEntity, getEntityPlainStringMethods inherited from interface org.eclipse.ditto.base.model.signals.commands.WithHttpStatus
getHttpStatusMethods inherited from interface org.eclipse.ditto.base.model.headers.WithManifest
getManifestMethods inherited from interface org.eclipse.ditto.base.model.signals.WithType
getType
-
Field Details
-
NAME
Name of the response.- See Also:
-
TYPE
Type of this command.- See Also:
-
-
Method Details
-
of
public static SudoRetrieveThingResponse of(org.eclipse.ditto.json.JsonObject thing, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Creates a new instance ofSudoRetrieveThingResponse.- Parameters:
thing- the retrieved Thing.dittoHeaders- the headers of the preceding command.- Returns:
- the response.
- Throws:
NullPointerException- if any argument isnull.
-
fromJson
public static SudoRetrieveThingResponse fromJson(String jsonString, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Creates a newSudoRetrieveThingResponsefrom a JSON string.- Parameters:
jsonString- the JSON string of which a new SudoRetrieveThingResponse instance is to be created.dittoHeaders- the optional command headers of the request.- Returns:
- the
SudoRetrieveThingResponsewhich was created from the given JSON string. - Throws:
NullPointerException- if any argument isnull.org.eclipse.ditto.base.model.exceptions.DittoJsonException- if the passed injsonStringwasnull, empty or not in the expected 'SudoRetrieveThingResponse' format.
-
fromJson
public static SudoRetrieveThingResponse fromJson(org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Creates a newSudoRetrieveThingResponsefrom a JSON object.- Parameters:
jsonObject- the JSON object of which a new SudoRetrieveThingResponse instance is to be created.dittoHeaders- the optional command headers of the request.- Returns:
- the
SudoRetrieveThingResponsewhich was created from the given JSON object. - Throws:
NullPointerException- if any argument isnull.org.eclipse.ditto.json.JsonParseException- if the passed injsonObjectwas not in the expected 'SudoRetrieveThingResponse' format.
-
getThing
public org.eclipse.ditto.things.model.Thing getThing()Returns theThing.- Returns:
- the Thing.
-
getEntity
public org.eclipse.ditto.json.JsonObject getEntity(org.eclipse.ditto.base.model.json.JsonSchemaVersion schemaVersion) - Specified by:
getEntityin interfaceorg.eclipse.ditto.base.model.signals.commands.WithEntity<SudoRetrieveThingResponse>
-
setEntity
- Specified by:
setEntityin interfaceSudoCommandResponse<SudoRetrieveThingResponse>- Specified by:
setEntityin interfaceorg.eclipse.ditto.base.model.signals.commands.WithEntity<SudoRetrieveThingResponse>
-
setDittoHeaders
public SudoRetrieveThingResponse setDittoHeaders(org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) - Specified by:
setDittoHeadersin interfaceorg.eclipse.ditto.base.model.signals.commands.CommandResponse<SudoRetrieveThingResponse>- Specified by:
setDittoHeadersin interfaceorg.eclipse.ditto.base.model.headers.DittoHeadersSettable<SudoRetrieveThingResponse>- Specified by:
setDittoHeadersin interfaceSudoCommandResponse<SudoRetrieveThingResponse>
-
appendPayload
protected void appendPayload(org.eclipse.ditto.json.JsonObjectBuilder jsonObjectBuilder, org.eclipse.ditto.base.model.json.JsonSchemaVersion schemaVersion, Predicate<org.eclipse.ditto.json.JsonField> thePredicate) - Specified by:
appendPayloadin classorg.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<SudoRetrieveThingResponse>
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<SudoRetrieveThingResponse>
-
equals
- Overrides:
equalsin classorg.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<SudoRetrieveThingResponse>
-
canEqual
- Overrides:
canEqualin classorg.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<SudoRetrieveThingResponse>
-
toString
- Overrides:
toStringin classorg.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<SudoRetrieveThingResponse>
-