ValidateResponseInner Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.fluent.models.ValidateResponseInner

Implements

public final class ValidateResponseInner
implements JsonSerializable<ValidateResponseInner>

Describes the result of resource validation.

Constructor Summary

Constructor Description
ValidateResponseInner()

Creates an instance of ValidateResponseInner class.

Method Summary

Modifier and Type Method and Description
ValidateResponseError error()

Get the error property: Error details for the case when validation fails.

static ValidateResponseInner fromJson(JsonReader jsonReader)

Reads an instance of ValidateResponseInner from the JsonReader.

String status()

Get the status property: Result of validation.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ValidateResponseInner withError(ValidateResponseError error)

Set the error property: Error details for the case when validation fails.

ValidateResponseInner withStatus(String status)

Set the status property: Result of validation.

Methods inherited from java.lang.Object

Constructor Details

ValidateResponseInner

public ValidateResponseInner()

Creates an instance of ValidateResponseInner class.

Method Details

error

public ValidateResponseError error()

Get the error property: Error details for the case when validation fails.

Returns:

the error value.

fromJson

public static ValidateResponseInner fromJson(JsonReader jsonReader)

Reads an instance of ValidateResponseInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

status

public String status()

Get the status property: Result of validation.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withError

public ValidateResponseInner withError(ValidateResponseError error)

Set the error property: Error details for the case when validation fails.

Parameters:

error - the error value to set.

Returns:

the ValidateResponseInner object itself.

withStatus

public ValidateResponseInner withStatus(String status)

Set the status property: Result of validation.

Parameters:

status - the status value to set.

Returns:

the ValidateResponseInner object itself.

Applies to