DetectorDefinition Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.fluent.models.DetectorDefinition

Implements

public final class DetectorDefinition
implements JsonSerializable<DetectorDefinition>

Class representing detector definition.

Constructor Summary

Constructor Description
DetectorDefinition()

Creates an instance of DetectorDefinition class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Description of the detector.

String displayName()

Get the displayName property: Display name of the detector.

static DetectorDefinition fromJson(JsonReader jsonReader)

Reads an instance of DetectorDefinition from the JsonReader.

Boolean isEnabled()

Get the isEnabled property: Flag representing whether detector is enabled or not.

Double rank()

Get the rank property: Detector Rank.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

DetectorDefinition

public DetectorDefinition()

Creates an instance of DetectorDefinition class.

Method Details

description

public String description()

Get the description property: Description of the detector.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: Display name of the detector.

Returns:

the displayName value.

fromJson

public static DetectorDefinition fromJson(JsonReader jsonReader)

Reads an instance of DetectorDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DetectorDefinition 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 DetectorDefinition.

isEnabled

public Boolean isEnabled()

Get the isEnabled property: Flag representing whether detector is enabled or not.

Returns:

the isEnabled value.

rank

public Double rank()

Get the rank property: Detector Rank.

Returns:

the rank value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to