Class ThingAcknowledgementFactory
java.lang.Object
org.eclipse.ditto.things.model.signals.acks.ThingAcknowledgementFactory
This class provides factory methods for getting instances of
Acknowledgement in the context of Thing entity.- Since:
- 1.1.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.ditto.base.model.signals.acks.AcknowledgementnewAcknowledgement(org.eclipse.ditto.base.model.acks.AcknowledgementLabel label, ThingId thingId, org.eclipse.ditto.base.model.common.HttpStatus httpStatus, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Returns a newAcknowledgementinstance.static org.eclipse.ditto.base.model.signals.acks.AcknowledgementnewAcknowledgement(org.eclipse.ditto.base.model.acks.AcknowledgementLabel label, ThingId thingId, org.eclipse.ditto.base.model.common.HttpStatus httpStatus, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders, org.eclipse.ditto.json.JsonValue payload) Returns a newAcknowledgementinstance.
-
Method Details
-
newAcknowledgement
public static org.eclipse.ditto.base.model.signals.acks.Acknowledgement newAcknowledgement(org.eclipse.ditto.base.model.acks.AcknowledgementLabel label, ThingId thingId, org.eclipse.ditto.base.model.common.HttpStatus httpStatus, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders, @Nullable org.eclipse.ditto.json.JsonValue payload) Returns a newAcknowledgementinstance.- Parameters:
label- the label of the new Acknowledgement.thingId- the ID of the affected Thing being acknowledged.httpStatus- the HTTP status of the Acknowledgement.dittoHeaders- the DittoHeaders.payload- the optional payload of the Acknowledgement.- Returns:
- the instance.
- Throws:
NullPointerException- if any argument isnull.IllegalArgumentException- ifthingIdis empty.- Since:
- 2.0.0
-
newAcknowledgement
public static org.eclipse.ditto.base.model.signals.acks.Acknowledgement newAcknowledgement(org.eclipse.ditto.base.model.acks.AcknowledgementLabel label, ThingId thingId, org.eclipse.ditto.base.model.common.HttpStatus httpStatus, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders) Returns a newAcknowledgementinstance.- Parameters:
label- the label of the new Acknowledgement.thingId- the ID of the affected Thing being acknowledged.httpStatus- the HTTP status of the Acknowledgement.dittoHeaders- the DittoHeaders.- Returns:
- the instance.
- Throws:
NullPointerException- if any argument isnull.IllegalArgumentException- ifthingIdis empty.- Since:
- 2.0.0
-