RecommendationCluster.Builder

public static final class RecommendationCluster.Builder extends Object

Builder class for RecommendationCluster.

Public Constructor Summary

Public Method Summary

RecommendationCluster.Builder
addAllDisplayTimeWindow(List<DisplayTimeWindow> displayTimeWindows)
Adds display time windows for the recommendation cluster.
RecommendationCluster.Builder
addDisplayTimeWindow(DisplayTimeWindow displayTimeWindow)
Adds a display time window for the recommendation cluster.
RecommendationCluster.Builder
addEntity(Entity entity)
Add an Entity.
RecommendationCluster
RecommendationCluster.Builder
setActionText(String actionText)
Set the action text associated with the RecommendationCluster.
RecommendationCluster.Builder
setActionUri(Uri actionUri)
Set the Uri to which user is navigated to on clicking the action text of the RecommendationCluster.
RecommendationCluster.Builder
setSubtitle(String subtitle)
Set the subtitle of the RecommendationCluster.
RecommendationCluster.Builder
setTitle(String title)
Set the title of the RecommendationCluster.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public RecommendationCluster.Builder addAllDisplayTimeWindow (List<DisplayTimeWindow> displayTimeWindows)

Adds display time windows for the recommendation cluster.

Optional.

public RecommendationCluster.Builder addDisplayTimeWindow (DisplayTimeWindow displayTimeWindow)

Adds a display time window for the recommendation cluster.

Optional.

public RecommendationCluster.Builder addEntity (Entity entity)

Add an Entity.

Required.

public RecommendationCluster build ()

public RecommendationCluster.Builder setActionText (String actionText)

Set the action text associated with the RecommendationCluster.

Optional.

public RecommendationCluster.Builder setActionUri (Uri actionUri)

Set the Uri to which user is navigated to on clicking the action text of the RecommendationCluster.

Optional.

public RecommendationCluster.Builder setSubtitle (String subtitle)

Set the subtitle of the RecommendationCluster.

Optional.

public RecommendationCluster.Builder setTitle (String title)

Set the title of the RecommendationCluster.

Required.