Class SecurityEventProperties
java.lang.Object
com.azure.resourcemanager.sql.fluent.models.SecurityEventProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SecurityEventProperties>
public final class SecurityEventProperties
extends Object
implements com.azure.json.JsonSerializable<SecurityEventProperties>
The properties of a security event.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SecurityEventProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the applicationName property: The application used to execute the statement.clientIp()Get the clientIp property: The IP address of the client who executed the statement.database()Get the database property: The database name.Get the eventTime property: The time when the security event occurred.static SecurityEventPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SecurityEventProperties from the JsonReader.Get the principalName property: The principal user who executed the statement.Get the securityEventSqlInjectionAdditionalProperties property: The sql injection additional properties, populated only if the type of the security event is sql injection.Get the securityEventType property: The type of the security event.server()Get the server property: The server name.Get the subscription property: The subscription name.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SecurityEventProperties
public SecurityEventProperties()Creates an instance of SecurityEventProperties class.
-
-
Method Details
-
eventTime
Get the eventTime property: The time when the security event occurred.- Returns:
- the eventTime value.
-
securityEventType
Get the securityEventType property: The type of the security event.- Returns:
- the securityEventType value.
-
subscription
Get the subscription property: The subscription name.- Returns:
- the subscription value.
-
server
Get the server property: The server name.- Returns:
- the server value.
-
database
Get the database property: The database name.- Returns:
- the database value.
-
clientIp
Get the clientIp property: The IP address of the client who executed the statement.- Returns:
- the clientIp value.
-
applicationName
Get the applicationName property: The application used to execute the statement.- Returns:
- the applicationName value.
-
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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SecurityEventProperties>- Throws:
IOException
-
fromJson
public static SecurityEventProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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.
-