RecommendationCluster.Builder

public final class RecommendationCluster.Builder


Builder class for RecommendationCluster.

Summary

Public constructors

Public methods

RecommendationCluster.Builder

Adds display time windows for the recommendation cluster.

RecommendationCluster.Builder

Adds a display time window for the recommendation cluster.

RecommendationCluster.Builder

Add an Entity.

RecommendationCluster
RecommendationCluster.Builder

Set the action text associated with the RecommendationCluster.

RecommendationCluster.Builder

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

RecommendationCluster.Builder

Set the subtitle of the RecommendationCluster.

RecommendationCluster.Builder

Set the title of the RecommendationCluster.

Public constructors

Builder

public Builder()

Public methods

addAllDisplayTimeWindow

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

Adds display time windows for the recommendation cluster.

Optional.

addDisplayTimeWindow

@CanIgnoreReturnValue
public RecommendationCluster.Builder addDisplayTimeWindow(DisplayTimeWindow displayTimeWindow)

Adds a display time window for the recommendation cluster.

Optional.

addEntity

@CanIgnoreReturnValue
public RecommendationCluster.Builder addEntity(Entity entity)

Add an Entity.

Required.

build

public RecommendationCluster build()

setActionText

@CanIgnoreReturnValue
public RecommendationCluster.Builder setActionText(String actionText)

Set the action text associated with the RecommendationCluster.

Optional.

setActionUri

@CanIgnoreReturnValue
public RecommendationCluster.Builder setActionUri(Uri actionUri)

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

Optional.

setSubtitle

@CanIgnoreReturnValue
public RecommendationCluster.Builder setSubtitle(String subtitle)

Set the subtitle of the RecommendationCluster.

Optional.

setTitle

@CanIgnoreReturnValue
public RecommendationCluster.Builder setTitle(String title)

Set the title of the RecommendationCluster.

Required.