Record Class OpenSearchClientWrapper.OpenSearchStatus

java.lang.Object
java.lang.Record
ai.attackframework.tools.burp.utils.opensearch.OpenSearchClientWrapper.OpenSearchStatus
Enclosing class:
OpenSearchClientWrapper

public static record OpenSearchClientWrapper.OpenSearchStatus(boolean success, String distribution, String version, String message, String connectionStatus, String authenticationStatus, String trustStatus) extends Record
  • Constructor Details

    • OpenSearchStatus

      public OpenSearchStatus(boolean success, String distribution, String version, String message, String connectionStatus, String authenticationStatus, String trustStatus)
      Creates an instance of a OpenSearchStatus record class.
      Parameters:
      success - the value for the success record component
      distribution - the value for the distribution record component
      version - the value for the version record component
      message - the value for the message record component
      connectionStatus - the value for the connectionStatus record component
      authenticationStatus - the value for the authenticationStatus record component
      trustStatus - the value for the trustStatus record component
  • Method Details

    • formattedStatus

      public String formattedStatus()
      Returns a multi-line status summary suitable for the Config destination status panel.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • success

      public boolean success()
      Returns the value of the success record component.
      Returns:
      the value of the success record component
    • distribution

      public String distribution()
      Returns the value of the distribution record component.
      Returns:
      the value of the distribution record component
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • message

      public String message()
      Returns the value of the message record component.
      Returns:
      the value of the message record component
    • connectionStatus

      public String connectionStatus()
      Returns the value of the connectionStatus record component.
      Returns:
      the value of the connectionStatus record component
    • authenticationStatus

      public String authenticationStatus()
      Returns the value of the authenticationStatus record component.
      Returns:
      the value of the authenticationStatus record component
    • trustStatus

      public String trustStatus()
      Returns the value of the trustStatus record component.
      Returns:
      the value of the trustStatus record component