Record Class KafkaClusterResponse.ActionResult
java.lang.Object
java.lang.Record
io.micronaut.controlpanel.panels.kafka.KafkaClusterResponse.ActionResult
- Enclosing class:
KafkaClusterResponse
-
Constructor Summary
ConstructorsConstructorDescriptionActionResult(boolean applied, String action, String target, String impact, List<KafkaClusterResponse.ActionError> errors) Creates an instance of aActionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.booleanapplied()Returns the value of theappliedrecord component.final booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.final inthashCode()Returns a hash code value for this object.impact()Returns the value of theimpactrecord component.target()Returns the value of thetargetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActionResult
public ActionResult(boolean applied, String action, String target, String impact, List<KafkaClusterResponse.ActionError> errors) Creates an instance of aActionResultrecord class.- Parameters:
applied- the value for theappliedrecord componentaction- the value for theactionrecord componenttarget- the value for thetargetrecord componentimpact- the value for theimpactrecord componenterrors- the value for theerrorsrecord 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. -
applied
public boolean applied()Returns the value of theappliedrecord component.- Returns:
- the value of the
appliedrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
target
Returns the value of thetargetrecord component.- Returns:
- the value of the
targetrecord component
-
impact
Returns the value of theimpactrecord component.- Returns:
- the value of the
impactrecord component
-
errors
Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-