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 Details

    • VersionUsageMetrics

      public VersionUsageMetrics()
      Instantiates a new VersionUsageMetrics and 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

      @Nonnull public Map<String,Object> 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.
      Specified by:
      getAdditionalData in interface com.microsoft.kiota.serialization.AdditionalDataHolder
      Returns:
      a Map<String,Object>
    • getClassification

      @Nullable public UsageClassification getClassification()
      Gets the classification property value. Classification of schema usage based on last fetch time.
      Returns:
      a UsageClassification
    • getClients

      @Nullable public List<String> getClients()
      Gets the clients property value. The clients property
      Returns:
      a List<String>
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getFirstFetchedOn

      @Nullable public Long getFirstFetchedOn()
      Gets the firstFetchedOn property value. The firstFetchedOn property
      Returns:
      a Long
    • getGlobalId

      @Nullable public Long getGlobalId()
      Gets the globalId property value. The globalId property
      Returns:
      a Long
    • getLastFetchedOn

      @Nullable public Long getLastFetchedOn()
      Gets the lastFetchedOn property value. The lastFetchedOn property
      Returns:
      a Long
    • getTotalFetches

      @Nullable public Long getTotalFetches()
      Gets the totalFetches property value. The totalFetches property
      Returns:
      a Long
    • getUniqueClients

      @Nullable public Integer getUniqueClients()
      Gets the uniqueClients property value. The uniqueClients property
      Returns:
      a Integer
    • getVersion

      @Nullable public String 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:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAdditionalData

      public void setAdditionalData(@Nullable Map<String,Object> value)
      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

      public void setClassification(@Nullable UsageClassification value)
      Sets the classification property value. Classification of schema usage based on last fetch time.
      Parameters:
      value - Value to set for the classification property.
    • setClients

      public void setClients(@Nullable List<String> value)
      Sets the clients property value. The clients property
      Parameters:
      value - Value to set for the clients property.
    • setFirstFetchedOn

      public void setFirstFetchedOn(@Nullable Long value)
      Sets the firstFetchedOn property value. The firstFetchedOn property
      Parameters:
      value - Value to set for the firstFetchedOn property.
    • setGlobalId

      public void setGlobalId(@Nullable Long value)
      Sets the globalId property value. The globalId property
      Parameters:
      value - Value to set for the globalId property.
    • setLastFetchedOn

      public void setLastFetchedOn(@Nullable Long value)
      Sets the lastFetchedOn property value. The lastFetchedOn property
      Parameters:
      value - Value to set for the lastFetchedOn property.
    • setTotalFetches

      public void setTotalFetches(@Nullable Long value)
      Sets the totalFetches property value. The totalFetches property
      Parameters:
      value - Value to set for the totalFetches property.
    • setUniqueClients

      public void setUniqueClients(@Nullable Integer value)
      Sets the uniqueClients property value. The uniqueClients property
      Parameters:
      value - Value to set for the uniqueClients property.
    • setVersion

      public void setVersion(@Nullable String value)
      Sets the version property value. The version property
      Parameters:
      value - Value to set for the version property.