ManagedServerSecurityAlertPolicyInner Class

public final class ManagedServerSecurityAlertPolicyInner
extends ProxyResource

A managed server security alert policy.

Constructor Summary

Constructor Description
ManagedServerSecurityAlertPolicyInner()

Creates an instance of ManagedServerSecurityAlertPolicyInner class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime creationTime()

Get the creationTime property: Specifies the UTC creation time of the policy.

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.

static ManagedServerSecurityAlertPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of ManagedServerSecurityAlertPolicyInner 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.

Integer retentionDays()

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

SecurityAlertPolicyState state()

Get the state property: Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database.

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.

SystemData systemData()

Get the systemData property: SystemData of SecurityAlertPolicyResource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ManagedServerSecurityAlertPolicyInner withDisabledAlerts(List<String> disabledAlerts)

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

ManagedServerSecurityAlertPolicyInner withEmailAccountAdmins(Boolean emailAccountAdmins)

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

ManagedServerSecurityAlertPolicyInner withEmailAddresses(List<String> emailAddresses)

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

ManagedServerSecurityAlertPolicyInner withRetentionDays(Integer retentionDays)

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

ManagedServerSecurityAlertPolicyInner withState(SecurityAlertPolicyState state)

Set the state property: Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database.

ManagedServerSecurityAlertPolicyInner withStorageAccountAccessKey(String storageAccountAccessKey)

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

ManagedServerSecurityAlertPolicyInner 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

ManagedServerSecurityAlertPolicyInner

public ManagedServerSecurityAlertPolicyInner()

Creates an instance of ManagedServerSecurityAlertPolicyInner class.

Method Details

creationTime

public OffsetDateTime creationTime()

Get the creationTime property: Specifies the UTC creation time of the policy.

Returns:

the creationTime value.

disabledAlerts

public List disabledAlerts()

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

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 emailAddresses()

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

Returns:

the emailAddresses value.

fromJson

public static ManagedServerSecurityAlertPolicyInner fromJson(JsonReader jsonReader)

Reads an instance of ManagedServerSecurityAlertPolicyInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ManagedServerSecurityAlertPolicyInner 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:

ManagedServerSecurityAlertPolicyInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ManagedServerSecurityAlertPolicyInner.name()

Returns:

the name 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 SecurityAlertPolicyState state()

Get the state property: Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database.

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.

systemData

public SystemData systemData()

Get the systemData property: SystemData of SecurityAlertPolicyResource.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ManagedServerSecurityAlertPolicyInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ManagedServerSecurityAlertPolicyInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withDisabledAlerts

public ManagedServerSecurityAlertPolicyInner withDisabledAlerts(List disabledAlerts)

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

Parameters:

disabledAlerts - the disabledAlerts value to set.

Returns:

the ManagedServerSecurityAlertPolicyInner object itself.

withEmailAccountAdmins

public ManagedServerSecurityAlertPolicyInner 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 ManagedServerSecurityAlertPolicyInner object itself.

withEmailAddresses

public ManagedServerSecurityAlertPolicyInner withEmailAddresses(List 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 ManagedServerSecurityAlertPolicyInner object itself.

withRetentionDays

public ManagedServerSecurityAlertPolicyInner 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 ManagedServerSecurityAlertPolicyInner object itself.

withState

public ManagedServerSecurityAlertPolicyInner withState(SecurityAlertPolicyState state)

Set the state property: Specifies the state of the policy, whether it is enabled or disabled or a policy has not been applied yet on the specific database.

Parameters:

state - the state value to set.

Returns:

the ManagedServerSecurityAlertPolicyInner object itself.

withStorageAccountAccessKey

public ManagedServerSecurityAlertPolicyInner 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 ManagedServerSecurityAlertPolicyInner object itself.

withStorageEndpoint

public ManagedServerSecurityAlertPolicyInner 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 ManagedServerSecurityAlertPolicyInner object itself.

Applies to