TenantActivityLogAlertResourceInner Class

public final class TenantActivityLogAlertResourceInner
extends Resource

A Tenant Activity Log Alert rule resource.

Constructor Summary

Constructor Description
TenantActivityLogAlertResourceInner()

Creates an instance of TenantActivityLogAlertResourceInner class.

Method Summary

Modifier and Type Method and Description
ActionList actions()

Get the actions property: The actions that will activate when the condition is met.

AlertRuleAllOfCondition condition()

Get the condition property: The condition that will cause this alert to activate.

String description()

Get the description property: A description of this Activity Log Alert rule.

Boolean enabled()

Get the enabled property: Indicates whether this Activity Log Alert rule is enabled.

static TenantActivityLogAlertResourceInner fromJson(JsonReader jsonReader)

Reads an instance of TenantActivityLogAlertResourceInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

List<String> scopes()

Get the scopes property: A list of resource IDs that will be used as prefixes.

String tenantScope()

Get the tenantScope property: The tenant GUID.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

TenantActivityLogAlertResourceInner withActions(ActionList actions)

Set the actions property: The actions that will activate when the condition is met.

TenantActivityLogAlertResourceInner withCondition(AlertRuleAllOfCondition condition)

Set the condition property: The condition that will cause this alert to activate.

TenantActivityLogAlertResourceInner withDescription(String description)

Set the description property: A description of this Activity Log Alert rule.

TenantActivityLogAlertResourceInner withEnabled(Boolean enabled)

Set the enabled property: Indicates whether this Activity Log Alert rule is enabled.

TenantActivityLogAlertResourceInner withLocation(String location)
TenantActivityLogAlertResourceInner withScopes(List<String> scopes)

Set the scopes property: A list of resource IDs that will be used as prefixes.

TenantActivityLogAlertResourceInner withTags(Map<String,String> tags)
TenantActivityLogAlertResourceInner withTenantScope(String tenantScope)

Set the tenantScope property: The tenant GUID.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

TenantActivityLogAlertResourceInner

public TenantActivityLogAlertResourceInner()

Creates an instance of TenantActivityLogAlertResourceInner class.

Method Details

actions

public ActionList actions()

Get the actions property: The actions that will activate when the condition is met.

Returns:

the actions value.

condition

public AlertRuleAllOfCondition condition()

Get the condition property: The condition that will cause this alert to activate.

Returns:

the condition value.

description

public String description()

Get the description property: A description of this Activity Log Alert rule.

Returns:

the description value.

enabled

public Boolean enabled()

Get the enabled property: Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.

Returns:

the enabled value.

fromJson

public static TenantActivityLogAlertResourceInner fromJson(JsonReader jsonReader)

Reads an instance of TenantActivityLogAlertResourceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of TenantActivityLogAlertResourceInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

TenantActivityLogAlertResourceInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

TenantActivityLogAlertResourceInner.name()

Returns:

the name value.

scopes

public List<String> scopes()

Get the scopes property: A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.

Returns:

the scopes value.

tenantScope

public String tenantScope()

Get the tenantScope property: The tenant GUID. Must be provided for tenant-level and management group events rules.

Returns:

the tenantScope value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

TenantActivityLogAlertResourceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

TenantActivityLogAlertResourceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withActions

public TenantActivityLogAlertResourceInner withActions(ActionList actions)

Set the actions property: The actions that will activate when the condition is met.

Parameters:

actions - the actions value to set.

Returns:

the TenantActivityLogAlertResourceInner object itself.

withCondition

public TenantActivityLogAlertResourceInner withCondition(AlertRuleAllOfCondition condition)

Set the condition property: The condition that will cause this alert to activate.

Parameters:

condition - the condition value to set.

Returns:

the TenantActivityLogAlertResourceInner object itself.

withDescription

public TenantActivityLogAlertResourceInner withDescription(String description)

Set the description property: A description of this Activity Log Alert rule.

Parameters:

description - the description value to set.

Returns:

the TenantActivityLogAlertResourceInner object itself.

withEnabled

public TenantActivityLogAlertResourceInner withEnabled(Boolean enabled)

Set the enabled property: Indicates whether this Activity Log Alert rule is enabled. If an Activity Log Alert rule is not enabled, then none of its actions will be activated.

Parameters:

enabled - the enabled value to set.

Returns:

the TenantActivityLogAlertResourceInner object itself.

withLocation

public TenantActivityLogAlertResourceInner withLocation(String location)

Overrides:

TenantActivityLogAlertResourceInner.withLocation(String location)

Parameters:

location

withScopes

public TenantActivityLogAlertResourceInner withScopes(List<String> scopes)

Set the scopes property: A list of resource IDs that will be used as prefixes. The alert will only apply to Activity Log events with resource IDs that fall under one of these prefixes. This list must include at least one item.

Parameters:

scopes - the scopes value to set.

Returns:

the TenantActivityLogAlertResourceInner object itself.

withTags

public TenantActivityLogAlertResourceInner withTags(Map<String,String> tags)

Overrides:

TenantActivityLogAlertResourceInner.withTags(Map<String,String> tags)

Parameters:

tags

withTenantScope

public TenantActivityLogAlertResourceInner withTenantScope(String tenantScope)

Set the tenantScope property: The tenant GUID. Must be provided for tenant-level and management group events rules.

Parameters:

tenantScope - the tenantScope value to set.

Returns:

the TenantActivityLogAlertResourceInner object itself.

Applies to