Record Class KafkaClusterResponse.WriteCapabilities
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaClusterResponse.WriteCapabilities
- Enclosing class:
KafkaClusterResponse
-
Constructor Summary
ConstructorsConstructorDescriptionWriteCapabilities(boolean writesEnabled, boolean destructiveEnabled, Map<String, Boolean> actions) Creates an instance of aWriteCapabilitiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactions()Returns the value of theactionsrecord component.booleanReturns the value of thedestructiveEnabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.booleanReturns the value of thewritesEnabledrecord component.
-
Constructor Details
-
WriteCapabilities
public WriteCapabilities(boolean writesEnabled, boolean destructiveEnabled, Map<String, Boolean> actions) Creates an instance of aWriteCapabilitiesrecord class.- Parameters:
writesEnabled- the value for thewritesEnabledrecord componentdestructiveEnabled- the value for thedestructiveEnabledrecord componentactions- the value for theactionsrecord 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. -
writesEnabled
public boolean writesEnabled()Returns the value of thewritesEnabledrecord component.- Returns:
- the value of the
writesEnabledrecord component
-
destructiveEnabled
public boolean destructiveEnabled()Returns the value of thedestructiveEnabledrecord component.- Returns:
- the value of the
destructiveEnabledrecord component
-
actions
-