Class SecurityEventSqlInjectionAdditionalProperties

java.lang.Object
com.azure.resourcemanager.sql.models.SecurityEventSqlInjectionAdditionalProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<SecurityEventSqlInjectionAdditionalProperties>

public final class SecurityEventSqlInjectionAdditionalProperties extends Object implements com.azure.json.JsonSerializable<SecurityEventSqlInjectionAdditionalProperties>
The properties of a security event sql injection additional properties.
  • Constructor Details

    • SecurityEventSqlInjectionAdditionalProperties

      public SecurityEventSqlInjectionAdditionalProperties()
      Creates an instance of SecurityEventSqlInjectionAdditionalProperties class.
  • Method Details

    • threatId

      public String threatId()
      Get the threatId property: The threat ID.
      Returns:
      the threatId value.
    • statement

      public String statement()
      Get the statement property: The statement.
      Returns:
      the statement value.
    • statementHighlightOffset

      public Integer statementHighlightOffset()
      Get the statementHighlightOffset property: The statement highlight offset.
      Returns:
      the statementHighlightOffset value.
    • statementHighlightLength

      public Integer statementHighlightLength()
      Get the statementHighlightLength property: The statement highlight length.
      Returns:
      the statementHighlightLength value.
    • errorCode

      public Integer errorCode()
      Get the errorCode property: The sql error code.
      Returns:
      the errorCode value.
    • errorSeverity

      public Integer errorSeverity()
      Get the errorSeverity property: The sql error severity.
      Returns:
      the errorSeverity value.
    • errorMessage

      public String errorMessage()
      Get the errorMessage property: The sql error message.
      Returns:
      the errorMessage value.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<SecurityEventSqlInjectionAdditionalProperties>
      Throws:
      IOException
    • fromJson

      public static SecurityEventSqlInjectionAdditionalProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SecurityEventSqlInjectionAdditionalProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SecurityEventSqlInjectionAdditionalProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the SecurityEventSqlInjectionAdditionalProperties.