Del via


SecurityEventProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.fluent.models.SecurityEventProperties

Implements

public final class SecurityEventProperties
implements JsonSerializable<SecurityEventProperties>

The properties of a security event.

Constructor Summary

Constructor Description
SecurityEventProperties()

Creates an instance of SecurityEventProperties class.

Method Summary

Modifier and Type Method and Description
String applicationName()

Get the applicationName property: The application used to execute the statement.

String clientIp()

Get the clientIp property: The IP address of the client who executed the statement.

String database()

Get the database property: The database name.

OffsetDateTime eventTime()

Get the eventTime property: The time when the security event occurred.

static SecurityEventProperties fromJson(JsonReader jsonReader)

Reads an instance of SecurityEventProperties from the JsonReader.

String principalName()

Get the principalName property: The principal user who executed the statement.

SecurityEventSqlInjectionAdditionalProperties securityEventSqlInjectionAdditionalProperties()

Get the securityEventSqlInjectionAdditionalProperties property: The sql injection additional properties, populated only if the type of the security event is sql injection.

SecurityEventType securityEventType()

Get the securityEventType property: The type of the security event.

String server()

Get the server property: The server name.

String subscription()

Get the subscription property: The subscription name.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

SecurityEventProperties

public SecurityEventProperties()

Creates an instance of SecurityEventProperties class.

Method Details

applicationName

public String applicationName()

Get the applicationName property: The application used to execute the statement.

Returns:

the applicationName value.

clientIp

public String clientIp()

Get the clientIp property: The IP address of the client who executed the statement.

Returns:

the clientIp value.

database

public String database()

Get the database property: The database name.

Returns:

the database value.

eventTime

public OffsetDateTime eventTime()

Get the eventTime property: The time when the security event occurred.

Returns:

the eventTime value.

fromJson

public static SecurityEventProperties fromJson(JsonReader jsonReader)

Reads an instance of SecurityEventProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SecurityEventProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the SecurityEventProperties.

principalName

public String principalName()

Get the principalName property: The principal user who executed the statement.

Returns:

the principalName value.

securityEventSqlInjectionAdditionalProperties

public SecurityEventSqlInjectionAdditionalProperties securityEventSqlInjectionAdditionalProperties()

Get the securityEventSqlInjectionAdditionalProperties property: The sql injection additional properties, populated only if the type of the security event is sql injection.

Returns:

the securityEventSqlInjectionAdditionalProperties value.

securityEventType

public SecurityEventType securityEventType()

Get the securityEventType property: The type of the security event.

Returns:

the securityEventType value.

server

public String server()

Get the server property: The server name.

Returns:

the server value.

subscription

public String subscription()

Get the subscription property: The subscription name.

Returns:

the subscription value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to