ShoppingReorderCluster.Builder


public final class ShoppingReorderCluster.Builder


Builder class for ShoppingReorderCluster.

Summary

Public constructors

Public methods

ShoppingReorderCluster.Builder

Adds the display time window for the shopping cart.

ShoppingReorderCluster.Builder

Adds the display time window for the shopping cart.

ShoppingReorderCluster.Builder

Add a item label in the shopping cart cluster

ShoppingReorderCluster.Builder

Add a list of item labels in the shopping cart cluster

ShoppingReorderCluster.Builder

Adds a poster image of the items in the shopping cart.

ShoppingReorderCluster.Builder

Adds poster images of the items in the shopping cart.

ShoppingReorderCluster
ShoppingReorderCluster.Builder

Sets the action link uri for the shopping cart.

ShoppingReorderCluster.Builder

Sets the action text of the shopping cart. e.g. "View Cart"

ShoppingReorderCluster.Builder

Sets the number of items in the shopping cart.

ShoppingReorderCluster.Builder

Sets the title of the shopping cart.

Public constructors

Builder

public Builder()

Public methods

addAllDisplayTimeWindow

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

Adds the display time window for the shopping cart.

Optional.

addDisplayTimeWindow

@CanIgnoreReturnValue
public ShoppingReorderCluster.Builder addDisplayTimeWindow(DisplayTimeWindow displayTimeWindow)

Adds the display time window for the shopping cart.

Optional.

addItemLabel

@CanIgnoreReturnValue
public ShoppingReorderCluster.Builder addItemLabel(String itemLabel)

Add a item label in the shopping cart cluster

Optional.

addItemLabels

@CanIgnoreReturnValue
public ShoppingReorderCluster.Builder addItemLabels(List<String> itemLabels)

Add a list of item labels in the shopping cart cluster

Optional.

addPosterImage

@CanIgnoreReturnValue
public ShoppingReorderCluster.Builder addPosterImage(Image image)

Adds a poster image of the items in the shopping cart.

Optional.

addPosterImages

@CanIgnoreReturnValue
public ShoppingReorderCluster.Builder addPosterImages(List<Image> images)

Adds poster images of the items in the shopping cart.

Optional.

build

public ShoppingReorderCluster build()

setActionLinkUri

@CanIgnoreReturnValue
public ShoppingReorderCluster.Builder setActionLinkUri(Uri actionLinkUri)

Sets the action link uri for the shopping cart.

Required.

setActionText

@CanIgnoreReturnValue
public ShoppingReorderCluster.Builder setActionText(String actionText)

Sets the action text of the shopping cart. e.g. "View Cart"

Optional.

setNumberOfItems

@CanIgnoreReturnValue
public ShoppingReorderCluster.Builder setNumberOfItems(int numberOfItems)

Sets the number of items in the shopping cart.

When set to 0, the cart is empty.

Optional.

setTitle

@CanIgnoreReturnValue
public ShoppingReorderCluster.Builder setTitle(String title)

Sets the title of the shopping cart.

Optional.