ManagedServerSecurityAlertPolicyInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. sql. fluent. models. ManagedServerSecurityAlertPolicyInner
- com.
- com.
public final class ManagedServerSecurityAlertPolicyInner
extends ProxyResource
A managed server security alert policy.
Constructor Summary
Constructor | Description |
---|---|
ManagedServerSecurityAlertPolicyInner() |
Creates an instance of Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
creationTime()
Get the creation |
List<String> |
disabledAlerts()
Get the disabled |
Boolean |
emailAccountAdmins()
Get the email |
List<String> |
emailAddresses()
Get the email |
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
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 retention |
Security |
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 storage |
String |
storageEndpoint()
Get the storage |
System |
systemData()
Get the system |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Managed |
withDisabledAlerts(List<String> disabledAlerts)
Set the disabled |
Managed |
withEmailAccountAdmins(Boolean emailAccountAdmins)
Set the email |
Managed |
withEmailAddresses(List<String> emailAddresses)
Set the email |
Managed |
withRetentionDays(Integer retentionDays)
Set the retention |
Managed |
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. |
Managed |
withStorageAccountAccessKey(String storageAccountAccessKey)
Set the storage |
Managed |
withStorageEndpoint(String storageEndpoint)
Set the storage |
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:
disabledAlerts
public List
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:
emailAccountAdmins
public Boolean emailAccountAdmins()
Get the emailAccountAdmins property: Specifies that the alert is sent to the account administrators.
Returns:
emailAddresses
public List
Get the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent.
Returns:
fromJson
public static ManagedServerSecurityAlertPolicyInner fromJson(JsonReader jsonReader)
Reads an instance of ManagedServerSecurityAlertPolicyInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
ManagedServerSecurityAlertPolicyInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
ManagedServerSecurityAlertPolicyInner.name()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 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:
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:
systemData
public SystemData systemData()
Get the systemData property: SystemData of SecurityAlertPolicyResource.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ManagedServerSecurityAlertPolicyInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
ManagedServerSecurityAlertPolicyInner.type()Returns:
validate
public void validate()
Validates the instance.
withDisabledAlerts
public ManagedServerSecurityAlertPolicyInner withDisabledAlerts(List
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:
Returns:
withEmailAccountAdmins
public ManagedServerSecurityAlertPolicyInner withEmailAccountAdmins(Boolean emailAccountAdmins)
Set the emailAccountAdmins property: Specifies that the alert is sent to the account administrators.
Parameters:
Returns:
withEmailAddresses
public ManagedServerSecurityAlertPolicyInner withEmailAddresses(List
Set the emailAddresses property: Specifies an array of e-mail addresses to which the alert is sent.
Parameters:
Returns:
withRetentionDays
public ManagedServerSecurityAlertPolicyInner withRetentionDays(Integer retentionDays)
Set the retentionDays property: Specifies the number of days to keep in the Threat Detection audit logs.
Parameters:
Returns:
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:
Returns:
withStorageAccountAccessKey
public ManagedServerSecurityAlertPolicyInner withStorageAccountAccessKey(String storageAccountAccessKey)
Set the storageAccountAccessKey property: Specifies the identifier key of the Threat Detection audit storage account.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java