Class UIMetaMedia.Builder
- java.lang.Object
-
- com.ibm.cloud.platform_services.global_catalog.v1.model.UIMetaMedia.Builder
-
- Enclosing class:
- UIMetaMedia
public static class UIMetaMedia.Builder extends java.lang.ObjectBuilder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UIMetaMedia.BuilderaddSource(UIMediaSourceMetaData source)Adds a new element to source.UIMetaMediabuild()Builds a UIMetaMedia.UIMetaMedia.Buildercaption(java.lang.String caption)Set the caption.UIMetaMedia.Buildersource(java.util.List<UIMediaSourceMetaData> source)Set the source.UIMetaMedia.BuilderthumbnailUrl(java.lang.String thumbnailUrl)Set the thumbnailUrl.UIMetaMedia.Buildertype(java.lang.String type)Set the type.UIMetaMedia.Builderurl(java.lang.String url)Set the url.
-
-
-
Method Detail
-
build
public UIMetaMedia build()
Builds a UIMetaMedia.- Returns:
- the new UIMetaMedia instance
-
addSource
public UIMetaMedia.Builder addSource(UIMediaSourceMetaData source)
Adds a new element to source.- Parameters:
source- the new element to be added- Returns:
- the UIMetaMedia builder
-
caption
public UIMetaMedia.Builder caption(java.lang.String caption)
Set the caption.- Parameters:
caption- the caption- Returns:
- the UIMetaMedia builder
-
thumbnailUrl
public UIMetaMedia.Builder thumbnailUrl(java.lang.String thumbnailUrl)
Set the thumbnailUrl.- Parameters:
thumbnailUrl- the thumbnailUrl- Returns:
- the UIMetaMedia builder
-
type
public UIMetaMedia.Builder type(java.lang.String type)
Set the type.- Parameters:
type- the type- Returns:
- the UIMetaMedia builder
-
url
public UIMetaMedia.Builder url(java.lang.String url)
Set the url.- Parameters:
url- the url- Returns:
- the UIMetaMedia builder
-
source
public UIMetaMedia.Builder source(java.util.List<UIMediaSourceMetaData> source)
Set the source. Existing source will be replaced.- Parameters:
source- the source- Returns:
- the UIMetaMedia builder
-
-