ErrorSummaryModel Class

  • java.lang.Object
    • com.azure.resourcemanager.springappdiscovery.models.ErrorSummaryModel

Implements

public final class ErrorSummaryModel
implements JsonSerializable<ErrorSummaryModel>

ErrorSummary model.

Constructor Summary

Constructor Description
ErrorSummaryModel()

Creates an instance of ErrorSummaryModel class.

Method Summary

Modifier and Type Method and Description
Long affectedObjectsCount()

Get the affectedObjectsCount property: The count.

String affectedResourceType()

Get the affectedResourceType property: The type of Object.

static ErrorSummaryModel fromJson(JsonReader jsonReader)

Reads an instance of ErrorSummaryModel from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ErrorSummaryModel withAffectedObjectsCount(Long affectedObjectsCount)

Set the affectedObjectsCount property: The count.

ErrorSummaryModel withAffectedResourceType(String affectedResourceType)

Set the affectedResourceType property: The type of Object.

Methods inherited from java.lang.Object

Constructor Details

ErrorSummaryModel

public ErrorSummaryModel()

Creates an instance of ErrorSummaryModel class.

Method Details

affectedObjectsCount

public Long affectedObjectsCount()

Get the affectedObjectsCount property: The count.

Returns:

the affectedObjectsCount value.

affectedResourceType

public String affectedResourceType()

Get the affectedResourceType property: The type of Object.

Returns:

the affectedResourceType value.

fromJson

public static ErrorSummaryModel fromJson(JsonReader jsonReader)

Reads an instance of ErrorSummaryModel from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAffectedObjectsCount

public ErrorSummaryModel withAffectedObjectsCount(Long affectedObjectsCount)

Set the affectedObjectsCount property: The count.

Parameters:

affectedObjectsCount - the affectedObjectsCount value to set.

Returns:

the ErrorSummaryModel object itself.

withAffectedResourceType

public ErrorSummaryModel withAffectedResourceType(String affectedResourceType)

Set the affectedResourceType property: The type of Object.

Parameters:

affectedResourceType - the affectedResourceType value to set.

Returns:

the ErrorSummaryModel object itself.

Applies to