Share via


DataBoxDiskJobSecrets Class

public final class DataBoxDiskJobSecrets
extends JobSecrets

The secrets related to disk job.

Constructor Summary

Constructor Description
DataBoxDiskJobSecrets()

Creates an instance of DataBoxDiskJobSecrets class.

Method Summary

Modifier and Type Method and Description
List<DiskSecret> diskSecrets()

Get the diskSecrets property: Contains the list of secrets object for that device.

static DataBoxDiskJobSecrets fromJson(JsonReader jsonReader)

Reads an instance of DataBoxDiskJobSecrets from the JsonReader.

Boolean isPasskeyUserDefined()

Get the isPasskeyUserDefined property: Whether passkey was provided by user.

ClassDiscriminator jobSecretsType()

Get the jobSecretsType property: Used to indicate what type of job secrets object.

String passKey()

Get the passKey property: PassKey for the disk Job.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from JobSecrets

Methods inherited from java.lang.Object

Constructor Details

DataBoxDiskJobSecrets

public DataBoxDiskJobSecrets()

Creates an instance of DataBoxDiskJobSecrets class.

Method Details

diskSecrets

public List<DiskSecret> diskSecrets()

Get the diskSecrets property: Contains the list of secrets object for that device.

Returns:

the diskSecrets value.

fromJson

public static DataBoxDiskJobSecrets fromJson(JsonReader jsonReader)

Reads an instance of DataBoxDiskJobSecrets from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isPasskeyUserDefined

public Boolean isPasskeyUserDefined()

Get the isPasskeyUserDefined property: Whether passkey was provided by user.

Returns:

the isPasskeyUserDefined value.

jobSecretsType

public ClassDiscriminator jobSecretsType()

Get the jobSecretsType property: Used to indicate what type of job secrets object.

Overrides:

DataBoxDiskJobSecrets.jobSecretsType()

Returns:

the jobSecretsType value.

passKey

public String passKey()

Get the passKey property: PassKey for the disk Job.

Returns:

the passKey value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

DataBoxDiskJobSecrets.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

DataBoxDiskJobSecrets.validate()

Applies to