DockerHubEnvironmentData Class

public final class DockerHubEnvironmentData
extends EnvironmentData

The Docker Hub connector environment data.

Constructor Summary

Constructor Description
DockerHubEnvironmentData()

Creates an instance of DockerHubEnvironmentData class.

Method Summary

Modifier and Type Method and Description
Authentication authentication()

Get the authentication property: The Docker Hub organization authentication details.

EnvironmentType environmentType()

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

static DockerHubEnvironmentData fromJson(JsonReader jsonReader)

Reads an instance of DockerHubEnvironmentData from the JsonReader.

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.

DockerHubEnvironmentData withAuthentication(Authentication authentication)

Set the authentication property: The Docker Hub organization authentication details.

DockerHubEnvironmentData 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

DockerHubEnvironmentData

public DockerHubEnvironmentData()

Creates an instance of DockerHubEnvironmentData class.

Method Details

authentication

public Authentication authentication()

Get the authentication property: The Docker Hub organization authentication details.

Returns:

the authentication value.

environmentType

public EnvironmentType environmentType()

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

Overrides:

DockerHubEnvironmentData.environmentType()

Returns:

the environmentType value.

fromJson

public static DockerHubEnvironmentData fromJson(JsonReader jsonReader)

Reads an instance of DockerHubEnvironmentData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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:

DockerHubEnvironmentData.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DockerHubEnvironmentData.validate()

withAuthentication

public DockerHubEnvironmentData withAuthentication(Authentication authentication)

Set the authentication property: The Docker Hub organization authentication details.

Parameters:

authentication - the authentication value to set.

Returns:

the DockerHubEnvironmentData object itself.

withScanInterval

public DockerHubEnvironmentData 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 DockerHubEnvironmentData object itself.

Applies to