ServerSecurityAlertPolicyInner Class

public final class ServerSecurityAlertPolicyInner
extends ProxyResource

A server security alert policy.

Constructor Summary

Constructor Description
ServerSecurityAlertPolicyInner()

Method Summary

Modifier and Type Method and Description
List<String> disabledAlerts()

Get the disabledAlerts property: Specifies an array of alerts that are disabled.

Boolean emailAccountAdmins()

Get the emailAccountAdmins property: Specifies that the alert is sent to the account administrators.

List<String> emailAddresses()

Get the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent.

Integer retentionDays()

Get the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs.

ServerSecurityAlertPolicyState state()

Get the state property: Specifies the state of the policy, whether it is enabled or disabled.

String storageAccountAccessKey()

Get the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage account.

String storageEndpoint()

Get the storageEndpoint property: Specifies the blob storage endpoint (e.g.

void validate()

Validates the instance.

ServerSecurityAlertPolicyInner withDisabledAlerts(List<String> disabledAlerts)

Set the disabledAlerts property: Specifies an array of alerts that are disabled.

ServerSecurityAlertPolicyInner withEmailAccountAdmins(Boolean emailAccountAdmins)

Set the emailAccountAdmins property: Specifies that the alert is sent to the account administrators.

ServerSecurityAlertPolicyInner withEmailAddresses(List<String> emailAddresses)

Set the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent.

ServerSecurityAlertPolicyInner withRetentionDays(Integer retentionDays)

Set the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs.

ServerSecurityAlertPolicyInner withState(ServerSecurityAlertPolicyState state)

Set the state property: Specifies the state of the policy, whether it is enabled or disabled.

ServerSecurityAlertPolicyInner withStorageAccountAccessKey(String storageAccountAccessKey)

Set the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage account.

ServerSecurityAlertPolicyInner withStorageEndpoint(String storageEndpoint)

Set the storageEndpoint property: Specifies the blob storage endpoint (e.g.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ServerSecurityAlertPolicyInner

public ServerSecurityAlertPolicyInner()

Method Details

disabledAlerts

public List<String> disabledAlerts()

Get the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly.

Returns:

the disabledAlerts value.

emailAccountAdmins

public Boolean emailAccountAdmins()

Get the emailAccountAdmins property: Specifies that the alert is sent to the account administrators.

Returns:

the emailAccountAdmins value.

emailAddresses

public List<String> emailAddresses()

Get the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent.

Returns:

the emailAddresses value.

retentionDays

public Integer retentionDays()

Get the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs.

Returns:

the retentionDays value.

state

public ServerSecurityAlertPolicyState state()

Get the state property: Specifies the state of the policy, whether it is enabled or disabled.

Returns:

the state value.

storageAccountAccessKey

public String storageAccountAccessKey()

Get the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage account.

Returns:

the storageAccountAccessKey value.

storageEndpoint

public String storageEndpoint()

Get the storageEndpoint property: Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.

Returns:

the storageEndpoint value.

validate

public void validate()

Validates the instance.

withDisabledAlerts

public ServerSecurityAlertPolicyInner withDisabledAlerts(List<String> disabledAlerts)

Set the disabledAlerts property: Specifies an array of alerts that are disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability, Access_Anomaly.

Parameters:

disabledAlerts - the disabledAlerts value to set.

Returns:

the ServerSecurityAlertPolicyInner object itself.

withEmailAccountAdmins

public ServerSecurityAlertPolicyInner withEmailAccountAdmins(Boolean emailAccountAdmins)

Set the emailAccountAdmins property: Specifies that the alert is sent to the account administrators.

Parameters:

emailAccountAdmins - the emailAccountAdmins value to set.

Returns:

the ServerSecurityAlertPolicyInner object itself.

withEmailAddresses

public ServerSecurityAlertPolicyInner withEmailAddresses(List<String> emailAddresses)

Set the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent.

Parameters:

emailAddresses - the emailAddresses value to set.

Returns:

the ServerSecurityAlertPolicyInner object itself.

withRetentionDays

public ServerSecurityAlertPolicyInner withRetentionDays(Integer retentionDays)

Set the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs.

Parameters:

retentionDays - the retentionDays value to set.

Returns:

the ServerSecurityAlertPolicyInner object itself.

withState

public ServerSecurityAlertPolicyInner withState(ServerSecurityAlertPolicyState state)

Set the state property: Specifies the state of the policy, whether it is enabled or disabled.

Parameters:

state - the state value to set.

Returns:

the ServerSecurityAlertPolicyInner object itself.

withStorageAccountAccessKey

public ServerSecurityAlertPolicyInner withStorageAccountAccessKey(String storageAccountAccessKey)

Set the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage account.

Parameters:

storageAccountAccessKey - the storageAccountAccessKey value to set.

Returns:

the ServerSecurityAlertPolicyInner object itself.

withStorageEndpoint

public ServerSecurityAlertPolicyInner withStorageEndpoint(String storageEndpoint)

Set the storageEndpoint property: Specifies the blob storage endpoint (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold all Threat Detection audit logs.

Parameters:

storageEndpoint - the storageEndpoint value to set.

Returns:

the ServerSecurityAlertPolicyInner object itself.

Applies to