public interface PayloadBuilder
Payload instances.| Modifier and Type | Method and Description |
|---|---|
Payload |
build()
Creates a new
Payload from the previously set values. |
PayloadBuilder |
withFields(org.eclipse.ditto.json.JsonFieldSelector fields)
Sets the given
fields to this builder. |
PayloadBuilder |
withFields(String fields)
Sets the given
fields to this builder. |
PayloadBuilder |
withRevision(long revision)
Sets the given
revision to this builder. |
PayloadBuilder |
withStatus(org.eclipse.ditto.model.base.common.HttpStatusCode status)
Sets the given
status to this builder. |
PayloadBuilder |
withStatus(int status)
Sets the given
status to this builder. |
PayloadBuilder |
withTimestamp(Instant timestamp)
Sets the given
timestamp to this builder. |
PayloadBuilder |
withValue(org.eclipse.ditto.json.JsonValue value)
Sets the given
value to this builder. |
PayloadBuilder withValue(org.eclipse.ditto.json.JsonValue value)
value to this builder. A previously set value is replaced.value - the value to set.PayloadBuilder withStatus(org.eclipse.ditto.model.base.common.HttpStatusCode status)
status to this builder. A previously set status is replaced.status - the status to set.PayloadBuilder withStatus(int status)
status to this builder. A previously set status is replaced.status - the status to set.PayloadBuilder withRevision(long revision)
revision to this builder. A previously set revision is replaced.revision - the revision to set.PayloadBuilder withTimestamp(@Nullable Instant timestamp)
timestamp to this builder. A previously set timestamp is replaced.timestamp - the timestamp to set.PayloadBuilder withFields(org.eclipse.ditto.json.JsonFieldSelector fields)
fields to this builder. Previously set fields are replaced.fields - the fields to set.PayloadBuilder withFields(String fields)
fields to this builder. Previously set fields are replaced.fields - the fields to set.Payload build()
Payload from the previously set values.Copyright © 2017–2019 Eclipse Foundation. All rights reserved.