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.JsonFields

    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>

    Nested classes/interfaces inherited from interface org.eclipse.ditto.things.api.commands.sudo.SudoCommandResponse

    SudoCommandResponse.JsonFields
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Name of the response.
    static final String
    Type of this command.

    Fields inherited from interface org.eclipse.ditto.base.model.signals.commands.CommandResponse

    TYPE_QUALIFIER

    Fields inherited from interface org.eclipse.ditto.things.api.commands.sudo.SudoCommandResponse

    TYPE_PREFIX
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    appendPayload(org.eclipse.ditto.json.JsonObjectBuilder jsonObjectBuilder, org.eclipse.ditto.base.model.json.JsonSchemaVersion schemaVersion, Predicate<org.eclipse.ditto.json.JsonField> thePredicate)
     
    protected boolean
     
    boolean
     
    fromJson(String jsonString, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)
    Creates a new SudoRetrieveThingResponse from a JSON string.
    fromJson(org.eclipse.ditto.json.JsonObject jsonObject, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)
    Creates a new SudoRetrieveThingResponse from a JSON object.
    org.eclipse.ditto.json.JsonObject
    getEntity(org.eclipse.ditto.base.model.json.JsonSchemaVersion schemaVersion)
     
    org.eclipse.ditto.things.model.Thing
    Returns the Thing.
    int
     
    of(org.eclipse.ditto.json.JsonObject thing, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)
    Creates a new instance of SudoRetrieveThingResponse.
    setDittoHeaders(org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)
     
    setEntity(org.eclipse.ditto.json.JsonValue entity)
     
     

    Methods inherited from class org.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse

    getDittoHeaders, getHttpStatus, getManifest, getType, toJson

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.eclipse.ditto.base.model.signals.commands.CommandResponse

    getImplementedSchemaVersion, getResponseType, isOfExpectedResponseType, toJson, toJson

    Methods inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable

    getLatestSchemaVersion, getSupportedSchemaVersions, implementsSchemaVersion, implementsSchemaVersion, toJsonString

    Methods inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable.WithPredicate

    toJson, toJsonString, toJsonString

    Methods inherited from interface org.eclipse.ditto.base.model.signals.Signal

    getName

    Methods inherited from interface org.eclipse.ditto.things.api.commands.sudo.SudoCommandResponse

    getResourcePath, getResourceType

    Methods inherited from interface org.eclipse.ditto.base.model.headers.WithDittoHeaders

    getDittoHeaders

    Methods inherited from interface org.eclipse.ditto.base.model.signals.commands.WithEntity

    getEntity, getEntityPlainString

    Methods inherited from interface org.eclipse.ditto.base.model.signals.commands.WithHttpStatus

    getHttpStatus

    Methods inherited from interface org.eclipse.ditto.base.model.headers.WithManifest

    getManifest

    Methods inherited from interface org.eclipse.ditto.base.model.signals.WithType

    getType
  • Field Details

  • 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 of SudoRetrieveThingResponse.
      Parameters:
      thing - the retrieved Thing.
      dittoHeaders - the headers of the preceding command.
      Returns:
      the response.
      Throws:
      NullPointerException - if any argument is null.
    • fromJson

      public static SudoRetrieveThingResponse fromJson(String jsonString, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)
      Creates a new SudoRetrieveThingResponse from 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 SudoRetrieveThingResponse which was created from the given JSON string.
      Throws:
      NullPointerException - if any argument is null.
      org.eclipse.ditto.base.model.exceptions.DittoJsonException - if the passed in jsonString was null, 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 new SudoRetrieveThingResponse from 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 SudoRetrieveThingResponse which was created from the given JSON object.
      Throws:
      NullPointerException - if any argument is null.
      org.eclipse.ditto.json.JsonParseException - if the passed in jsonObject was not in the expected 'SudoRetrieveThingResponse' format.
    • getThing

      public org.eclipse.ditto.things.model.Thing getThing()
      Returns the Thing.
      Returns:
      the Thing.
    • getEntity

      public org.eclipse.ditto.json.JsonObject getEntity(org.eclipse.ditto.base.model.json.JsonSchemaVersion schemaVersion)
      Specified by:
      getEntity in interface org.eclipse.ditto.base.model.signals.commands.WithEntity<SudoRetrieveThingResponse>
    • setEntity

      public SudoRetrieveThingResponse setEntity(org.eclipse.ditto.json.JsonValue entity)
      Specified by:
      setEntity in interface SudoCommandResponse<SudoRetrieveThingResponse>
      Specified by:
      setEntity in interface org.eclipse.ditto.base.model.signals.commands.WithEntity<SudoRetrieveThingResponse>
    • setDittoHeaders

      public SudoRetrieveThingResponse setDittoHeaders(org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders)
      Specified by:
      setDittoHeaders in interface org.eclipse.ditto.base.model.signals.commands.CommandResponse<SudoRetrieveThingResponse>
      Specified by:
      setDittoHeaders in interface org.eclipse.ditto.base.model.headers.DittoHeadersSettable<SudoRetrieveThingResponse>
      Specified by:
      setDittoHeaders in interface SudoCommandResponse<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:
      appendPayload in class org.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<SudoRetrieveThingResponse>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<SudoRetrieveThingResponse>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class org.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<SudoRetrieveThingResponse>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class org.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<SudoRetrieveThingResponse>
    • toString

      public String toString()
      Overrides:
      toString in class org.eclipse.ditto.base.model.signals.commands.AbstractCommandResponse<SudoRetrieveThingResponse>