Class SqlPoolSecurityAlertPolicyInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.synapse.fluent.models.SqlPoolSecurityAlertPolicyInner
-
public final class SqlPoolSecurityAlertPolicyInner extends com.azure.core.management.ProxyResource
A Sql pool security alert policy.
-
-
Constructor Summary
Constructors Constructor Description SqlPoolSecurityAlertPolicyInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.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 Sql pool.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.SqlPoolSecurityAlertPolicyInner
withDisabledAlerts(List<String> disabledAlerts)
Set the disabledAlerts property: Specifies an array of alerts that are disabled.SqlPoolSecurityAlertPolicyInner
withEmailAccountAdmins(Boolean emailAccountAdmins)
Set the emailAccountAdmins property: Specifies that the alert is sent to the account administrators.SqlPoolSecurityAlertPolicyInner
withEmailAddresses(List<String> emailAddresses)
Set the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent.SqlPoolSecurityAlertPolicyInner
withRetentionDays(Integer retentionDays)
Set the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs.SqlPoolSecurityAlertPolicyInner
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 Sql pool.SqlPoolSecurityAlertPolicyInner
withStorageAccountAccessKey(String storageAccountAccessKey)
Set the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage account.SqlPoolSecurityAlertPolicyInner
withStorageEndpoint(String storageEndpoint)
Set the storageEndpoint property: Specifies the blob storage endpoint (e.g.
-
-
-
Method Detail
-
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 Sql pool.- Returns:
- the state value.
-
withState
public SqlPoolSecurityAlertPolicyInner 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 Sql pool.- Parameters:
state
- the state value to set.- Returns:
- the SqlPoolSecurityAlertPolicyInner object itself.
-
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, Data_Exfiltration, Unsafe_Action.- Returns:
- the disabledAlerts value.
-
withDisabledAlerts
public SqlPoolSecurityAlertPolicyInner 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, Data_Exfiltration, Unsafe_Action.- Parameters:
disabledAlerts
- the disabledAlerts value to set.- Returns:
- the SqlPoolSecurityAlertPolicyInner object itself.
-
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.
-
withEmailAddresses
public SqlPoolSecurityAlertPolicyInner 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 SqlPoolSecurityAlertPolicyInner object itself.
-
emailAccountAdmins
public Boolean emailAccountAdmins()
Get the emailAccountAdmins property: Specifies that the alert is sent to the account administrators.- Returns:
- the emailAccountAdmins value.
-
withEmailAccountAdmins
public SqlPoolSecurityAlertPolicyInner 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 SqlPoolSecurityAlertPolicyInner object itself.
-
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.
-
withStorageEndpoint
public SqlPoolSecurityAlertPolicyInner 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 SqlPoolSecurityAlertPolicyInner object itself.
-
storageAccountAccessKey
public String storageAccountAccessKey()
Get the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage account.- Returns:
- the storageAccountAccessKey value.
-
withStorageAccountAccessKey
public SqlPoolSecurityAlertPolicyInner 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 SqlPoolSecurityAlertPolicyInner object itself.
-
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.
-
withRetentionDays
public SqlPoolSecurityAlertPolicyInner 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 SqlPoolSecurityAlertPolicyInner object itself.
-
creationTime
public OffsetDateTime creationTime()
Get the creationTime property: Specifies the UTC creation time of the policy.- Returns:
- the creationTime value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-