CustomAlertRule Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.CustomAlertRule

public class CustomAlertRule

A custom alert rule.

Constructor Summary

Constructor Description
CustomAlertRule()

Creates an instance of CustomAlertRule class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: The description of the custom alert.

String displayName()

Get the displayName property: The display name of the custom alert.

boolean isEnabled()

Get the isEnabled property: Status of the custom alert.

void validate()

Validates the instance.

CustomAlertRule withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Methods inherited from java.lang.Object

Constructor Details

CustomAlertRule

public CustomAlertRule()

Creates an instance of CustomAlertRule class.

Method Details

description

public String description()

Get the description property: The description of the custom alert.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: The display name of the custom alert.

Returns:

the displayName value.

isEnabled

public boolean isEnabled()

Get the isEnabled property: Status of the custom alert.

Returns:

the isEnabled value.

validate

public void validate()

Validates the instance.

withIsEnabled

public CustomAlertRule withIsEnabled(boolean isEnabled)

Set the isEnabled property: Status of the custom alert.

Parameters:

isEnabled - the isEnabled value to set.

Returns:

the CustomAlertRule object itself.

Applies to