Class MediaItem.Builder
java.lang.Object
com.atlassian.gadgets.opensocial.model.MediaItem.Builder
- Enclosing class:
- MediaItem
A builder that facilitates construction of
MediaItem objects. The final MediaItem
is created by calling the build() method-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns the final constructedMediaItemSet the mime type of theMediaItemunder construction and return thisBuilderto allow further construction to be done.type(MediaItem.Type type) Set the type of theMediaItemunder construction and return thisBuilderto allow further construction to be done.Set the url of theMediaItemunder construction and return thisBuilderto allow further construction to be done.
-
Constructor Details
-
Builder
-
-
Method Details
-
mimeType
Set the mime type of theMediaItemunder construction and return thisBuilderto allow further construction to be done.- Parameters:
mimeType- the mime type to use for theMediaItem- Returns:
- this builder to allow for further construction
-
type
Set the type of theMediaItemunder construction and return thisBuilderto allow further construction to be done.- Parameters:
type- the type to use for theMediaItem- Returns:
- this builder to allow for further construction
-
url
Set the url of theMediaItemunder construction and return thisBuilderto allow further construction to be done.- Parameters:
url- the mime type to use for theMediaItem- Returns:
- this builder to allow for further construction
-
build
Returns the final constructedMediaItem- Returns:
- the
MediaItem
-