VmScannersBaseConfiguration Class

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

Implements

public final class VmScannersBaseConfiguration
implements JsonSerializable<VmScannersBaseConfiguration>

Configuration for VM scanning.

Constructor Summary

Constructor Description
VmScannersBaseConfiguration()

Creates an instance of VmScannersBaseConfiguration class.

Method Summary

Modifier and Type Method and Description
Map<String,String> exclusionTags()

Get the exclusionTags property: Tags that indicates that a resource should not be scanned.

static VmScannersBaseConfiguration fromJson(JsonReader jsonReader)

Reads an instance of VmScannersBaseConfiguration from the JsonReader.

ScanningMode scanningMode()

Get the scanningMode property: The scanning mode for the VM scan.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VmScannersBaseConfiguration withExclusionTags(Map<String,String> exclusionTags)

Set the exclusionTags property: Tags that indicates that a resource should not be scanned.

VmScannersBaseConfiguration withScanningMode(ScanningMode scanningMode)

Set the scanningMode property: The scanning mode for the VM scan.

Methods inherited from java.lang.Object

Constructor Details

VmScannersBaseConfiguration

public VmScannersBaseConfiguration()

Creates an instance of VmScannersBaseConfiguration class.

Method Details

exclusionTags

public Map<String,String> exclusionTags()

Get the exclusionTags property: Tags that indicates that a resource should not be scanned.

Returns:

the exclusionTags value.

fromJson

public static VmScannersBaseConfiguration fromJson(JsonReader jsonReader)

Reads an instance of VmScannersBaseConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

scanningMode

public ScanningMode scanningMode()

Get the scanningMode property: The scanning mode for the VM scan.

Returns:

the scanningMode value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withExclusionTags

public VmScannersBaseConfiguration withExclusionTags(Map<String,String> exclusionTags)

Set the exclusionTags property: Tags that indicates that a resource should not be scanned.

Parameters:

exclusionTags - the exclusionTags value to set.

Returns:

the VmScannersBaseConfiguration object itself.

withScanningMode

public VmScannersBaseConfiguration withScanningMode(ScanningMode scanningMode)

Set the scanningMode property: The scanning mode for the VM scan.

Parameters:

scanningMode - the scanningMode value to set.

Returns:

the VmScannersBaseConfiguration object itself.

Applies to