Partager via


SecurityEventInner Class

public final class SecurityEventInner
extends ProxyResource

A security event.

Constructor Summary

Constructor Description
SecurityEventInner()

Creates an instance of SecurityEventInner 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 SecurityEventInner fromJson(JsonReader jsonReader)

Reads an instance of SecurityEventInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

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)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

SecurityEventInner

public SecurityEventInner()

Creates an instance of SecurityEventInner 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 SecurityEventInner fromJson(JsonReader jsonReader)

Reads an instance of SecurityEventInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

SecurityEventInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

SecurityEventInner.name()

Returns:

the name value.

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)

Overrides:

SecurityEventInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

SecurityEventInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to