Record Class NodesRemovalPrevalidation.Result

java.lang.Object
java.lang.Record
org.elasticsearch.action.admin.cluster.node.shutdown.NodesRemovalPrevalidation.Result
Record Components:
reason - is nullable only for BWC between 8.6 and 8.7. In a fully-upgraded 8.7, it should always be non-null.
All Implemented Interfaces:
Writeable, ToXContent, ToXContentObject
Enclosing class:
NodesRemovalPrevalidation

public static record NodesRemovalPrevalidation.Result(boolean isSafe, NodesRemovalPrevalidation.Reason reason, String message) extends Record implements ToXContentObject, Writeable
The prevalidation result of a node.
  • Constructor Details

    • Result

      public Result(boolean isSafe, @Nullable NodesRemovalPrevalidation.Reason reason, String message)
      Creates an instance of a Result record class.
      Parameters:
      isSafe - the value for the isSafe record component
      reason - the value for the reason record component
      message - the value for the message record component
  • Method Details