Share via


SyncStats Class

  • java.lang.Object
    • com.azure.resourcemanager.devcenter.models.SyncStats

Implements

public final class SyncStats
implements JsonSerializable<SyncStats>

Stats of the synchronization.

Constructor Summary

Constructor Description
SyncStats()

Creates an instance of SyncStats class.

Method Summary

Modifier and Type Method and Description
Integer added()

Get the added property: Count of catalog items added during synchronization.

static SyncStats fromJson(JsonReader jsonReader)

Reads an instance of SyncStats from the JsonReader.

Integer removed()

Get the removed property: Count of catalog items removed during synchronization.

List<CatalogItemType> syncedCatalogItemTypes()

Get the syncedCatalogItemTypes property: Indicates catalog item types that were synced.

Integer synchronizationErrors()

Get the synchronizationErrors property: Count of synchronization errors that occured during synchronization.

JsonWriter toJson(JsonWriter jsonWriter)
Integer unchanged()

Get the unchanged property: Count of catalog items that were unchanged during synchronization.

Integer updated()

Get the updated property: Count of catalog items updated during synchronization.

void validate()

Validates the instance.

Integer validationErrors()

Get the validationErrors property: Count of catalog items that had validation errors during synchronization.

SyncStats withSyncedCatalogItemTypes(List<CatalogItemType> syncedCatalogItemTypes)

Set the syncedCatalogItemTypes property: Indicates catalog item types that were synced.

Methods inherited from java.lang.Object

Constructor Details

SyncStats

public SyncStats()

Creates an instance of SyncStats class.

Method Details

added

public Integer added()

Get the added property: Count of catalog items added during synchronization.

Returns:

the added value.

fromJson

public static SyncStats fromJson(JsonReader jsonReader)

Reads an instance of SyncStats from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

removed

public Integer removed()

Get the removed property: Count of catalog items removed during synchronization.

Returns:

the removed value.

syncedCatalogItemTypes

public List<CatalogItemType> syncedCatalogItemTypes()

Get the syncedCatalogItemTypes property: Indicates catalog item types that were synced.

Returns:

the syncedCatalogItemTypes value.

synchronizationErrors

public Integer synchronizationErrors()

Get the synchronizationErrors property: Count of synchronization errors that occured during synchronization.

Returns:

the synchronizationErrors value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unchanged

public Integer unchanged()

Get the unchanged property: Count of catalog items that were unchanged during synchronization.

Returns:

the unchanged value.

updated

public Integer updated()

Get the updated property: Count of catalog items updated during synchronization.

Returns:

the updated value.

validate

public void validate()

Validates the instance.

validationErrors

public Integer validationErrors()

Get the validationErrors property: Count of catalog items that had validation errors during synchronization.

Returns:

the validationErrors value.

withSyncedCatalogItemTypes

public SyncStats withSyncedCatalogItemTypes(List<CatalogItemType> syncedCatalogItemTypes)

Set the syncedCatalogItemTypes property: Indicates catalog item types that were synced.

Parameters:

syncedCatalogItemTypes - the syncedCatalogItemTypes value to set.

Returns:

the SyncStats object itself.

Applies to