public interface Payload
extends org.eclipse.ditto.model.base.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>
Payload of an Adaptable. The Ditto Protocol defines that a Payload must
always have a path property.| Modifier and Type | Interface and Description |
|---|---|
static class |
Payload.JsonFields
Json Fields of the Jsonifiable Payload.
|
org.eclipse.ditto.model.base.json.Jsonifiable.WithFieldSelector, org.eclipse.ditto.model.base.json.Jsonifiable.WithFieldSelectorAndPredicate<T>, org.eclipse.ditto.model.base.json.Jsonifiable.WithPointer<J extends org.eclipse.ditto.json.JsonValue>, org.eclipse.ditto.model.base.json.Jsonifiable.WithPredicate<J extends org.eclipse.ditto.json.JsonValue,T>| Modifier and Type | Method and Description |
|---|---|
Optional<org.eclipse.ditto.json.JsonFieldSelector> |
getFields()
Returns the
fields of this Payload if present. |
MessagePath |
getPath()
Returns the
path of this Payload. |
Optional<Long> |
getRevision()
Returns the
revision of this Payload if present. |
Optional<org.eclipse.ditto.model.base.common.HttpStatusCode> |
getStatus()
Returns the
status of this Payload if present. |
Optional<Instant> |
getTimestamp()
Returns the
timestamp of this Payload if present. |
Optional<org.eclipse.ditto.json.JsonValue> |
getValue()
Returns the
value of this Payload if present. |
static PayloadBuilder |
newBuilder()
Returns a mutable builder to create immutable
Payload without a path. |
static PayloadBuilder |
newBuilder(org.eclipse.ditto.json.JsonPointer path)
Returns a mutable builder to create immutable
Payload instances for a given path. |
static PayloadBuilder newBuilder(org.eclipse.ditto.json.JsonPointer path)
Payload instances for a given path.path - the path.NullPointerException - if path is null.static PayloadBuilder newBuilder()
Payload without a path.MessagePath getPath()
path of this Payload.Optional<org.eclipse.ditto.json.JsonValue> getValue()
value of this Payload if present.Optional<org.eclipse.ditto.model.base.common.HttpStatusCode> getStatus()
status of this Payload if present.Optional<Long> getRevision()
revision of this Payload if present.Optional<Instant> getTimestamp()
timestamp of this Payload if present.Optional<org.eclipse.ditto.json.JsonFieldSelector> getFields()
fields of this Payload if present.Copyright © 2017–2019 Eclipse Foundation. All rights reserved.