JobSecrets Class

  • java.lang.Object
    • com.azure.resourcemanager.databox.models.JobSecrets

Implements

public class JobSecrets
implements JsonSerializable<JobSecrets>

The base class for the secrets.

Constructor Summary

Constructor Description
JobSecrets()

Creates an instance of JobSecrets class.

Method Summary

Modifier and Type Method and Description
DcAccessSecurityCode dcAccessSecurityCode()

Get the dcAccessSecurityCode property: Dc Access Security Code for Customer Managed Shipping.

CloudError error()

Get the error property: Error while fetching the secrets.

static JobSecrets fromJson(JsonReader jsonReader)

Reads an instance of JobSecrets from the JsonReader.

ClassDiscriminator jobSecretsType()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

JobSecrets

public JobSecrets()

Creates an instance of JobSecrets class.

Method Details

dcAccessSecurityCode

public DcAccessSecurityCode dcAccessSecurityCode()

Get the dcAccessSecurityCode property: Dc Access Security Code for Customer Managed Shipping.

Returns:

the dcAccessSecurityCode value.

error

public CloudError error()

Get the error property: Error while fetching the secrets.

Returns:

the error value.

fromJson

public static JobSecrets fromJson(JsonReader jsonReader)

Reads an instance of JobSecrets from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

jobSecretsType

public ClassDiscriminator jobSecretsType()

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

Returns:

the jobSecretsType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to