Class AbnormalTimePeriod
- java.lang.Object
-
- com.azure.resourcemanager.appservice.models.AbnormalTimePeriod
-
public final class AbnormalTimePeriod extends Object
Class representing Abnormal Time Period identified in diagnosis.
-
-
Constructor Summary
Constructors Constructor Description AbnormalTimePeriod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTimeendTime()Get the endTime property: End time of the downtime.List<DetectorAbnormalTimePeriod>events()Get the events property: List of Possible Cause of downtime.List<Solution>solutions()Get the solutions property: List of proposed solutions.OffsetDateTimestartTime()Get the startTime property: Start time of the downtime.voidvalidate()Validates the instance.AbnormalTimePeriodwithEndTime(OffsetDateTime endTime)Set the endTime property: End time of the downtime.AbnormalTimePeriodwithEvents(List<DetectorAbnormalTimePeriod> events)Set the events property: List of Possible Cause of downtime.AbnormalTimePeriodwithSolutions(List<Solution> solutions)Set the solutions property: List of proposed solutions.AbnormalTimePeriodwithStartTime(OffsetDateTime startTime)Set the startTime property: Start time of the downtime.
-
-
-
Method Detail
-
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.
-
-