Module ch.rasc.jcentserverclient
Package ch.rasc.jcentserverclient.models
Record Class PublishRequest
java.lang.Object
java.lang.Record
ch.rasc.jcentserverclient.models.PublishRequest
public record PublishRequest(String channel, Object data, String b64data, Boolean skipHistory, Map<String,String> tags, String idempotencyKey, Boolean delta)
extends Record
Request for publishing data into a channel.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionb64data()Returns the value of theb64datarecord component.static PublishRequest.Builderbuilder()channel()Returns the value of thechannelrecord component.data()Returns the value of thedatarecord component.delta()Returns the value of thedeltarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theidempotencyKeyrecord component.Returns the value of theskipHistoryrecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PublishRequest
public PublishRequest(String channel, Object data, String b64data, Boolean skipHistory, Map<String, String> tags, String idempotencyKey, Boolean delta) Creates an instance of aPublishRequestrecord class.- Parameters:
channel- the value for thechannelrecord componentdata- the value for thedatarecord componentb64data- the value for theb64datarecord componentskipHistory- the value for theskipHistoryrecord componenttags- the value for thetagsrecord componentidempotencyKey- the value for theidempotencyKeyrecord componentdelta- the value for thedeltarecord component
-
-
Method Details
-
builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
channel
Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
b64data
Returns the value of theb64datarecord component.- Returns:
- the value of the
b64datarecord component
-
skipHistory
Returns the value of theskipHistoryrecord component.- Returns:
- the value of the
skipHistoryrecord component
-
tags
Returns the value of thetagsrecord component.- Returns:
- the value of the
tagsrecord component
-
idempotencyKey
Returns the value of theidempotencyKeyrecord component.- Returns:
- the value of the
idempotencyKeyrecord component
-
delta
Returns the value of thedeltarecord component.- Returns:
- the value of the
deltarecord component
-