Record Class KafkaClusterResponse.AppConsumerActionRequest
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaClusterResponse.AppConsumerActionRequest
- Enclosing class:
KafkaClusterResponse
@Introspected
public static record KafkaClusterResponse.AppConsumerActionRequest(String consumerId, List<KafkaClusterResponse.TopicPartitionInput> partitions, boolean preview, @Nullable String confirmation)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAppConsumerActionRequest(String consumerId, List<KafkaClusterResponse.TopicPartitionInput> partitions, boolean preview, @Nullable String confirmation) Creates an instance of aAppConsumerActionRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of theconfirmationrecord component.Returns the value of theconsumerIdrecord 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 thepartitionsrecord component.booleanpreview()Returns the value of thepreviewrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AppConsumerActionRequest
public AppConsumerActionRequest(String consumerId, List<KafkaClusterResponse.TopicPartitionInput> partitions, boolean preview, @Nullable String confirmation) Creates an instance of aAppConsumerActionRequestrecord class.- Parameters:
consumerId- the value for theconsumerIdrecord componentpartitions- the value for thepartitionsrecord 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. -
consumerId
Returns the value of theconsumerIdrecord component.- Returns:
- the value of the
consumerIdrecord component
-
partitions
Returns the value of thepartitionsrecord component.- Returns:
- the value of the
partitionsrecord 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
-