JFrogEnvironmentData Class

public final class JFrogEnvironmentData
extends EnvironmentData

The JFrog Artifactory connector environment data.

Constructor Summary

Constructor Description
JFrogEnvironmentData()

Creates an instance of JFrogEnvironmentData class.

Method Summary

Modifier and Type Method and Description
EnvironmentType environmentType()

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

static JFrogEnvironmentData fromJson(JsonReader jsonReader)

Reads an instance of JFrogEnvironmentData from the JsonReader.

Integer 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.

JFrogEnvironmentData withScanInterval(Integer 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

JFrogEnvironmentData

public JFrogEnvironmentData()

Creates an instance of JFrogEnvironmentData class.

Method Details

environmentType

public EnvironmentType environmentType()

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

Overrides:

JFrogEnvironmentData.environmentType()

Returns:

the environmentType value.

fromJson

public static JFrogEnvironmentData fromJson(JsonReader jsonReader)

Reads an instance of JFrogEnvironmentData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

scanInterval

public Integer 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:

JFrogEnvironmentData.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

JFrogEnvironmentData.validate()

withScanInterval

public JFrogEnvironmentData withScanInterval(Integer 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 JFrogEnvironmentData object itself.

Applies to