Share via


ValidationInputResponse Class

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

Implements

public class ValidationInputResponse
implements JsonSerializable<ValidationInputResponse>

Minimum properties that should be present in each individual validation response.

Constructor Summary

Constructor Description
ValidationInputResponse()

Creates an instance of ValidationInputResponse class.

Method Summary

Modifier and Type Method and Description
CloudError error()

Get the error property: Error code and message of validation response.

static ValidationInputResponse fromJson(JsonReader jsonReader)

Reads an instance of ValidationInputResponse from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ValidationInputDiscriminator validationType()

Get the validationType property: Identifies the type of validation response.

Methods inherited from java.lang.Object

Constructor Details

ValidationInputResponse

public ValidationInputResponse()

Creates an instance of ValidationInputResponse class.

Method Details

error

public CloudError error()

Get the error property: Error code and message of validation response.

Returns:

the error value.

fromJson

public static ValidationInputResponse fromJson(JsonReader jsonReader)

Reads an instance of ValidationInputResponse from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

validationType

public ValidationInputDiscriminator validationType()

Get the validationType property: Identifies the type of validation response.

Returns:

the validationType value.

Applies to