Class AllowedUrl

java.lang.Object
ch.examzone.sebbb.model.AllowedUrl

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-10-25T12:34:17.476436974Z[Etc/UTC]", comments="Generator version: 7.10.0") public class AllowedUrl extends Object
`domain` allows a whole domain incl. subdomains, `prefix` a URL and everything below it, `exact` one URL.
  • Field Details

  • Constructor Details

    • AllowedUrl

      public AllowedUrl()
  • Method Details

    • type

    • getType

      @Nonnull public AllowedUrl.TypeEnum getType()
      Get type
      Returns:
      type
    • setType

      public void setType(@Nonnull AllowedUrl.TypeEnum type)
    • value

      public AllowedUrl value(@Nonnull String value)
    • getValue

      @Nonnull public String getValue()
      Get value
      Returns:
      value
    • setValue

      public void setValue(@Nonnull String value)
    • 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
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to AllowedUrl
    • fromJson

      public static AllowedUrl fromJson(String jsonString) throws IOException
      Create an instance of AllowedUrl given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of AllowedUrl
      Throws:
      IOException - if the JSON string is invalid with respect to AllowedUrl
    • toJson

      public String toJson()
      Convert an instance of AllowedUrl to an JSON string
      Returns:
      JSON string