Class ValidationError

java.lang.Object
com.azure.resourcemanager.securityinsights.models.ValidationError

public final class ValidationError extends Object
Describes an error encountered in the file during validation.
  • Constructor Details

    • ValidationError

      public ValidationError()
  • Method Details

    • recordIndex

      public Integer recordIndex()
      Get the recordIndex property: The number of the record that has the error.
      Returns:
      the recordIndex value.
    • withRecordIndex

      public ValidationError withRecordIndex(Integer recordIndex)
      Set the recordIndex property: The number of the record that has the error.
      Parameters:
      recordIndex - the recordIndex value to set.
      Returns:
      the ValidationError object itself.
    • errorMessages

      public List<String> errorMessages()
      Get the errorMessages property: A list of descriptions of the error.
      Returns:
      the errorMessages value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.