GcpProjectEnvironmentData Class

public final class GcpProjectEnvironmentData
extends EnvironmentData

The GCP project connector environment data.

Constructor Summary

Constructor Description
GcpProjectEnvironmentData()

Creates an instance of GcpProjectEnvironmentData class.

Method Summary

Modifier and Type Method and Description
EnvironmentType environmentType()

Get the environmentType property: The type of the environment data.

static GcpProjectEnvironmentData fromJson(JsonReader jsonReader)

Reads an instance of GcpProjectEnvironmentData from the JsonReader.

GcpOrganizationalData organizationalData()

Get the organizationalData property: The Gcp project's organizational data.

GcpProjectDetails projectDetails()

Get the projectDetails property: The Gcp project's details.

Long scanInterval()

Get the scanInterval property: Scan interval in hours (value should be between 1-hour to 24-hours).

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GcpProjectEnvironmentData withOrganizationalData(GcpOrganizationalData organizationalData)

Set the organizationalData property: The Gcp project's organizational data.

GcpProjectEnvironmentData withProjectDetails(GcpProjectDetails projectDetails)

Set the projectDetails property: The Gcp project's details.

GcpProjectEnvironmentData withScanInterval(Long scanInterval)

Set the scanInterval property: Scan interval in hours (value should be between 1-hour to 24-hours).

Methods inherited from EnvironmentData

Methods inherited from java.lang.Object

Constructor Details

GcpProjectEnvironmentData

public GcpProjectEnvironmentData()

Creates an instance of GcpProjectEnvironmentData class.

Method Details

environmentType

public EnvironmentType environmentType()

Get the environmentType property: The type of the environment data.

Overrides:

GcpProjectEnvironmentData.environmentType()

Returns:

the environmentType value.

fromJson

public static GcpProjectEnvironmentData fromJson(JsonReader jsonReader)

Reads an instance of GcpProjectEnvironmentData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

organizationalData

public GcpOrganizationalData organizationalData()

Get the organizationalData property: The Gcp project's organizational data.

Returns:

the organizationalData value.

projectDetails

public GcpProjectDetails projectDetails()

Get the projectDetails property: The Gcp project's details.

Returns:

the projectDetails value.

scanInterval

public Long scanInterval()

Get the scanInterval property: Scan interval in hours (value should be between 1-hour to 24-hours).

Returns:

the scanInterval value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GcpProjectEnvironmentData.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

GcpProjectEnvironmentData.validate()

withOrganizationalData

public GcpProjectEnvironmentData withOrganizationalData(GcpOrganizationalData organizationalData)

Set the organizationalData property: The Gcp project's organizational data.

Parameters:

organizationalData - the organizationalData value to set.

Returns:

the GcpProjectEnvironmentData object itself.

withProjectDetails

public GcpProjectEnvironmentData withProjectDetails(GcpProjectDetails projectDetails)

Set the projectDetails property: The Gcp project's details.

Parameters:

projectDetails - the projectDetails value to set.

Returns:

the GcpProjectEnvironmentData object itself.

withScanInterval

public GcpProjectEnvironmentData withScanInterval(Long scanInterval)

Set the scanInterval property: Scan interval in hours (value should be between 1-hour to 24-hours).

Parameters:

scanInterval - the scanInterval value to set.

Returns:

the GcpProjectEnvironmentData object itself.

Applies to