com.microsoft.azure.management.monitor.implementation.ActivityLogAlertResourceInner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-monitor Show documentation
Show all versions of azure-mgmt-monitor Show documentation
This package contains Microsoft Azure Monitor SDK. This package has been deprecated. A replacement package com.azure.resourcemanager:azure-resourcemanager-monitor is available as of 31-March-2022. We strongly encourage you to upgrade to continue receiving updates. See Migration Guide https://aka.ms/java-track2-migration-guide for guidance on upgrading. Refer to our deprecation policy https://azure.github.io/azure-sdk/policies_support.html for more details.
/**
* 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.
*/
@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.
*/
@JsonProperty(value = "properties.scopes", required = true)
private List 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.
*/
@JsonProperty(value = "properties.enabled")
private Boolean enabled;
/**
* 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.
*/
@JsonProperty(value = "properties.actions", required = true)
private ActivityLogAlertActionList actions;
/**
* 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.
*
* @return the scopes value
*/
public List 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.
*
* @param scopes the scopes value to set
* @return the ActivityLogAlertResourceInner object itself.
*/
public ActivityLogAlertResourceInner withScopes(List 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.
*
* @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.
*
* @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.
*
* @return the condition value
*/
public ActivityLogAlertAllOfCondition condition() {
return this.condition;
}
/**
* 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.
*
* @return the actions value
*/
public ActivityLogAlertActionList actions() {
return this.actions;
}
/**
* 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.
*
* @return the description value
*/
public String description() {
return this.description;
}
/**
* 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;
}
}