Class TrackLink.Builder

    • Constructor Detail

      • Builder

        public Builder​()
    • Method Detail

      • setExternalUrls

        public TrackLink.Builder setExternalUrls​(ExternalUrl externalUrls)
        Set external URLs of the track to be built.
        Parameters:
        externalUrls - Known external URLs for this track.
        Returns:
        A TrackLink.Builder.
      • setHref

        public TrackLink.Builder setHref​(String href)
        Set href of Spotify Web API endpoint of the track to be built.
        Parameters:
        href - A link to the Web API endpoint providing full details of the track.
        Returns:
        A TrackLink.Builder.
      • build

        public TrackLink build​()
        Description copied from interface: IModelObject.Builder
        Build a model object with the information set in the builder object.
        The type of the model object and its methods depend on its corresponding implementation.
        Returns:
        A model object.