你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphAudio Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphAudio

Implements

public final class MicrosoftGraphAudio
implements JsonSerializable<MicrosoftGraphAudio>

audio.

Constructor Summary

Constructor Description
MicrosoftGraphAudio()

Creates an instance of MicrosoftGraphAudio class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: audio.

String album()

Get the album property: The title of the album for this audio file.

String albumArtist()

Get the albumArtist property: The artist named on the album for the audio file.

String artist()

Get the artist property: The performing artist for the audio file.

Long bitrate()

Get the bitrate property: Bitrate expressed in kbps.

String composers()

Get the composers property: The name of the composer of the audio file.

String copyright()

Get the copyright property: Copyright information for the audio file.

Integer disc()

Get the disc property: The number of the disc this audio file came from.

Integer discCount()

Get the discCount property: The total number of discs in this album.

Long duration()

Get the duration property: Duration of the audio file, expressed in milliseconds.

static MicrosoftGraphAudio fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphAudio from the JsonReader.

String genre()

Get the genre property: The genre of this audio file.

Boolean hasDrm()

Get the hasDrm property: Indicates if the file is protected with digital rights management.

Boolean isVariableBitrate()

Get the isVariableBitrate property: Indicates if the file is encoded with a variable bitrate.

String title()

Get the title property: The title of the audio file.

JsonWriter toJson(JsonWriter jsonWriter)
Integer track()

Get the track property: The number of the track on the original disc for this audio file.

Integer trackCount()

Get the trackCount property: The total number of tracks on the original disc for this audio file.

void validate()

Validates the instance.

MicrosoftGraphAudio withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: audio.

MicrosoftGraphAudio withAlbum(String album)

Set the album property: The title of the album for this audio file.

MicrosoftGraphAudio withAlbumArtist(String albumArtist)

Set the albumArtist property: The artist named on the album for the audio file.

MicrosoftGraphAudio withArtist(String artist)

Set the artist property: The performing artist for the audio file.

MicrosoftGraphAudio withBitrate(Long bitrate)

Set the bitrate property: Bitrate expressed in kbps.

MicrosoftGraphAudio withComposers(String composers)

Set the composers property: The name of the composer of the audio file.

MicrosoftGraphAudio withCopyright(String copyright)

Set the copyright property: Copyright information for the audio file.

MicrosoftGraphAudio withDisc(Integer disc)

Set the disc property: The number of the disc this audio file came from.

MicrosoftGraphAudio withDiscCount(Integer discCount)

Set the discCount property: The total number of discs in this album.

MicrosoftGraphAudio withDuration(Long duration)

Set the duration property: Duration of the audio file, expressed in milliseconds.

MicrosoftGraphAudio withGenre(String genre)

Set the genre property: The genre of this audio file.

MicrosoftGraphAudio withHasDrm(Boolean hasDrm)

Set the hasDrm property: Indicates if the file is protected with digital rights management.

MicrosoftGraphAudio withIsVariableBitrate(Boolean isVariableBitrate)

Set the isVariableBitrate property: Indicates if the file is encoded with a variable bitrate.

MicrosoftGraphAudio withTitle(String title)

Set the title property: The title of the audio file.

MicrosoftGraphAudio withTrack(Integer track)

Set the track property: The number of the track on the original disc for this audio file.

MicrosoftGraphAudio withTrackCount(Integer trackCount)

Set the trackCount property: The total number of tracks on the original disc for this audio file.

MicrosoftGraphAudio withYear(Integer year)

Set the year property: The year the audio file was recorded.

Integer year()

Get the year property: The year the audio file was recorded.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphAudio

public MicrosoftGraphAudio()

Creates an instance of MicrosoftGraphAudio class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: audio.

Returns:

the additionalProperties value.

album

public String album()

Get the album property: The title of the album for this audio file.

Returns:

the album value.

albumArtist

public String albumArtist()

Get the albumArtist property: The artist named on the album for the audio file.

Returns:

the albumArtist value.

artist

public String artist()

Get the artist property: The performing artist for the audio file.

Returns:

the artist value.

bitrate

public Long bitrate()

Get the bitrate property: Bitrate expressed in kbps.

Returns:

the bitrate value.

composers

public String composers()

Get the composers property: The name of the composer of the audio file.

Returns:

the composers value.

copyright

public String copyright()

Get the copyright property: Copyright information for the audio file.

Returns:

the copyright value.

disc

public Integer disc()

Get the disc property: The number of the disc this audio file came from.

Returns:

the disc value.

discCount

public Integer discCount()

Get the discCount property: The total number of discs in this album.

Returns:

the discCount value.

duration

public Long duration()

Get the duration property: Duration of the audio file, expressed in milliseconds.

Returns:

the duration value.

fromJson

public static MicrosoftGraphAudio fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphAudio from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

genre

public String genre()

Get the genre property: The genre of this audio file.

Returns:

the genre value.

hasDrm

public Boolean hasDrm()

Get the hasDrm property: Indicates if the file is protected with digital rights management.

Returns:

the hasDrm value.

isVariableBitrate

public Boolean isVariableBitrate()

Get the isVariableBitrate property: Indicates if the file is encoded with a variable bitrate.

Returns:

the isVariableBitrate value.

title

public String title()

Get the title property: The title of the audio file.

Returns:

the title value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

track

public Integer track()

Get the track property: The number of the track on the original disc for this audio file.

Returns:

the track value.

trackCount

public Integer trackCount()

Get the trackCount property: The total number of tracks on the original disc for this audio file.

Returns:

the trackCount value.

validate

public void validate()

Validates the instance.

withAdditionalProperties

public MicrosoftGraphAudio withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: audio.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphAudio object itself.

withAlbum

public MicrosoftGraphAudio withAlbum(String album)

Set the album property: The title of the album for this audio file.

Parameters:

album - the album value to set.

Returns:

the MicrosoftGraphAudio object itself.

withAlbumArtist

public MicrosoftGraphAudio withAlbumArtist(String albumArtist)

Set the albumArtist property: The artist named on the album for the audio file.

Parameters:

albumArtist - the albumArtist value to set.

Returns:

the MicrosoftGraphAudio object itself.

withArtist

public MicrosoftGraphAudio withArtist(String artist)

Set the artist property: The performing artist for the audio file.

Parameters:

artist - the artist value to set.

Returns:

the MicrosoftGraphAudio object itself.

withBitrate

public MicrosoftGraphAudio withBitrate(Long bitrate)

Set the bitrate property: Bitrate expressed in kbps.

Parameters:

bitrate - the bitrate value to set.

Returns:

the MicrosoftGraphAudio object itself.

withComposers

public MicrosoftGraphAudio withComposers(String composers)

Set the composers property: The name of the composer of the audio file.

Parameters:

composers - the composers value to set.

Returns:

the MicrosoftGraphAudio object itself.

withCopyright

public MicrosoftGraphAudio withCopyright(String copyright)

Set the copyright property: Copyright information for the audio file.

Parameters:

copyright - the copyright value to set.

Returns:

the MicrosoftGraphAudio object itself.

withDisc

public MicrosoftGraphAudio withDisc(Integer disc)

Set the disc property: The number of the disc this audio file came from.

Parameters:

disc - the disc value to set.

Returns:

the MicrosoftGraphAudio object itself.

withDiscCount

public MicrosoftGraphAudio withDiscCount(Integer discCount)

Set the discCount property: The total number of discs in this album.

Parameters:

discCount - the discCount value to set.

Returns:

the MicrosoftGraphAudio object itself.

withDuration

public MicrosoftGraphAudio withDuration(Long duration)

Set the duration property: Duration of the audio file, expressed in milliseconds.

Parameters:

duration - the duration value to set.

Returns:

the MicrosoftGraphAudio object itself.

withGenre

public MicrosoftGraphAudio withGenre(String genre)

Set the genre property: The genre of this audio file.

Parameters:

genre - the genre value to set.

Returns:

the MicrosoftGraphAudio object itself.

withHasDrm

public MicrosoftGraphAudio withHasDrm(Boolean hasDrm)

Set the hasDrm property: Indicates if the file is protected with digital rights management.

Parameters:

hasDrm - the hasDrm value to set.

Returns:

the MicrosoftGraphAudio object itself.

withIsVariableBitrate

public MicrosoftGraphAudio withIsVariableBitrate(Boolean isVariableBitrate)

Set the isVariableBitrate property: Indicates if the file is encoded with a variable bitrate.

Parameters:

isVariableBitrate - the isVariableBitrate value to set.

Returns:

the MicrosoftGraphAudio object itself.

withTitle

public MicrosoftGraphAudio withTitle(String title)

Set the title property: The title of the audio file.

Parameters:

title - the title value to set.

Returns:

the MicrosoftGraphAudio object itself.

withTrack

public MicrosoftGraphAudio withTrack(Integer track)

Set the track property: The number of the track on the original disc for this audio file.

Parameters:

track - the track value to set.

Returns:

the MicrosoftGraphAudio object itself.

withTrackCount

public MicrosoftGraphAudio withTrackCount(Integer trackCount)

Set the trackCount property: The total number of tracks on the original disc for this audio file.

Parameters:

trackCount - the trackCount value to set.

Returns:

the MicrosoftGraphAudio object itself.

withYear

public MicrosoftGraphAudio withYear(Integer year)

Set the year property: The year the audio file was recorded.

Parameters:

year - the year value to set.

Returns:

the MicrosoftGraphAudio object itself.

year

public Integer year()

Get the year property: The year the audio file was recorded.

Returns:

the year value.

Applies to