AbnormalTimePeriod Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.AbnormalTimePeriod

Implements

public final class AbnormalTimePeriod
implements JsonSerializable<AbnormalTimePeriod>

Class representing Abnormal Time Period identified in diagnosis.

Constructor Summary

Constructor Description
AbnormalTimePeriod()

Creates an instance of AbnormalTimePeriod class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endTime()

Get the endTime property: End time of the downtime.

List<DetectorAbnormalTimePeriod> events()

Get the events property: List of Possible Cause of downtime.

static AbnormalTimePeriod fromJson(JsonReader jsonReader)

Reads an instance of AbnormalTimePeriod from the JsonReader.

List<Solution> solutions()

Get the solutions property: List of proposed solutions.

OffsetDateTime startTime()

Get the startTime property: Start time of the downtime.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AbnormalTimePeriod withEndTime(OffsetDateTime endTime)

Set the endTime property: End time of the downtime.

AbnormalTimePeriod withEvents(List<DetectorAbnormalTimePeriod> events)

Set the events property: List of Possible Cause of downtime.

AbnormalTimePeriod withSolutions(List<Solution> solutions)

Set the solutions property: List of proposed solutions.

AbnormalTimePeriod withStartTime(OffsetDateTime startTime)

Set the startTime property: Start time of the downtime.

Methods inherited from java.lang.Object

Constructor Details

AbnormalTimePeriod

public AbnormalTimePeriod()

Creates an instance of AbnormalTimePeriod class.

Method Details

endTime

public OffsetDateTime endTime()

Get the endTime property: End time of the downtime.

Returns:

the endTime value.

events

public List events()

Get the events property: List of Possible Cause of downtime.

Returns:

the events value.

fromJson

public static AbnormalTimePeriod fromJson(JsonReader jsonReader)

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.

solutions

public List solutions()

Get the solutions property: List of proposed solutions.

Returns:

the solutions value.

startTime

public OffsetDateTime startTime()

Get the startTime property: Start time of the downtime.

Returns:

the startTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

withEvents

public AbnormalTimePeriod withEvents(List events)

Set the events property: List of Possible Cause of downtime.

Parameters:

events - the events value to set.

Returns:

the AbnormalTimePeriod object itself.

withSolutions

public AbnormalTimePeriod withSolutions(List solutions)

Set the solutions property: List of proposed solutions.

Parameters:

solutions - the solutions value to set.

Returns:

the AbnormalTimePeriod object itself.

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.

Applies to