public class ManagedDatabaseSecurityAlertPolicyInner
extends com.azure.core.management.ProxyResource
| Constructor and Description |
|---|
ManagedDatabaseSecurityAlertPolicyInner() |
| 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.
|
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.
|
void |
validate()
Validates the instance.
|
ManagedDatabaseSecurityAlertPolicyInner |
withDisabledAlerts(List<String> disabledAlerts)
Set the disabledAlerts property: Specifies an array of alerts that are disabled.
|
ManagedDatabaseSecurityAlertPolicyInner |
withEmailAccountAdmins(Boolean emailAccountAdmins)
Set the emailAccountAdmins property: Specifies that the alert is sent to the account administrators.
|
ManagedDatabaseSecurityAlertPolicyInner |
withEmailAddresses(List<String> emailAddresses)
Set the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent.
|
ManagedDatabaseSecurityAlertPolicyInner |
withRetentionDays(Integer retentionDays)
Set the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs.
|
ManagedDatabaseSecurityAlertPolicyInner |
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.
|
ManagedDatabaseSecurityAlertPolicyInner |
withStorageAccountAccessKey(String storageAccountAccessKey)
Set the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage
account.
|
ManagedDatabaseSecurityAlertPolicyInner |
withStorageEndpoint(String storageEndpoint)
Set the storageEndpoint property: Specifies the blob storage endpoint (e.g.
|
public ManagedDatabaseSecurityAlertPolicyInner()
public SecurityAlertPolicyState state()
public ManagedDatabaseSecurityAlertPolicyInner withState(SecurityAlertPolicyState state)
state - the state value to set.public List<String> disabledAlerts()
public ManagedDatabaseSecurityAlertPolicyInner withDisabledAlerts(List<String> disabledAlerts)
disabledAlerts - the disabledAlerts value to set.public List<String> emailAddresses()
public ManagedDatabaseSecurityAlertPolicyInner withEmailAddresses(List<String> emailAddresses)
emailAddresses - the emailAddresses value to set.public Boolean emailAccountAdmins()
public ManagedDatabaseSecurityAlertPolicyInner withEmailAccountAdmins(Boolean emailAccountAdmins)
emailAccountAdmins - the emailAccountAdmins value to set.public String storageEndpoint()
public ManagedDatabaseSecurityAlertPolicyInner withStorageEndpoint(String storageEndpoint)
storageEndpoint - the storageEndpoint value to set.public String storageAccountAccessKey()
public ManagedDatabaseSecurityAlertPolicyInner withStorageAccountAccessKey(String storageAccountAccessKey)
storageAccountAccessKey - the storageAccountAccessKey value to set.public Integer retentionDays()
public ManagedDatabaseSecurityAlertPolicyInner withRetentionDays(Integer retentionDays)
retentionDays - the retentionDays value to set.public OffsetDateTime creationTime()
public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.