Package com.microsoft.graph.models
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 Summary
FieldsModifier and TypeFieldDescriptionprotected com.microsoft.kiota.store.BackingStoreStores model information. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AudiocreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the AdditionalData property value.getAlbum()Gets the album property value.Gets the albumArtist property value.Gets the artist property value.com.microsoft.kiota.store.BackingStoreGets the backingStore property value.Gets the bitrate property value.Gets the composers property value.Gets the copyright property value.getDisc()Gets the disc property value.Gets the discCount property value.Gets the duration property value.The deserialization information for the current modelgetGenre()Gets the genre property value.Gets the hasDrm property value.Gets the isVariableBitrate property value.Gets the @odata.type property value.getTitle()Gets the title property value.getTrack()Gets the track property value.Gets the trackCount property value.getYear()Gets the year 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 album property value.voidsetAlbumArtist(String value) Sets the albumArtist property value.voidSets the artist property value.voidsetBackingStore(com.microsoft.kiota.store.BackingStore value) Sets the backingStore property value.voidsetBitrate(Long value) Sets the bitrate property value.voidsetComposers(String value) Sets the composers property value.voidsetCopyright(String value) Sets the copyright property value.voidSets the disc property value.voidsetDiscCount(Integer value) Sets the discCount property value.voidsetDuration(Long value) Sets the duration property value.voidSets the genre property value.voidSets the hasDrm property value.voidsetIsVariableBitrate(Boolean value) Sets the isVariableBitrate property value.voidsetOdataType(String value) Sets the @odata.type property value.voidSets the title property value.voidSets the track property value.voidsetTrackCount(Integer value) Sets the trackCount property value.voidSets the year property value.
-
Field Details
-
backingStore
@Nonnull protected com.microsoft.kiota.store.BackingStore backingStoreStores model information.
-
-
Constructor Details
-
Audio
public Audio()Instantiates a newAudioand 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
Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -
getAlbum
Gets the album property value. The title of the album for this audio file.- Returns:
- a
String
-
getAlbumArtist
Gets the albumArtist property value. The artist named on the album for the audio file.- Returns:
- a
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:
getBackingStorein interfacecom.microsoft.kiota.store.BackedModel- Returns:
- a
BackingStore
-
getBitrate
Gets the bitrate property value. Bitrate expressed in kbps.- Returns:
- a
Long
-
getComposers
Gets the composers property value. The name of the composer of the audio file.- Returns:
- a
String
-
getCopyright
Gets the copyright property value. Copyright information for the audio file.- Returns:
- a
String
-
getDisc
Gets the disc property value. The number of the disc this audio file came from.- Returns:
- a
Integer
-
getDiscCount
Gets the discCount property value. The total number of discs in this album.- Returns:
- a
Integer
-
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 -
getGenre
Gets the genre property value. The genre of this audio file.- Returns:
- a
String
-
getHasDrm
Gets the hasDrm property value. Indicates if the file is protected with digital rights management.- Returns:
- a
Boolean
-
getIsVariableBitrate
Gets the isVariableBitrate property value. Indicates if the file is encoded with a variable bitrate.- Returns:
- a
Boolean
-
getOdataType
Gets the @odata.type property value. The OdataType property- Returns:
- a
String
-
getTitle
Gets the title property value. The title of the audio file.- Returns:
- a
String
-
getTrack
Gets the track property value. The number of the track on the original disc for this audio file.- Returns:
- a
Integer
-
getTrackCount
Gets the trackCount property value. The total number of tracks on the original disc for this audio file.- Returns:
- a
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:
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.
-
setAlbum
Sets the album property value. The title of the album for this audio file.- Parameters:
value- Value to set for the album property.
-
setAlbumArtist
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
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
Sets the bitrate property value. Bitrate expressed in kbps.- Parameters:
value- Value to set for the bitrate property.
-
setComposers
Sets the composers property value. The name of the composer of the audio file.- Parameters:
value- Value to set for the composers property.
-
setCopyright
Sets the copyright property value. Copyright information for the audio file.- Parameters:
value- Value to set for the copyright property.
-
setDisc
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
Sets the discCount property value. The total number of discs in this album.- Parameters:
value- Value to set for the discCount property.
-
setDuration
Sets the duration property value. Duration of the audio file, expressed in milliseconds- Parameters:
value- Value to set for the duration property.
-
setGenre
Sets the genre property value. The genre of this audio file.- Parameters:
value- Value to set for the genre property.
-
setHasDrm
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
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
Sets the @odata.type property value. The OdataType property- Parameters:
value- Value to set for the @odata.type property.
-
setTitle
Sets the title property value. The title of the audio file.- Parameters:
value- Value to set for the title property.
-
setTrack
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
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
Sets the year property value. The year the audio file was recorded.- Parameters:
value- Value to set for the year property.
-