Class ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions
java.lang.Object
com.azure.resourcemanager.applicationinsights.models.ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions
public final class ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions
extends Object
Static definitions of the ProactiveDetection configuration rule (same values for all components).
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: The rule description.Get the displayName property: The rule name as it is displayed in UI.helpUrl()
Get the helpUrl property: URL which displays additional info about the proactive detection rule.Get the isEnabledByDefault property: A flag indicating whether the rule is enabled by default.isHidden()
Get the isHidden property: A flag indicating whether the rule is hidden (from the UI).Get the isInPreview property: A flag indicating whether the rule is in preview.name()
Get the name property: The rule name.Get the supportsEmailNotifications property: A flag indicating whether email notifications are supported for detections for this rule.void
validate()
Validates the instance.withDescription
(String description) Set the description property: The rule description.withDisplayName
(String displayName) Set the displayName property: The rule name as it is displayed in UI.withHelpUrl
(String helpUrl) Set the helpUrl property: URL which displays additional info about the proactive detection rule.withIsEnabledByDefault
(Boolean isEnabledByDefault) Set the isEnabledByDefault property: A flag indicating whether the rule is enabled by default.withIsHidden
(Boolean isHidden) Set the isHidden property: A flag indicating whether the rule is hidden (from the UI).withIsInPreview
(Boolean isInPreview) Set the isInPreview property: A flag indicating whether the rule is in preview.Set the name property: The rule name.withSupportsEmailNotifications
(Boolean supportsEmailNotifications) Set the supportsEmailNotifications property: A flag indicating whether email notifications are supported for detections for this rule.
-
Constructor Details
-
ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions
public ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions()
-
-
Method Details
-
name
Get the name property: The rule name.- Returns:
- the name value.
-
withName
public ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions withName(String name) Set the name property: The rule name.- Parameters:
name
- the name value to set.- Returns:
- the ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions object itself.
-
displayName
Get the displayName property: The rule name as it is displayed in UI.- Returns:
- the displayName value.
-
withDisplayName
public ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions withDisplayName(String displayName) Set the displayName property: The rule name as it is displayed in UI.- Parameters:
displayName
- the displayName value to set.- Returns:
- the ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions object itself.
-
description
Get the description property: The rule description.- Returns:
- the description value.
-
withDescription
public ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions withDescription(String description) Set the description property: The rule description.- Parameters:
description
- the description value to set.- Returns:
- the ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions object itself.
-
helpUrl
Get the helpUrl property: URL which displays additional info about the proactive detection rule.- Returns:
- the helpUrl value.
-
withHelpUrl
public ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions withHelpUrl(String helpUrl) Set the helpUrl property: URL which displays additional info about the proactive detection rule.- Parameters:
helpUrl
- the helpUrl value to set.- Returns:
- the ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions object itself.
-
isHidden
Get the isHidden property: A flag indicating whether the rule is hidden (from the UI).- Returns:
- the isHidden value.
-
withIsHidden
public ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions withIsHidden(Boolean isHidden) Set the isHidden property: A flag indicating whether the rule is hidden (from the UI).- Parameters:
isHidden
- the isHidden value to set.- Returns:
- the ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions object itself.
-
isEnabledByDefault
Get the isEnabledByDefault property: A flag indicating whether the rule is enabled by default.- Returns:
- the isEnabledByDefault value.
-
withIsEnabledByDefault
public ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions withIsEnabledByDefault(Boolean isEnabledByDefault) Set the isEnabledByDefault property: A flag indicating whether the rule is enabled by default.- Parameters:
isEnabledByDefault
- the isEnabledByDefault value to set.- Returns:
- the ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions object itself.
-
isInPreview
Get the isInPreview property: A flag indicating whether the rule is in preview.- Returns:
- the isInPreview value.
-
withIsInPreview
public ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions withIsInPreview(Boolean isInPreview) Set the isInPreview property: A flag indicating whether the rule is in preview.- Parameters:
isInPreview
- the isInPreview value to set.- Returns:
- the ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions object itself.
-
supportsEmailNotifications
Get the supportsEmailNotifications property: A flag indicating whether email notifications are supported for detections for this rule.- Returns:
- the supportsEmailNotifications value.
-
withSupportsEmailNotifications
public ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions withSupportsEmailNotifications(Boolean supportsEmailNotifications) Set the supportsEmailNotifications property: A flag indicating whether email notifications are supported for detections for this rule.- Parameters:
supportsEmailNotifications
- the supportsEmailNotifications value to set.- Returns:
- the ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-