java.lang.Object
com.google.genai.gaos.models.interactions.Allowlist

public class Allowlist extends Object
Allowlist

List of allowed domains and their configurations. Set to `"disabled"` to block all network egress.

  • Method Details

    • of

      public static Allowlist of(List<AllowlistEntry> value)
    • of

      public static Allowlist of(Disabled value)
    • arrayOfAllowlistEntry

      public Optional<List<AllowlistEntry>> arrayOfAllowlistEntry()
      Returns an Optional containing the value if it is of type List<AllowlistEntry>, otherwise returns an empty Optional.
      Returns:
      an Optional containing the List<AllowlistEntry> value, or empty if not of this type
    • disabled

      public Optional<Disabled> disabled()
      Returns an Optional containing the value if it is of type Disabled, otherwise returns an empty Optional.
      Returns:
      an Optional containing the Disabled value, or empty if not of this type
    • asJson

      public Optional<com.fasterxml.jackson.databind.JsonNode> asJson()
      Returns an Optional containing the value as a JsonNode. This accessor returns the raw JSON when the value doesn't match any of the defined union types.
      Returns:
      an Optional containing the JsonNode value, or empty if value matched a known type
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object