Builder to construct an Indexable
for a song or other music recording.
For reference, see: //schema.org/MusicRecording.
Public Method Summary
MusicRecordingBuilder | |
MusicRecordingBuilder |
setDuration(int durationInSeconds)
Sets the duration of the item in seconds.
|
MusicRecordingBuilder | |
MusicRecordingBuilder |
setInPlaylist(MusicPlaylistBuilder...
musicPlaylists)
Sets the playlist to which this recording belongs.
|
Inherited Method Summary
final Indexable |
build()
Finalize building the object.
|
T | |
<S extends IndexableBuilder<?>> T | |
T |
put(String key,
Indexable...
values)
Sets one or multiple
Indexable
values for a property, replacing its previous values.
|
T | |
T | |
T | |
final T | |
T | |
final T | |
final <S extends IndexableBuilder<?>> T |
setIsPartOf(S... collections)
Sets the sub-group or collection that this Indexable is part of.
|
final T | |
T | |
final T | |
final T | |
final T |
Public Methods
public MusicRecordingBuilder setByArtist (MusicGroupBuilder artist)
Sets the artist who performed this music recording.
Parameters
artist | The artist who performed the music recording. |
---|
public MusicRecordingBuilder setDuration (int durationInSeconds)
Sets the duration of the item in seconds.
Parameters
durationInSeconds | The duration of the item in seconds. |
---|
public MusicRecordingBuilder setInAlbum (MusicAlbumBuilder musicAlbum)
Sets the album to which this recording belongs.
Parameters
musicAlbum | The album to which this recording belongs. |
---|
public MusicRecordingBuilder setInPlaylist (MusicPlaylistBuilder... musicPlaylists)
Sets the playlist to which this recording belongs.
Parameters
musicPlaylists | The playlists to which this recording belongs. |
---|