# ShoppingReorderCluster

# ShoppingReorderCluster

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/com/google/android/engage/shopping/datamodel/ShoppingReorderCluster "View this page in Kotlin")\|Java  

<br />

```
public final class ShoppingReorderCluster
```

<br />

*** ** * ** ***

An object representing a Shopping Reorder Cluster.

## Summary

|                                                                                                                                                          ### Nested types                                                                                                                                                          |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `public final class `[ShoppingReorderCluster.Builder](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingReorderCluster.Builder) Builder class for[ShoppingReorderCluster](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingReorderCluster). |

|                                                                                         ### Public methods                                                                                         |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Uri](https://developer.android.com/reference/android/net/Uri.html)                                                                                                                                | [getActionLinkUri](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingReorderCluster#getActionLinkUri())`()` Returns the action link of the shopping cart.                                |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                             | [getActionText](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingReorderCluster#getActionText())`()` Returns the action text of the shopping cart. e.g. "View Cart"                     |
| `int`                                                                                                                                                                                              | [getClusterType](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingReorderCluster#getClusterType())`()`                                                                                  |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[DisplayTimeWindow](https://developer.android.com/reference/com/google/android/engage/common/datamodel/DisplayTimeWindow)`>` | [getDisplayTimeWindows](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingReorderCluster#getDisplayTimeWindows())`()` Returns the display time window associated with the shopping cart. |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                                                   | [getItemLabels](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingReorderCluster#getItemLabels())`()` Returns the labels of the items in the shopping cart                               |
| `int`                                                                                                                                                                                              | [getNumberOfItems](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingReorderCluster#getNumberOfItems())`()` Returns the number of items in the shopping cart.                            |
| [List](https://developer.android.com/reference/java/util/List.html)`<`[Image](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image)`>`                         | [getPosterImages](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingReorderCluster#getPosterImages())`()` Returns the poster images of the items in the shopping cart.                   |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>`                             | [getTitle](https://developer.android.com/reference/com/google/android/engage/shopping/datamodel/ShoppingReorderCluster#getTitle())`()` Returns the title of the shopping cart.                                                      |

## Public methods

### getActionLinkUri

```
public Uri getActionLinkUri()
```

Returns the action link of the shopping cart.  

### getActionText

```
public Optional<String> getActionText()
```

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

### getClusterType

```
public int getClusterType()
```  

### getDisplayTimeWindows

```
public List<DisplayTimeWindow> getDisplayTimeWindows()
```

Returns the display time window associated with the shopping cart.

This can be used for several use cases like shopping cart expiry time window.  

### getItemLabels

```
public List<String> getItemLabels()
```

Returns the labels of the items in the shopping cart  

### getNumberOfItems

```
public int getNumberOfItems()
```

Returns the number of items in the shopping cart.  

### getPosterImages

```
public List<Image> getPosterImages()
```

Returns the poster images of the items in the shopping cart.  

### getTitle

```
public Optional<String> getTitle()
```

Returns the title of the shopping cart.