MonitorServiceDetails Class

  • java.lang.Object
    • com.azure.resourcemanager.alertsmanagement.models.MonitorServiceDetails

Implements

public final class MonitorServiceDetails
implements JsonSerializable<MonitorServiceDetails>

Details of a monitor service.

Constructor Summary

Constructor Description
MonitorServiceDetails()

Creates an instance of MonitorServiceDetails class.

Method Summary

Modifier and Type Method and Description
String displayName()

Get the displayName property: Monitor service display name.

static MonitorServiceDetails fromJson(JsonReader jsonReader)

Reads an instance of MonitorServiceDetails from the JsonReader.

String name()

Get the name property: Monitor service name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MonitorServiceDetails withDisplayName(String displayName)

Set the displayName property: Monitor service display name.

MonitorServiceDetails withName(String name)

Set the name property: Monitor service name.

Methods inherited from java.lang.Object

Constructor Details

MonitorServiceDetails

public MonitorServiceDetails()

Creates an instance of MonitorServiceDetails class.

Method Details

displayName

public String displayName()

Get the displayName property: Monitor service display name.

Returns:

the displayName value.

fromJson

public static MonitorServiceDetails fromJson(JsonReader jsonReader)

Reads an instance of MonitorServiceDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

Get the name property: Monitor service name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDisplayName

public MonitorServiceDetails withDisplayName(String displayName)

Set the displayName property: Monitor service display name.

Parameters:

displayName - the displayName value to set.

Returns:

the MonitorServiceDetails object itself.

withName

public MonitorServiceDetails withName(String name)

Set the name property: Monitor service name.

Parameters:

name - the name value to set.

Returns:

the MonitorServiceDetails object itself.

Applies to