Class VersionUsageMetrics
java.lang.Object
io.apicurio.registry.rest.client.models.VersionUsageMetrics
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable
@Generated("com.microsoft.kiota")
public class VersionUsageMetrics
extends Object
implements com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable
Usage metrics for a specific artifact version.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VersionUsageMetricscreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the AdditionalData property value.Gets the classification property value.Gets the clients property value.The deserialization information for the current modelGets the firstFetchedOn property value.Gets the globalId property value.Gets the lastFetchedOn property value.Gets the totalFetches property value.Gets the uniqueClients property value.Gets the version property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAdditionalData(Map<String, Object> value) Sets the AdditionalData property value.voidSets the classification property value.voidsetClients(List<String> value) Sets the clients property value.voidsetFirstFetchedOn(Long value) Sets the firstFetchedOn property value.voidsetGlobalId(Long value) Sets the globalId property value.voidsetLastFetchedOn(Long value) Sets the lastFetchedOn property value.voidsetTotalFetches(Long value) Sets the totalFetches property value.voidsetUniqueClients(Integer value) Sets the uniqueClients property value.voidsetVersion(String value) Sets the version property value.
-
Constructor Details
-
VersionUsageMetrics
public VersionUsageMetrics()Instantiates a newVersionUsageMetricsand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static VersionUsageMetrics createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
VersionUsageMetrics
-
getAdditionalData
Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -
getClassification
Gets the classification property value. Classification of schema usage based on last fetch time.- Returns:
- a
UsageClassification
-
getClients
Gets the clients property value. The clients property -
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model -
getFirstFetchedOn
Gets the firstFetchedOn property value. The firstFetchedOn property- Returns:
- a
Long
-
getGlobalId
Gets the globalId property value. The globalId property- Returns:
- a
Long
-
getLastFetchedOn
Gets the lastFetchedOn property value. The lastFetchedOn property- Returns:
- a
Long
-
getTotalFetches
Gets the totalFetches property value. The totalFetches property- Returns:
- a
Long
-
getUniqueClients
Gets the uniqueClients property value. The uniqueClients property- Returns:
- a
Integer
-
getVersion
Gets the version property value. The version property- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Parameters:
writer- Serialization writer to use to serialize this model
-
setAdditionalData
Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.- Parameters:
value- Value to set for the AdditionalData property.
-
setClassification
Sets the classification property value. Classification of schema usage based on last fetch time.- Parameters:
value- Value to set for the classification property.
-
setClients
Sets the clients property value. The clients property- Parameters:
value- Value to set for the clients property.
-
setFirstFetchedOn
Sets the firstFetchedOn property value. The firstFetchedOn property- Parameters:
value- Value to set for the firstFetchedOn property.
-
setGlobalId
Sets the globalId property value. The globalId property- Parameters:
value- Value to set for the globalId property.
-
setLastFetchedOn
Sets the lastFetchedOn property value. The lastFetchedOn property- Parameters:
value- Value to set for the lastFetchedOn property.
-
setTotalFetches
Sets the totalFetches property value. The totalFetches property- Parameters:
value- Value to set for the totalFetches property.
-
setUniqueClients
Sets the uniqueClients property value. The uniqueClients property- Parameters:
value- Value to set for the uniqueClients property.
-
setVersion
Sets the version property value. The version property- Parameters:
value- Value to set for the version property.
-