Class StatusCodesBasedTrigger

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

public final class StatusCodesBasedTrigger extends Object implements com.azure.json.JsonSerializable<StatusCodesBasedTrigger>
Trigger based on status code.
  • Constructor Details

    • StatusCodesBasedTrigger

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

    • status

      public Integer status()
      Get the status property: HTTP status code.
      Returns:
      the status value.
    • withStatus

      public StatusCodesBasedTrigger withStatus(Integer status)
      Set the status property: HTTP status code.
      Parameters:
      status - the status value to set.
      Returns:
      the StatusCodesBasedTrigger object itself.
    • subStatus

      public Integer subStatus()
      Get the subStatus property: Request Sub Status.
      Returns:
      the subStatus value.
    • withSubStatus

      public StatusCodesBasedTrigger withSubStatus(Integer subStatus)
      Set the subStatus property: Request Sub Status.
      Parameters:
      subStatus - the subStatus value to set.
      Returns:
      the StatusCodesBasedTrigger object itself.
    • win32Status

      public Integer win32Status()
      Get the win32Status property: Win32 error code.
      Returns:
      the win32Status value.
    • withWin32Status

      public StatusCodesBasedTrigger withWin32Status(Integer win32Status)
      Set the win32Status property: Win32 error code.
      Parameters:
      win32Status - the win32Status value to set.
      Returns:
      the StatusCodesBasedTrigger object itself.
    • count

      public Integer count()
      Get the count property: Request Count.
      Returns:
      the count value.
    • withCount

      public StatusCodesBasedTrigger withCount(Integer count)
      Set the count property: Request Count.
      Parameters:
      count - the count value to set.
      Returns:
      the StatusCodesBasedTrigger object itself.
    • timeInterval

      public String timeInterval()
      Get the timeInterval property: Time interval.
      Returns:
      the timeInterval value.
    • withTimeInterval

      public StatusCodesBasedTrigger withTimeInterval(String timeInterval)
      Set the timeInterval property: Time interval.
      Parameters:
      timeInterval - the timeInterval value to set.
      Returns:
      the StatusCodesBasedTrigger object itself.
    • path

      public String path()
      Get the path property: Request Path.
      Returns:
      the path value.
    • withPath

      public StatusCodesBasedTrigger withPath(String path)
      Set the path property: Request Path.
      Parameters:
      path - the path value to set.
      Returns:
      the StatusCodesBasedTrigger object itself.
    • 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<StatusCodesBasedTrigger>
      Throws:
      IOException
    • fromJson

      public static StatusCodesBasedTrigger fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of StatusCodesBasedTrigger from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of StatusCodesBasedTrigger 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 StatusCodesBasedTrigger.