Record Class KafkaClusterResponse.RenderedPayload
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaClusterResponse.RenderedPayload
- Enclosing class:
KafkaClusterResponse
-
Constructor Summary
ConstructorsConstructorDescriptionRenderedPayload(String format, @Nullable String text, @Nullable String base64, int size, boolean truncated) Creates an instance of aRenderedPayloadrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringbase64()Returns the value of thebase64record 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.intsize()Returns the value of thesizerecord component.@Nullable Stringtext()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thetruncatedrecord component.
-
Constructor Details
-
RenderedPayload
public RenderedPayload(String format, @Nullable String text, @Nullable String base64, int size, boolean truncated) Creates an instance of aRenderedPayloadrecord class.- Parameters:
format- the value for theformatrecord componenttext- the value for thetextrecord componentbase64- the value for thebase64record componentsize- the value for thesizerecord componenttruncated- the value for thetruncatedrecord 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. -
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
base64
Returns the value of thebase64record component.- Returns:
- the value of the
base64record component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
truncated
public boolean truncated()Returns the value of thetruncatedrecord component.- Returns:
- the value of the
truncatedrecord component
-