Class SudoRetrieveThingsResponse
java.lang.Object
org.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<SudoRetrieveThingsResponse>
org.eclipse.ditto.things.api.commands.sudo.SudoRetrieveThingsResponse
- All Implemented Interfaces:
org.eclipse.ditto.base.model.headers.DittoHeadersSettable<SudoRetrieveThingsResponse>,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<SudoRetrieveThingsResponse>,org.eclipse.ditto.base.model.signals.commands.WithEntity<SudoRetrieveThingsResponse>,org.eclipse.ditto.base.model.signals.commands.WithHttpStatus,org.eclipse.ditto.base.model.signals.Signal<SudoRetrieveThingsResponse>,org.eclipse.ditto.base.model.signals.WithName,org.eclipse.ditto.base.model.signals.WithResource,org.eclipse.ditto.base.model.signals.WithType,SudoCommandResponse<SudoRetrieveThingsResponse>
@Immutable
@AllValuesAreNonnullByDefault
public final class SudoRetrieveThingsResponse
extends org.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<SudoRetrieveThingsResponse>
implements SudoCommandResponse<SudoRetrieveThingsResponse>
Response to a
SudoRetrieveThings 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 SudoRetrieveThingsResponseCreates a newSudoRetrieveThingsResponsefrom a JSON string.static SudoRetrieveThingsResponsefromJson(org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Creates a newSudoRetrieveThingsResponsefrom a JSON object.org.eclipse.ditto.json.JsonValuegetEntity(org.eclipse.ditto.base.model.json.JsonSchemaVersion schemaVersion) List<org.eclipse.ditto.things.model.Thing>Returns theThings.inthashCode()static SudoRetrieveThingsResponseCreates a new instance ofSudoRetrieveThingsResponse.static SudoRetrieveThingsResponseCreates a response to aSudoRetrieveThingsResponsecommand.static SudoRetrieveThingsResponseof(List<org.eclipse.ditto.things.model.Thing> things, Predicate<org.eclipse.ditto.json.JsonField> predicate, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Creates a new instance ofSudoRetrieveThingsResponse.static SudoRetrieveThingsResponseof(List<org.eclipse.ditto.things.model.Thing> things, org.eclipse.ditto.json.JsonFieldSelector fieldSelector, Predicate<org.eclipse.ditto.json.JsonField> predicate, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Creates a new instance ofSudoRetrieveThingsResponse.static SudoRetrieveThingsResponseof(org.eclipse.ditto.json.JsonArray things, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Creates a new instance ofSudoRetrieveThingsResponse.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 SudoRetrieveThingsResponse of(String thingsPlainJson, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Creates a new instance ofSudoRetrieveThingsResponse.- Parameters:
thingsPlainJson- the retrieved Things.dittoHeaders- the headers of the preceding command.- Returns:
- the response.
- Throws:
NullPointerException- if any argument isnull.
-
of
public static SudoRetrieveThingsResponse of(List<String> thingsPlainJson, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Creates a response to aSudoRetrieveThingsResponsecommand.- Parameters:
thingsPlainJson- the retrieved Things.dittoHeaders- the headers of the preceding command.- Returns:
- the response.
- Throws:
NullPointerException- if any argument isnull.
-
of
public static SudoRetrieveThingsResponse of(org.eclipse.ditto.json.JsonArray things, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Creates a new instance ofSudoRetrieveThingsResponse.- Parameters:
things- the retrieved Things.dittoHeaders- the headers of the preceding command.- Returns:
- the response.
- Throws:
NullPointerException- if any argument isnull.
-
of
public static SudoRetrieveThingsResponse of(List<org.eclipse.ditto.things.model.Thing> things, Predicate<org.eclipse.ditto.json.JsonField> predicate, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Creates a new instance ofSudoRetrieveThingsResponse.- Parameters:
things- the Things.predicate- the predicate to apply to the things when transforming to JSON.dittoHeaders- the command headers of the request.- Returns:
- a new SudoRetrieveThingsResponse object.
- Throws:
NullPointerException- if any argument isnull.
-
of
public static SudoRetrieveThingsResponse of(List<org.eclipse.ditto.things.model.Thing> things, org.eclipse.ditto.json.JsonFieldSelector fieldSelector, Predicate<org.eclipse.ditto.json.JsonField> predicate, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Creates a new instance ofSudoRetrieveThingsResponse.- Parameters:
things- the Things.fieldSelector- the JsonFieldSelector to apply to the passed things when transforming to JSON.predicate- the predicate to apply to the things when transforming to JSON.dittoHeaders- the command headers of the request.- Returns:
- a new SudoRetrieveThingsResponse object.
- Throws:
NullPointerException- if any argument isnull.
-
fromJson
public static SudoRetrieveThingsResponse fromJson(String jsonString, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Creates a newSudoRetrieveThingsResponsefrom a JSON string.- Parameters:
jsonString- the JSON string of which a new SudoRetrieveThingsResponse instance is to be created.dittoHeaders- the optional command headers of the request.- Returns:
- the
SudoRetrieveThingsResponsewhich was created from the given JSON string. - Throws:
NullPointerException- ifdittoHeadersisnull.org.eclipse.ditto.base.model.exceptions.DittoJsonException- if the passed injsonStringwasnull, empty or not in the expected 'SudoRetrieveThingsResponse' format.
-
fromJson
public static SudoRetrieveThingsResponse fromJson(org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Creates a newSudoRetrieveThingsResponsefrom a JSON object.- Parameters:
jsonObject- the JSON object of which a new SudoRetrieveThingsResponse instance is to be created.dittoHeaders- the optional command headers of the request.- Returns:
- the
SudoRetrieveThingsResponsewhich 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 'SudoRetrieveThingsResponse' format.
-
getThings
Returns theThings.- Returns:
- the Things.
-
getEntity
public org.eclipse.ditto.json.JsonValue getEntity(org.eclipse.ditto.base.model.json.JsonSchemaVersion schemaVersion) - Specified by:
getEntityin interfaceorg.eclipse.ditto.base.model.signals.commands.WithEntity<SudoRetrieveThingsResponse>
-
setEntity
- Specified by:
setEntityin interfaceSudoCommandResponse<SudoRetrieveThingsResponse>- Specified by:
setEntityin interfaceorg.eclipse.ditto.base.model.signals.commands.WithEntity<SudoRetrieveThingsResponse>
-
setDittoHeaders
public SudoRetrieveThingsResponse setDittoHeaders(org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) - Specified by:
setDittoHeadersin interfaceorg.eclipse.ditto.base.model.signals.commands.CommandResponse<SudoRetrieveThingsResponse>- Specified by:
setDittoHeadersin interfaceorg.eclipse.ditto.base.model.headers.DittoHeadersSettable<SudoRetrieveThingsResponse>- Specified by:
setDittoHeadersin interfaceSudoCommandResponse<SudoRetrieveThingsResponse>
-
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<SudoRetrieveThingsResponse>
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<SudoRetrieveThingsResponse>
-
equals
- Overrides:
equalsin classorg.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<SudoRetrieveThingsResponse>
-
canEqual
- Overrides:
canEqualin classorg.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<SudoRetrieveThingsResponse>
-
toString
- Overrides:
toStringin classorg.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<SudoRetrieveThingsResponse>
-