# RecipeEntity.Builder

# RecipeEntity.Builder

*** ** * ** ***

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

<br />

```
public final class RecipeEntity.Builder
```

<br />

*** ** * ** ***

Builder class for[RecipeEntity](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity).

## Summary

|                                                    ### Public constructors                                                     |
|--------------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder#Builder())`()` |

|                                                      ### Public methods                                                       |
|-------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [RecipeEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImage](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder#addPosterImage(com.google.android.engage.common.datamodel.Image))`(`[Image](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image)` image)` Add a poster image of the entity.                                                                                          |
| [RecipeEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [addPosterImages](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder#addPosterImages(java.util.List<com.google.android.engage.common.datamodel.Image>))`(`[List](https://developer.android.com/reference/java/util/List.html)`<`[Image](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Image)`> images)` Add poster images of the entity. |
| [RecipeEntity](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity)                 | [build](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [RecipeEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setActionLinkUri](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder#setActionLinkUri(android.net.Uri))`(`[Uri](https://developer.android.com/reference/android/net/Uri.html)` actionLinkUri)` Sets the action link uri for the shopping entity.                                                                                                                             |
| [RecipeEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setAuthor](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder#setAuthor(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` author)` Sets the author name of the recipe.                                                                                                                                                           |
| [RecipeEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setCallout](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder#setCallout(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` callout)` Sets the callout of the recipe. e.g. "Trending under vegan"                                                                                                                                |
| [RecipeEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setCategory](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder#setCategory(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` category)` Sets the category of the recipe. e.g. "Greek"                                                                                                                                           |
| [RecipeEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setCookTime](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder#setCookTime(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` cookTime)` Sets the cook time for the recipe. e.g. "Under 3 hours"                                                                                                                                 |
| [RecipeEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setDescription](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder#setDescription(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` description)` Sets the description of the recipe.                                                                                                                                            |
| [RecipeEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setEntityId](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder#setEntityId(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` entityId)` Sets content id of the entity.                                                                                                                                                          |
| [RecipeEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setRating](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder#setRating(com.google.android.engage.common.datamodel.Rating))`(`[Rating](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating)` rating)` Sets the rating for the recipe entity.                                                                                           |
| [RecipeEntity.Builder](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder) | `@`[CanIgnoreReturnValue](https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html) [setTitle](https://developer.android.com/reference/com/google/android/engage/food/datamodel/RecipeEntity.Builder#setTitle(java.lang.String))`(`[String](https://developer.android.com/reference/java/lang/String.html)` title)` Sets the title of the recipe entity.                                                                                                                                                             |

## Public constructors

### Builder

```
public Builder()
```  

## Public methods

### addPosterImage

```
@CanIgnoreReturnValue
public RecipeEntity.Builder addPosterImage(Image image)
```

Add a poster image of the entity.

Required.  

### addPosterImages

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

Add poster images of the entity.

Required.  

### build

```
public RecipeEntity build()
```  

### setActionLinkUri

```
@CanIgnoreReturnValue
public RecipeEntity.Builder setActionLinkUri(Uri actionLinkUri)
```

Sets the action link uri for the shopping entity.

Required.  

### setAuthor

```
@CanIgnoreReturnValue
public RecipeEntity.Builder setAuthor(String author)
```

Sets the author name of the recipe.

Optional.  

### setCallout

```
@CanIgnoreReturnValue
public RecipeEntity.Builder setCallout(String callout)
```

Sets the callout of the recipe. e.g. "Trending under vegan"

Optional.  

### setCategory

```
@CanIgnoreReturnValue
public RecipeEntity.Builder setCategory(String category)
```

Sets the category of the recipe. e.g. "Greek"

Optional.  

### setCookTime

```
@CanIgnoreReturnValue
public RecipeEntity.Builder setCookTime(String cookTime)
```

Sets the cook time for the recipe. e.g. "Under 3 hours"

Optional.  

### setDescription

```
@CanIgnoreReturnValue
public RecipeEntity.Builder setDescription(String description)
```

Sets the description of the recipe.

Optional.  

### setEntityId

```
@CanIgnoreReturnValue
public RecipeEntity.Builder setEntityId(String entityId)
```

Sets content id of the entity.

Optional.  

### setRating

```
@CanIgnoreReturnValue
public RecipeEntity.Builder setRating(Rating rating)
```

Sets the rating for the recipe entity.

Optional.  

### setTitle

```
@CanIgnoreReturnValue
public RecipeEntity.Builder setTitle(String title)
```

Sets the title of the recipe entity.

Optional.