ServerSecurityAlertPolicyInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. mysql. fluent. models. ServerSecurityAlertPolicyInner
- com.
- com.
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 disabled |
| Boolean |
emailAccountAdmins()
Get the email |
| List<String> |
emailAddresses()
Get the email |
| Integer |
retentionDays()
Get the retention |
|
Server |
state()
Get the state property: Specifies the state of the policy, whether it is enabled or disabled. |
| String |
storageAccountAccessKey()
Get the storage |
| String |
storageEndpoint()
Get the storage |
| void |
validate()
Validates the instance. |
|
Server |
withDisabledAlerts(List<String> disabledAlerts)
Set the disabled |
|
Server |
withEmailAccountAdmins(Boolean emailAccountAdmins)
Set the email |
|
Server |
withEmailAddresses(List<String> emailAddresses)
Set the email |
|
Server |
withRetentionDays(Integer retentionDays)
Set the retention |
|
Server |
withState(ServerSecurityAlertPolicyState state)
Set the state property: Specifies the state of the policy, whether it is enabled or disabled. |
|
Server |
withStorageAccountAccessKey(String storageAccountAccessKey)
Set the storage |
|
Server |
withStorageEndpoint(String storageEndpoint)
Set the storage |
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:
emailAccountAdmins
public Boolean emailAccountAdmins()
Get the emailAccountAdmins property: Specifies that the alert is sent to the account administrators.
Returns:
emailAddresses
public List<String> emailAddresses()
Get the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent.
Returns:
retentionDays
public Integer retentionDays()
Get the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs.
Returns:
state
public ServerSecurityAlertPolicyState state()
Get the state property: Specifies the state of the policy, whether it is enabled or disabled.
Returns:
storageAccountAccessKey
public String storageAccountAccessKey()
Get the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage account.
Returns:
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:
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:
Returns:
withEmailAccountAdmins
public ServerSecurityAlertPolicyInner withEmailAccountAdmins(Boolean emailAccountAdmins)
Set the emailAccountAdmins property: Specifies that the alert is sent to the account administrators.
Parameters:
Returns:
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:
Returns:
withRetentionDays
public ServerSecurityAlertPolicyInner withRetentionDays(Integer retentionDays)
Set the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs.
Parameters:
Returns:
withState
public ServerSecurityAlertPolicyInner withState(ServerSecurityAlertPolicyState state)
Set the state property: Specifies the state of the policy, whether it is enabled or disabled.
Parameters:
Returns:
withStorageAccountAccessKey
public ServerSecurityAlertPolicyInner withStorageAccountAccessKey(String storageAccountAccessKey)
Set the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage account.
Parameters:
Returns:
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:
Returns: