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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionendTime()Get the endTime property: End time of the downtime.events()Get the events property: List of Possible Cause of downtime.static AbnormalTimePeriodfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AbnormalTimePeriod from the JsonReader.Get the solutions property: List of proposed solutions.Get the startTime property: Start time of the downtime.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEndTime(OffsetDateTime endTime) Set the endTime property: End time of the downtime.withEvents(List<DetectorAbnormalTimePeriod> events) Set the events property: List of Possible Cause of downtime.withSolutions(List<Solution> solutions) Set the solutions property: List of proposed solutions.withStartTime(OffsetDateTime startTime) Set the startTime property: Start time of the downtime.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AbnormalTimePeriod
public AbnormalTimePeriod()Creates an instance of AbnormalTimePeriod class.
-
-
Method Details
-
startTime
Get the startTime property: Start time of the downtime.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: Start time of the downtime.- Parameters:
startTime- the startTime value to set.- Returns:
- the AbnormalTimePeriod object itself.
-
endTime
Get the endTime property: End time of the downtime.- Returns:
- the endTime value.
-
withEndTime
Set the endTime property: End time of the downtime.- Parameters:
endTime- the endTime value to set.- Returns:
- the AbnormalTimePeriod object itself.
-
events
Get the events property: List of Possible Cause of downtime.- Returns:
- the events value.
-
withEvents
Set the events property: List of Possible Cause of downtime.- Parameters:
events- the events value to set.- Returns:
- the AbnormalTimePeriod object itself.
-
solutions
Get the solutions property: List of proposed solutions.- Returns:
- the solutions value.
-
withSolutions
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AbnormalTimePeriod>- Throws:
IOException
-
fromJson
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.
-