Class Audio

java.lang.Object
com.microsoft.graph.models.Audio
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class Audio extends Object implements com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.store.BackedModel, com.microsoft.kiota.serialization.Parsable
  • Field Details

    • backingStore

      @Nonnull protected com.microsoft.kiota.store.BackingStore backingStore
      Stores model information.
  • Constructor Details

    • Audio

      public Audio()
      Instantiates a new Audio and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static Audio 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 Audio
    • 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>
    • getAlbum

      @Nullable public String getAlbum()
      Gets the album property value. The title of the album for this audio file.
      Returns:
      a String
    • getAlbumArtist

      @Nullable public String getAlbumArtist()
      Gets the albumArtist property value. The artist named on the album for the audio file.
      Returns:
      a String
    • getArtist

      @Nullable public String getArtist()
      Gets the artist property value. The performing artist for the audio file.
      Returns:
      a String
    • getBackingStore

      @Nonnull public com.microsoft.kiota.store.BackingStore getBackingStore()
      Gets the backingStore property value. Stores model information.
      Specified by:
      getBackingStore in interface com.microsoft.kiota.store.BackedModel
      Returns:
      a BackingStore
    • getBitrate

      @Nullable public Long getBitrate()
      Gets the bitrate property value. Bitrate expressed in kbps.
      Returns:
      a Long
    • getComposers

      @Nullable public String getComposers()
      Gets the composers property value. The name of the composer of the audio file.
      Returns:
      a String
    • getCopyright

      @Nullable public String getCopyright()
      Gets the copyright property value. Copyright information for the audio file.
      Returns:
      a String
    • getDisc

      @Nullable public Integer getDisc()
      Gets the disc property value. The number of the disc this audio file came from.
      Returns:
      a Integer
    • getDiscCount

      @Nullable public Integer getDiscCount()
      Gets the discCount property value. The total number of discs in this album.
      Returns:
      a Integer
    • getDuration

      @Nullable public Long getDuration()
      Gets the duration property value. Duration of the audio file, expressed in milliseconds
      Returns:
      a Long
    • 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>>
    • getGenre

      @Nullable public String getGenre()
      Gets the genre property value. The genre of this audio file.
      Returns:
      a String
    • getHasDrm

      @Nullable public Boolean getHasDrm()
      Gets the hasDrm property value. Indicates if the file is protected with digital rights management.
      Returns:
      a Boolean
    • getIsVariableBitrate

      @Nullable public Boolean getIsVariableBitrate()
      Gets the isVariableBitrate property value. Indicates if the file is encoded with a variable bitrate.
      Returns:
      a Boolean
    • getOdataType

      @Nullable public String getOdataType()
      Gets the @odata.type property value. The OdataType property
      Returns:
      a String
    • getTitle

      @Nullable public String getTitle()
      Gets the title property value. The title of the audio file.
      Returns:
      a String
    • getTrack

      @Nullable public Integer getTrack()
      Gets the track property value. The number of the track on the original disc for this audio file.
      Returns:
      a Integer
    • getTrackCount

      @Nullable public Integer getTrackCount()
      Gets the trackCount property value. The total number of tracks on the original disc for this audio file.
      Returns:
      a Integer
    • getYear

      @Nullable public Integer getYear()
      Gets the year property value. The year the audio file was recorded.
      Returns:
      a Integer
    • 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.
    • setAlbum

      public void setAlbum(@Nullable String value)
      Sets the album property value. The title of the album for this audio file.
      Parameters:
      value - Value to set for the album property.
    • setAlbumArtist

      public void setAlbumArtist(@Nullable String value)
      Sets the albumArtist property value. The artist named on the album for the audio file.
      Parameters:
      value - Value to set for the albumArtist property.
    • setArtist

      public void setArtist(@Nullable String value)
      Sets the artist property value. The performing artist for the audio file.
      Parameters:
      value - Value to set for the artist property.
    • setBackingStore

      public void setBackingStore(@Nonnull com.microsoft.kiota.store.BackingStore value)
      Sets the backingStore property value. Stores model information.
      Parameters:
      value - Value to set for the backingStore property.
    • setBitrate

      public void setBitrate(@Nullable Long value)
      Sets the bitrate property value. Bitrate expressed in kbps.
      Parameters:
      value - Value to set for the bitrate property.
    • setComposers

      public void setComposers(@Nullable String value)
      Sets the composers property value. The name of the composer of the audio file.
      Parameters:
      value - Value to set for the composers property.
    • setCopyright

      public void setCopyright(@Nullable String value)
      Sets the copyright property value. Copyright information for the audio file.
      Parameters:
      value - Value to set for the copyright property.
    • setDisc

      public void setDisc(@Nullable Integer value)
      Sets the disc property value. The number of the disc this audio file came from.
      Parameters:
      value - Value to set for the disc property.
    • setDiscCount

      public void setDiscCount(@Nullable Integer value)
      Sets the discCount property value. The total number of discs in this album.
      Parameters:
      value - Value to set for the discCount property.
    • setDuration

      public void setDuration(@Nullable Long value)
      Sets the duration property value. Duration of the audio file, expressed in milliseconds
      Parameters:
      value - Value to set for the duration property.
    • setGenre

      public void setGenre(@Nullable String value)
      Sets the genre property value. The genre of this audio file.
      Parameters:
      value - Value to set for the genre property.
    • setHasDrm

      public void setHasDrm(@Nullable Boolean value)
      Sets the hasDrm property value. Indicates if the file is protected with digital rights management.
      Parameters:
      value - Value to set for the hasDrm property.
    • setIsVariableBitrate

      public void setIsVariableBitrate(@Nullable Boolean value)
      Sets the isVariableBitrate property value. Indicates if the file is encoded with a variable bitrate.
      Parameters:
      value - Value to set for the isVariableBitrate property.
    • setOdataType

      public void setOdataType(@Nullable String value)
      Sets the @odata.type property value. The OdataType property
      Parameters:
      value - Value to set for the @odata.type property.
    • setTitle

      public void setTitle(@Nullable String value)
      Sets the title property value. The title of the audio file.
      Parameters:
      value - Value to set for the title property.
    • setTrack

      public void setTrack(@Nullable Integer value)
      Sets the track property value. The number of the track on the original disc for this audio file.
      Parameters:
      value - Value to set for the track property.
    • setTrackCount

      public void setTrackCount(@Nullable Integer value)
      Sets the trackCount property value. The total number of tracks on the original disc for this audio file.
      Parameters:
      value - Value to set for the trackCount property.
    • setYear

      public void setYear(@Nullable Integer value)
      Sets the year property value. The year the audio file was recorded.
      Parameters:
      value - Value to set for the year property.