VmScannersBase Class

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

Implements

public class VmScannersBase
implements JsonSerializable<VmScannersBase>

A VM scanning configuration for a security offering of a given environment.

Constructor Summary

Constructor Description
VmScannersBase()

Creates an instance of VmScannersBase class.

Method Summary

Modifier and Type Method and Description
VmScannersBaseConfiguration configuration()

Get the configuration property: Configuration for VM scanning.

Boolean enabled()

Get the enabled property: Is VM scanning enabled.

static VmScannersBase fromJson(JsonReader jsonReader)

Reads an instance of VmScannersBase from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VmScannersBase withConfiguration(VmScannersBaseConfiguration configuration)

Set the configuration property: Configuration for VM scanning.

VmScannersBase withEnabled(Boolean enabled)

Set the enabled property: Is VM scanning enabled.

Methods inherited from java.lang.Object

Constructor Details

VmScannersBase

public VmScannersBase()

Creates an instance of VmScannersBase class.

Method Details

configuration

public VmScannersBaseConfiguration configuration()

Get the configuration property: Configuration for VM scanning.

Returns:

the configuration value.

enabled

public Boolean enabled()

Get the enabled property: Is VM scanning enabled.

Returns:

the enabled value.

fromJson

public static VmScannersBase fromJson(JsonReader jsonReader)

Reads an instance of VmScannersBase from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withConfiguration

public VmScannersBase withConfiguration(VmScannersBaseConfiguration configuration)

Set the configuration property: Configuration for VM scanning.

Parameters:

configuration - the configuration value to set.

Returns:

the VmScannersBase object itself.

withEnabled

public VmScannersBase withEnabled(Boolean enabled)

Set the enabled property: Is VM scanning enabled.

Parameters:

enabled - the enabled value to set.

Returns:

the VmScannersBase object itself.

Applies to