Record Class KafkaClusterResponse.CreateTopicRequest
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaClusterResponse.CreateTopicRequest
- Enclosing class:
KafkaClusterResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfig()Returns the value of theconfigrecord component.@Nullable StringReturns the value of theconfirmationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thepartitionsrecord component.booleanpreview()Returns the value of thepreviewrecord component.shortReturns the value of thereplicationFactorrecord component.topic()Returns the value of thetopicrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreateTopicRequest
public CreateTopicRequest(String topic, int partitions, short replicationFactor, Map<String, String> config, boolean preview, @Nullable String confirmation) Creates an instance of aCreateTopicRequestrecord class.- Parameters:
topic- the value for thetopicrecord componentpartitions- the value for thepartitionsrecord componentreplicationFactor- the value for thereplicationFactorrecord componentconfig- the value for theconfigrecord 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
-
partitions
public int partitions()Returns the value of thepartitionsrecord component.- Returns:
- the value of the
partitionsrecord component
-
replicationFactor
public short replicationFactor()Returns the value of thereplicationFactorrecord component.- Returns:
- the value of the
replicationFactorrecord component
-
config
-
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
-