Class ApplicationInsightsComponentProactiveDetectionConfigurationInner
- java.lang.Object
-
- com.azure.resourcemanager.applicationinsights.fluent.models.ApplicationInsightsComponentProactiveDetectionConfigurationInner
-
public final class ApplicationInsightsComponentProactiveDetectionConfigurationInner extends Object
Properties that define a ProactiveDetection configuration.
-
-
Constructor Summary
Constructors Constructor Description ApplicationInsightsComponentProactiveDetectionConfigurationInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
customEmails()
Get the customEmails property: Custom email addresses for this rule notifications.Boolean
enabled()
Get the enabled property: A flag that indicates whether this rule is enabled by the user.String
lastUpdatedTime()
Get the lastUpdatedTime property: The last time this rule was updated.String
name()
Get the name property: The rule name.ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions
ruleDefinitions()
Get the ruleDefinitions property: Static definitions of the ProactiveDetection configuration rule (same values for all components).Boolean
sendEmailsToSubscriptionOwners()
Get the sendEmailsToSubscriptionOwners property: A flag that indicated whether notifications on this rule should be sent to subscription owners.void
validate()
Validates the instance.ApplicationInsightsComponentProactiveDetectionConfigurationInner
withCustomEmails(List<String> customEmails)
Set the customEmails property: Custom email addresses for this rule notifications.ApplicationInsightsComponentProactiveDetectionConfigurationInner
withEnabled(Boolean enabled)
Set the enabled property: A flag that indicates whether this rule is enabled by the user.ApplicationInsightsComponentProactiveDetectionConfigurationInner
withLastUpdatedTime(String lastUpdatedTime)
Set the lastUpdatedTime property: The last time this rule was updated.ApplicationInsightsComponentProactiveDetectionConfigurationInner
withName(String name)
Set the name property: The rule name.ApplicationInsightsComponentProactiveDetectionConfigurationInner
withRuleDefinitions(ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions ruleDefinitions)
Set the ruleDefinitions property: Static definitions of the ProactiveDetection configuration rule (same values for all components).ApplicationInsightsComponentProactiveDetectionConfigurationInner
withSendEmailsToSubscriptionOwners(Boolean sendEmailsToSubscriptionOwners)
Set the sendEmailsToSubscriptionOwners property: A flag that indicated whether notifications on this rule should be sent to subscription owners.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The rule name.- Returns:
- the name value.
-
withName
public ApplicationInsightsComponentProactiveDetectionConfigurationInner withName(String name)
Set the name property: The rule name.- Parameters:
name
- the name value to set.- Returns:
- the ApplicationInsightsComponentProactiveDetectionConfigurationInner object itself.
-
enabled
public Boolean 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
public Boolean 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
public List<String> 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
public String 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
public ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions 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.
-
-