Class ContentFilterDetailedResults

java.lang.Object
com.azure.ai.openai.models.ContentFilterDetailedResults
All Implemented Interfaces:
com.azure.json.JsonSerializable<ContentFilterDetailedResults>

public final class ContentFilterDetailedResults extends Object implements com.azure.json.JsonSerializable<ContentFilterDetailedResults>
Represents a structured collection of result details for content filtering.
  • Method Details

    • isFiltered

      public boolean isFiltered()
      Get the filtered property: A value indicating whether or not the content has been filtered.
      Returns:
      the filtered value.
    • getDetails

      public List<ContentFilterBlocklistIdResult> getDetails()
      Get the details property: The collection of detailed blocklist result information.
      Returns:
      the details value.
    • toJson

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

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