Class ThingAcknowledgementFactory
- java.lang.Object
-
- org.eclipse.ditto.things.model.signals.acks.ThingAcknowledgementFactory
-
@Immutable public final class ThingAcknowledgementFactory extends java.lang.ObjectThis class provides factory methods for getting instances ofAcknowledgementin the context of Thing entity.- Since:
- 1.1.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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)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 Detail
-
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:
java.lang.NullPointerException- if any argument isnull.java.lang.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:
java.lang.NullPointerException- if any argument isnull.java.lang.IllegalArgumentException- ifthingIdis empty.- Since:
- 2.0.0
-
-