public class DatabaseSecurityAlertPolicyInner
extends com.azure.core.management.ProxyResource
| Constructor and Description |
|---|
DatabaseSecurityAlertPolicyInner() |
| Modifier and Type | Method and Description |
|---|---|
String |
disabledAlerts()
Get the disabledAlerts property: Specifies the semicolon-separated list of alerts that are disabled, or empty
string to disable no alerts.
|
SecurityAlertPolicyEmailAccountAdmins |
emailAccountAdmins()
Get the emailAccountAdmins property: Specifies that the alert is sent to the account administrators.
|
String |
emailAddresses()
Get the emailAddresses property: Specifies the semicolon-separated list of e-mail addresses to which the alert is
sent.
|
String |
kind()
Get the kind property: Resource kind.
|
String |
location()
Get the location property: The geo-location where the resource lives.
|
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.
|
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.
|
SecurityAlertPolicyUseServerDefault |
useServerDefault()
Get the useServerDefault property: Specifies whether to use the default server policy.
|
void |
validate()
Validates the instance.
|
DatabaseSecurityAlertPolicyInner |
withDisabledAlerts(String disabledAlerts)
Set the disabledAlerts property: Specifies the semicolon-separated list of alerts that are disabled, or empty
string to disable no alerts.
|
DatabaseSecurityAlertPolicyInner |
withEmailAccountAdmins(SecurityAlertPolicyEmailAccountAdmins emailAccountAdmins)
Set the emailAccountAdmins property: Specifies that the alert is sent to the account administrators.
|
DatabaseSecurityAlertPolicyInner |
withEmailAddresses(String emailAddresses)
Set the emailAddresses property: Specifies the semicolon-separated list of e-mail addresses to which the alert is
sent.
|
DatabaseSecurityAlertPolicyInner |
withLocation(String location)
Set the location property: The geo-location where the resource lives.
|
DatabaseSecurityAlertPolicyInner |
withRetentionDays(Integer retentionDays)
Set the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs.
|
DatabaseSecurityAlertPolicyInner |
withState(SecurityAlertPolicyState state)
Set the state property: Specifies the state of the policy.
|
DatabaseSecurityAlertPolicyInner |
withStorageAccountAccessKey(String storageAccountAccessKey)
Set the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage
account.
|
DatabaseSecurityAlertPolicyInner |
withStorageEndpoint(String storageEndpoint)
Set the storageEndpoint property: Specifies the blob storage endpoint (e.g.
|
DatabaseSecurityAlertPolicyInner |
withUseServerDefault(SecurityAlertPolicyUseServerDefault useServerDefault)
Set the useServerDefault property: Specifies whether to use the default server policy.
|
public String location()
public DatabaseSecurityAlertPolicyInner withLocation(String location)
location - the location value to set.public String kind()
public SecurityAlertPolicyState state()
public DatabaseSecurityAlertPolicyInner withState(SecurityAlertPolicyState state)
state - the state value to set.public String disabledAlerts()
public DatabaseSecurityAlertPolicyInner withDisabledAlerts(String disabledAlerts)
disabledAlerts - the disabledAlerts value to set.public String emailAddresses()
public DatabaseSecurityAlertPolicyInner withEmailAddresses(String emailAddresses)
emailAddresses - the emailAddresses value to set.public SecurityAlertPolicyEmailAccountAdmins emailAccountAdmins()
public DatabaseSecurityAlertPolicyInner withEmailAccountAdmins(SecurityAlertPolicyEmailAccountAdmins emailAccountAdmins)
emailAccountAdmins - the emailAccountAdmins value to set.public String storageEndpoint()
public DatabaseSecurityAlertPolicyInner withStorageEndpoint(String storageEndpoint)
storageEndpoint - the storageEndpoint value to set.public String storageAccountAccessKey()
public DatabaseSecurityAlertPolicyInner withStorageAccountAccessKey(String storageAccountAccessKey)
storageAccountAccessKey - the storageAccountAccessKey value to set.public Integer retentionDays()
public DatabaseSecurityAlertPolicyInner withRetentionDays(Integer retentionDays)
retentionDays - the retentionDays value to set.public SecurityAlertPolicyUseServerDefault useServerDefault()
public DatabaseSecurityAlertPolicyInner withUseServerDefault(SecurityAlertPolicyUseServerDefault useServerDefault)
useServerDefault - the useServerDefault value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.