ErrorSummariesProperties Class

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

Implements

public final class ErrorSummariesProperties
implements JsonSerializable<ErrorSummariesProperties>

Error summary properties.

Constructor Summary

Constructor Description
ErrorSummariesProperties()

Creates an instance of ErrorSummariesProperties class.

Method Summary

Modifier and Type Method and Description
List<ErrorSummaryModel> discoveryScopeErrorSummaries()

Get the discoveryScopeErrorSummaries property: The list of ErrorSummary.

List<Error> errors()

Get the errors property: The list of errors.

static ErrorSummariesProperties fromJson(JsonReader jsonReader)

Reads an instance of ErrorSummariesProperties from the JsonReader.

ProvisioningState provisioningState()

Get the provisioningState property: The resource provisioning state.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ErrorSummariesProperties withDiscoveryScopeErrorSummaries(List<ErrorSummaryModel> discoveryScopeErrorSummaries)

Set the discoveryScopeErrorSummaries property: The list of ErrorSummary.

ErrorSummariesProperties withErrors(List<Error> errors)

Set the errors property: The list of errors.

ErrorSummariesProperties withProvisioningState(ProvisioningState provisioningState)

Set the provisioningState property: The resource provisioning state.

Methods inherited from java.lang.Object

Constructor Details

ErrorSummariesProperties

public ErrorSummariesProperties()

Creates an instance of ErrorSummariesProperties class.

Method Details

discoveryScopeErrorSummaries

public List<ErrorSummaryModel> discoveryScopeErrorSummaries()

Get the discoveryScopeErrorSummaries property: The list of ErrorSummary.

Returns:

the discoveryScopeErrorSummaries value.

errors

public List<Error> errors()

Get the errors property: The list of errors.

Returns:

the errors value.

fromJson

public static ErrorSummariesProperties fromJson(JsonReader jsonReader)

Reads an instance of ErrorSummariesProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The resource provisioning state.

Returns:

the provisioningState value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDiscoveryScopeErrorSummaries

public ErrorSummariesProperties withDiscoveryScopeErrorSummaries(List<ErrorSummaryModel> discoveryScopeErrorSummaries)

Set the discoveryScopeErrorSummaries property: The list of ErrorSummary.

Parameters:

discoveryScopeErrorSummaries - the discoveryScopeErrorSummaries value to set.

Returns:

the ErrorSummariesProperties object itself.

withErrors

public ErrorSummariesProperties withErrors(List<Error> errors)

Set the errors property: The list of errors.

Parameters:

errors - the errors value to set.

Returns:

the ErrorSummariesProperties object itself.

withProvisioningState

public ErrorSummariesProperties withProvisioningState(ProvisioningState provisioningState)

Set the provisioningState property: The resource provisioning state.

Parameters:

provisioningState - the provisioningState value to set.

Returns:

the ErrorSummariesProperties object itself.

Applies to