DefenderForStorageSettingProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.security.models.DefenderForStorageSettingProperties

Implements

public final class DefenderForStorageSettingProperties
implements JsonSerializable<DefenderForStorageSettingProperties>

Defender for Storage resource properties.

Constructor Summary

Constructor Description
DefenderForStorageSettingProperties()

Creates an instance of DefenderForStorageSettingProperties class.

Method Summary

Modifier and Type Method and Description
static DefenderForStorageSettingProperties fromJson(JsonReader jsonReader)

Reads an instance of DefenderForStorageSettingProperties from the JsonReader.

Boolean isEnabled()

Get the isEnabled property: Indicates whether Defender for Storage is enabled on this storage account.

MalwareScanningProperties malwareScanning()

Get the malwareScanning property: Properties of Malware Scanning.

Boolean overrideSubscriptionLevelSettings()

Get the overrideSubscriptionLevelSettings property: Indicates whether the settings defined for this storage account should override the settings defined for the subscription.

SensitiveDataDiscoveryProperties sensitiveDataDiscovery()

Get the sensitiveDataDiscovery property: Properties of Sensitive Data Discovery.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DefenderForStorageSettingProperties withIsEnabled(Boolean isEnabled)

Set the isEnabled property: Indicates whether Defender for Storage is enabled on this storage account.

DefenderForStorageSettingProperties withMalwareScanning(MalwareScanningProperties malwareScanning)

Set the malwareScanning property: Properties of Malware Scanning.

DefenderForStorageSettingProperties withOverrideSubscriptionLevelSettings(Boolean overrideSubscriptionLevelSettings)

Set the overrideSubscriptionLevelSettings property: Indicates whether the settings defined for this storage account should override the settings defined for the subscription.

DefenderForStorageSettingProperties withSensitiveDataDiscovery(SensitiveDataDiscoveryProperties sensitiveDataDiscovery)

Set the sensitiveDataDiscovery property: Properties of Sensitive Data Discovery.

Methods inherited from java.lang.Object

Constructor Details

DefenderForStorageSettingProperties

public DefenderForStorageSettingProperties()

Creates an instance of DefenderForStorageSettingProperties class.

Method Details

fromJson

public static DefenderForStorageSettingProperties fromJson(JsonReader jsonReader)

Reads an instance of DefenderForStorageSettingProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DefenderForStorageSettingProperties 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 DefenderForStorageSettingProperties.

isEnabled

public Boolean isEnabled()

Get the isEnabled property: Indicates whether Defender for Storage is enabled on this storage account.

Returns:

the isEnabled value.

malwareScanning

public MalwareScanningProperties malwareScanning()

Get the malwareScanning property: Properties of Malware Scanning.

Returns:

the malwareScanning value.

overrideSubscriptionLevelSettings

public Boolean overrideSubscriptionLevelSettings()

Get the overrideSubscriptionLevelSettings property: Indicates whether the settings defined for this storage account should override the settings defined for the subscription.

Returns:

the overrideSubscriptionLevelSettings value.

sensitiveDataDiscovery

public SensitiveDataDiscoveryProperties sensitiveDataDiscovery()

Get the sensitiveDataDiscovery property: Properties of Sensitive Data Discovery.

Returns:

the sensitiveDataDiscovery value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIsEnabled

public DefenderForStorageSettingProperties withIsEnabled(Boolean isEnabled)

Set the isEnabled property: Indicates whether Defender for Storage is enabled on this storage account.

Parameters:

isEnabled - the isEnabled value to set.

Returns:

the DefenderForStorageSettingProperties object itself.

withMalwareScanning

public DefenderForStorageSettingProperties withMalwareScanning(MalwareScanningProperties malwareScanning)

Set the malwareScanning property: Properties of Malware Scanning.

Parameters:

malwareScanning - the malwareScanning value to set.

Returns:

the DefenderForStorageSettingProperties object itself.

withOverrideSubscriptionLevelSettings

public DefenderForStorageSettingProperties withOverrideSubscriptionLevelSettings(Boolean overrideSubscriptionLevelSettings)

Set the overrideSubscriptionLevelSettings property: Indicates whether the settings defined for this storage account should override the settings defined for the subscription.

Parameters:

overrideSubscriptionLevelSettings - the overrideSubscriptionLevelSettings value to set.

Returns:

the DefenderForStorageSettingProperties object itself.

withSensitiveDataDiscovery

public DefenderForStorageSettingProperties withSensitiveDataDiscovery(SensitiveDataDiscoveryProperties sensitiveDataDiscovery)

Set the sensitiveDataDiscovery property: Properties of Sensitive Data Discovery.

Parameters:

sensitiveDataDiscovery - the sensitiveDataDiscovery value to set.

Returns:

the DefenderForStorageSettingProperties object itself.

Applies to