Class AbnormalTimePeriod

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

public final class AbnormalTimePeriod extends Object implements com.azure.json.JsonSerializable<AbnormalTimePeriod>
Class representing Abnormal Time Period identified in diagnosis.
  • Constructor Details

    • AbnormalTimePeriod

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

    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: Start time of the downtime.
      Returns:
      the startTime value.
    • withStartTime

      public AbnormalTimePeriod withStartTime(OffsetDateTime startTime)
      Set the startTime property: Start time of the downtime.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the AbnormalTimePeriod object itself.
    • endTime

      public OffsetDateTime endTime()
      Get the endTime property: End time of the downtime.
      Returns:
      the endTime value.
    • withEndTime

      public AbnormalTimePeriod withEndTime(OffsetDateTime endTime)
      Set the endTime property: End time of the downtime.
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the AbnormalTimePeriod object itself.
    • events

      public List<DetectorAbnormalTimePeriod> events()
      Get the events property: List of Possible Cause of downtime.
      Returns:
      the events value.
    • withEvents

      public AbnormalTimePeriod withEvents(List<DetectorAbnormalTimePeriod> events)
      Set the events property: List of Possible Cause of downtime.
      Parameters:
      events - the events value to set.
      Returns:
      the AbnormalTimePeriod object itself.
    • solutions

      public List<Solution> solutions()
      Get the solutions property: List of proposed solutions.
      Returns:
      the solutions value.
    • withSolutions

      public AbnormalTimePeriod withSolutions(List<Solution> solutions)
      Set the solutions property: List of proposed solutions.
      Parameters:
      solutions - the solutions value to set.
      Returns:
      the AbnormalTimePeriod 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<AbnormalTimePeriod>
      Throws:
      IOException
    • fromJson

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