Class ValidationError
java.lang.Object
com.azure.resourcemanager.securityinsights.models.ValidationError
Describes an error encountered in the file during validation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the errorMessages property: A list of descriptions of the error.Get the recordIndex property: The number of the record that has the error.void
validate()
Validates the instance.withRecordIndex
(Integer recordIndex) Set the recordIndex property: The number of the record that has the error.
-
Constructor Details
-
ValidationError
public ValidationError()
-
-
Method Details
-
recordIndex
Get the recordIndex property: The number of the record that has the error.- Returns:
- the recordIndex value.
-
withRecordIndex
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
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.
-