Class ApplicationInsightsComponentProactiveDetectionConfigurationInner
java.lang.Object
com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentProactiveDetectionConfigurationInner
Properties that define a ProactiveDetection configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the customEmails property: Custom email addresses for this rule notifications.enabled()
Get the enabled property: A flag that indicates whether this rule is enabled by the user.Get the lastUpdatedTime property: The last time this rule was updated.name()
Get the name property: The rule name.Get the ruleDefinitions property: Static definitions of the ProactiveDetection configuration rule (same values for all components).Get the sendEmailsToSubscriptionOwners property: A flag that indicated whether notifications on this rule should be sent to subscription owners.void
validate()
Validates the instance.withCustomEmails
(List<String> customEmails) Set the customEmails property: Custom email addresses for this rule notifications.withEnabled
(Boolean enabled) Set the enabled property: A flag that indicates whether this rule is enabled by the user.withLastUpdatedTime
(String lastUpdatedTime) Set the lastUpdatedTime property: The last time this rule was updated.Set the name property: The rule name.withRuleDefinitions
(ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions ruleDefinitions) Set the ruleDefinitions property: Static definitions of the ProactiveDetection configuration rule (same values for all components).withSendEmailsToSubscriptionOwners
(Boolean sendEmailsToSubscriptionOwners) Set the sendEmailsToSubscriptionOwners property: A flag that indicated whether notifications on this rule should be sent to subscription owners.
-
Constructor Details
-
ApplicationInsightsComponentProactiveDetectionConfigurationInner
public ApplicationInsightsComponentProactiveDetectionConfigurationInner()
-
-
Method Details
-
name
Get the name property: The rule name.- Returns:
- the name value.
-
withName
Set the name property: The rule name.- Parameters:
name
- the name value to set.- Returns:
- the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.
-
enabled
Get the enabled property: A flag that indicates whether this rule is enabled by the user.- Returns:
- the enabled value.
-
withEnabled
public ApplicationInsightsComponentProactiveDetectionConfigurationInner withEnabled(Boolean enabled) Set the enabled property: A flag that indicates whether this rule is enabled by the user.- Parameters:
enabled
- the enabled value to set.- Returns:
- the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.
-
sendEmailsToSubscriptionOwners
Get the sendEmailsToSubscriptionOwners property: A flag that indicated whether notifications on this rule should be sent to subscription owners.- Returns:
- the sendEmailsToSubscriptionOwners value.
-
withSendEmailsToSubscriptionOwners
public ApplicationInsightsComponentProactiveDetectionConfigurationInner withSendEmailsToSubscriptionOwners(Boolean sendEmailsToSubscriptionOwners) Set the sendEmailsToSubscriptionOwners property: A flag that indicated whether notifications on this rule should be sent to subscription owners.- Parameters:
sendEmailsToSubscriptionOwners
- the sendEmailsToSubscriptionOwners value to set.- Returns:
- the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.
-
customEmails
Get the customEmails property: Custom email addresses for this rule notifications.- Returns:
- the customEmails value.
-
withCustomEmails
public ApplicationInsightsComponentProactiveDetectionConfigurationInner withCustomEmails(List<String> customEmails) Set the customEmails property: Custom email addresses for this rule notifications.- Parameters:
customEmails
- the customEmails value to set.- Returns:
- the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.
-
lastUpdatedTime
Get the lastUpdatedTime property: The last time this rule was updated.- Returns:
- the lastUpdatedTime value.
-
withLastUpdatedTime
public ApplicationInsightsComponentProactiveDetectionConfigurationInner withLastUpdatedTime(String lastUpdatedTime) Set the lastUpdatedTime property: The last time this rule was updated.- Parameters:
lastUpdatedTime
- the lastUpdatedTime value to set.- Returns:
- the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.
-
ruleDefinitions
Get the ruleDefinitions property: Static definitions of the ProactiveDetection configuration rule (same values for all components).- Returns:
- the ruleDefinitions value.
-
withRuleDefinitions
public ApplicationInsightsComponentProactiveDetectionConfigurationInner withRuleDefinitions(ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions ruleDefinitions) Set the ruleDefinitions property: Static definitions of the ProactiveDetection configuration rule (same values for all components).- Parameters:
ruleDefinitions
- the ruleDefinitions value to set.- Returns:
- the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-