Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.monitor.implementation; import java.util.List; import com.microsoft.azure.management.monitor.ActivityLogAlertAllOfCondition; import com.microsoft.azure.management.monitor.ActivityLogAlertActionList; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.Resource;
An activity log alert resource.
/** * An activity log alert resource. */
@JsonFlatten public class ActivityLogAlertResourceInner extends Resource {
A list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item.
/** * A list of resourceIds that will be used as prefixes. The alert will only * apply to activityLogs with resourceIds that fall under one of these * prefixes. This list must include at least one item. */
@JsonProperty(value = "properties.scopes", required = true) private List<String> scopes;
Indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated.
/** * Indicates whether this activity log alert is enabled. If an activity log * alert is not enabled, then none of its actions will be activated. */
@JsonProperty(value = "properties.enabled") private Boolean enabled;
The condition that will cause this alert to activate.
/** * The condition that will cause this alert to activate. */
@JsonProperty(value = "properties.condition", required = true) private ActivityLogAlertAllOfCondition condition;
The actions that will activate when the condition is met.
/** * The actions that will activate when the condition is met. */
@JsonProperty(value = "properties.actions", required = true) private ActivityLogAlertActionList actions;
A description of this activity log alert.
/** * A description of this activity log alert. */
@JsonProperty(value = "properties.description") private String description;
Get a list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item.
Returns:the scopes value
/** * Get a list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item. * * @return the scopes value */
public List<String> scopes() { return this.scopes; }
Set a list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item.
Params:
  • scopes – the scopes value to set
Returns:the ActivityLogAlertResourceInner object itself.
/** * Set a list of resourceIds that will be used as prefixes. The alert will only apply to activityLogs with resourceIds that fall under one of these prefixes. This list must include at least one item. * * @param scopes the scopes value to set * @return the ActivityLogAlertResourceInner object itself. */
public ActivityLogAlertResourceInner withScopes(List<String> scopes) { this.scopes = scopes; return this; }
Get indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated.
Returns:the enabled value
/** * Get indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated. * * @return the enabled value */
public Boolean enabled() { return this.enabled; }
Set indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated.
Params:
  • enabled – the enabled value to set
Returns:the ActivityLogAlertResourceInner object itself.
/** * Set indicates whether this activity log alert is enabled. If an activity log alert is not enabled, then none of its actions will be activated. * * @param enabled the enabled value to set * @return the ActivityLogAlertResourceInner object itself. */
public ActivityLogAlertResourceInner withEnabled(Boolean enabled) { this.enabled = enabled; return this; }
Get the condition that will cause this alert to activate.
Returns:the condition value
/** * Get the condition that will cause this alert to activate. * * @return the condition value */
public ActivityLogAlertAllOfCondition condition() { return this.condition; }
Set the condition that will cause this alert to activate.
Params:
  • condition – the condition value to set
Returns:the ActivityLogAlertResourceInner object itself.
/** * Set the condition that will cause this alert to activate. * * @param condition the condition value to set * @return the ActivityLogAlertResourceInner object itself. */
public ActivityLogAlertResourceInner withCondition(ActivityLogAlertAllOfCondition condition) { this.condition = condition; return this; }
Get the actions that will activate when the condition is met.
Returns:the actions value
/** * Get the actions that will activate when the condition is met. * * @return the actions value */
public ActivityLogAlertActionList actions() { return this.actions; }
Set the actions that will activate when the condition is met.
Params:
  • actions – the actions value to set
Returns:the ActivityLogAlertResourceInner object itself.
/** * Set the actions that will activate when the condition is met. * * @param actions the actions value to set * @return the ActivityLogAlertResourceInner object itself. */
public ActivityLogAlertResourceInner withActions(ActivityLogAlertActionList actions) { this.actions = actions; return this; }
Get a description of this activity log alert.
Returns:the description value
/** * Get a description of this activity log alert. * * @return the description value */
public String description() { return this.description; }
Set a description of this activity log alert.
Params:
  • description – the description value to set
Returns:the ActivityLogAlertResourceInner object itself.
/** * Set a description of this activity log alert. * * @param description the description value to set * @return the ActivityLogAlertResourceInner object itself. */
public ActivityLogAlertResourceInner withDescription(String description) { this.description = description; return this; } }