SapVirtualInstanceError Class

  • java.lang.Object
    • com.azure.resourcemanager.workloads.models.SapVirtualInstanceError

Implements

public final class SapVirtualInstanceError
implements JsonSerializable<SapVirtualInstanceError>

An error response from the Virtual Instance for SAP Workload service.

Constructor Summary

Constructor Description
SapVirtualInstanceError()

Creates an instance of SapVirtualInstanceError class.

Method Summary

Modifier and Type Method and Description
static SapVirtualInstanceError fromJson(JsonReader jsonReader)

Reads an instance of SapVirtualInstanceError from the JsonReader.

ErrorDefinition properties()

Get the properties property: The Virtual Instance for SAP error body.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SapVirtualInstanceError withProperties(ErrorDefinition properties)

Set the properties property: The Virtual Instance for SAP error body.

Methods inherited from java.lang.Object

Constructor Details

SapVirtualInstanceError

public SapVirtualInstanceError()

Creates an instance of SapVirtualInstanceError class.

Method Details

fromJson

public static SapVirtualInstanceError fromJson(JsonReader jsonReader)

Reads an instance of SapVirtualInstanceError from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

properties

public ErrorDefinition properties()

Get the properties property: The Virtual Instance for SAP error body.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withProperties

public SapVirtualInstanceError withProperties(ErrorDefinition properties)

Set the properties property: The Virtual Instance for SAP error body.

Parameters:

properties - the properties value to set.

Returns:

the SapVirtualInstanceError object itself.

Applies to