VmScannersGcp Class

public class VmScannersGcp
extends VmScannersBase

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

Constructor Summary

Constructor Description
VmScannersGcp()

Creates an instance of VmScannersGcp class.

Method Summary

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

Reads an instance of VmScannersGcp from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VmScannersGcp withConfiguration(VmScannersBaseConfiguration configuration)

Set the configuration property: Configuration for VM scanning.

VmScannersGcp withEnabled(Boolean enabled)

Set the enabled property: Is VM scanning enabled.

Methods inherited from VmScannersBase

Methods inherited from java.lang.Object

Constructor Details

VmScannersGcp

public VmScannersGcp()

Creates an instance of VmScannersGcp class.

Method Details

fromJson

public static VmScannersGcp fromJson(JsonReader jsonReader)

Reads an instance of VmScannersGcp from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

VmScannersGcp.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

VmScannersGcp.validate()

withConfiguration

public VmScannersGcp withConfiguration(VmScannersBaseConfiguration configuration)

Set the configuration property: Configuration for VM scanning.

Overrides:

VmScannersGcp.withConfiguration(VmScannersBaseConfiguration configuration)

Parameters:

configuration

withEnabled

public VmScannersGcp withEnabled(Boolean enabled)

Set the enabled property: Is VM scanning enabled.

Overrides:

VmScannersGcp.withEnabled(Boolean enabled)

Parameters:

enabled

Applies to