Record Class KafkaClusterResponse.ProduceMessageRequest
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaClusterResponse.ProduceMessageRequest
- Enclosing class:
KafkaClusterResponse
-
Constructor Summary
ConstructorsConstructorDescriptionProduceMessageRequest(String topic, @Nullable Integer partition, @Nullable String key, String value, String format, List<KafkaClusterResponse.MessageHeaderInput> headers, boolean preview, @Nullable String confirmation) Creates an instance of aProduceMessageRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of theconfirmationrecord component.final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.headers()Returns the value of theheadersrecord component.@Nullable Stringkey()Returns the value of thekeyrecord component.@Nullable IntegerReturns the value of thepartitionrecord component.booleanpreview()Returns the value of thepreviewrecord component.topic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
ProduceMessageRequest
public ProduceMessageRequest(String topic, @Nullable Integer partition, @Nullable String key, String value, String format, List<KafkaClusterResponse.MessageHeaderInput> headers, boolean preview, @Nullable String confirmation) Creates an instance of aProduceMessageRequestrecord class.- Parameters:
topic- the value for thetopicrecord componentpartition- the value for thepartitionrecord componentkey- the value for thekeyrecord componentvalue- the value for thevaluerecord componentformat- the value for theformatrecord componentheaders- the value for theheadersrecord componentpreview- the value for thepreviewrecord componentconfirmation- the value for theconfirmationrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
topic
Returns the value of thetopicrecord component.- Returns:
- the value of the
topicrecord component
-
partition
Returns the value of thepartitionrecord component.- Returns:
- the value of the
partitionrecord component
-
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
headers
Returns the value of theheadersrecord component.- Returns:
- the value of the
headersrecord component
-
preview
public boolean preview()Returns the value of thepreviewrecord component.- Returns:
- the value of the
previewrecord component
-
confirmation
Returns the value of theconfirmationrecord component.- Returns:
- the value of the
confirmationrecord component
-