# RecipeEntity.Builder

# RecipeEntity.Builder

*** ** * ** ***

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


```
class RecipeEntity.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

|                                                          ### Public functions                                                           |
|-----------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [RecipeEntity.Builder](https://developer.android.com/reference/kotlin/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/kotlin/com/google/android/engage/food/datamodel/RecipeEntity.Builder#addPosterImage(com.google.android.engage.common.datamodel.Image))`(image: `[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!)` Add a poster image of the entity.                                                                                                                                                                                                                       |
| [RecipeEntity.Builder](https://developer.android.com/reference/kotlin/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/kotlin/com/google/android/engage/food/datamodel/RecipeEntity.Builder#addPosterImages(java.util.List<com.google.android.engage.common.datamodel.Image>))`(images: (`[Mutable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-list/index.html)`<`[Image](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Image)`!>!)` Add poster images of the entity. |
| [RecipeEntity](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RecipeEntity)`!`                 | [build](https://developer.android.com/reference/kotlin/com/google/android/engage/food/datamodel/RecipeEntity.Builder#build())`()`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [RecipeEntity.Builder](https://developer.android.com/reference/kotlin/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/kotlin/com/google/android/engage/food/datamodel/RecipeEntity.Builder#setActionLinkUri(android.net.Uri))`(actionLinkUri: `[Uri](https://developer.android.com/reference/android/net/Uri.html)`!)` Sets the action link uri for the shopping entity.                                                                                                                                                                                                                                                                 |
| [RecipeEntity.Builder](https://developer.android.com/reference/kotlin/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/kotlin/com/google/android/engage/food/datamodel/RecipeEntity.Builder#setAuthor(java.lang.String))`(author: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the author name of the recipe.                                                                                                                                                                                                                                                                                      |
| [RecipeEntity.Builder](https://developer.android.com/reference/kotlin/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/kotlin/com/google/android/engage/food/datamodel/RecipeEntity.Builder#setCallout(java.lang.String))`(callout: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the callout of the recipe. e.g. "Trending under vegan"                                                                                                                                                                                                                                                           |
| [RecipeEntity.Builder](https://developer.android.com/reference/kotlin/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/kotlin/com/google/android/engage/food/datamodel/RecipeEntity.Builder#setCategory(java.lang.String))`(category: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the category of the recipe. e.g. "Greek"                                                                                                                                                                                                                                                                      |
| [RecipeEntity.Builder](https://developer.android.com/reference/kotlin/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/kotlin/com/google/android/engage/food/datamodel/RecipeEntity.Builder#setCookTime(java.lang.String))`(cookTime: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the cook time for the recipe. e.g. "Under 3 hours"                                                                                                                                                                                                                                                            |
| [RecipeEntity.Builder](https://developer.android.com/reference/kotlin/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/kotlin/com/google/android/engage/food/datamodel/RecipeEntity.Builder#setDescription(java.lang.String))`(description: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the description of the recipe.                                                                                                                                                                                                                                                                       |
| [RecipeEntity.Builder](https://developer.android.com/reference/kotlin/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/kotlin/com/google/android/engage/food/datamodel/RecipeEntity.Builder#setEntityId(java.lang.String))`(entityId: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets content id of the entity.                                                                                                                                                                                                                                                                                     |
| [RecipeEntity.Builder](https://developer.android.com/reference/kotlin/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/kotlin/com/google/android/engage/food/datamodel/RecipeEntity.Builder#setRating(com.google.android.engage.common.datamodel.Rating))`(rating: `[Rating](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Rating)`!)` Sets the rating for the recipe entity.                                                                                                                                                                                                                        |
| [RecipeEntity.Builder](https://developer.android.com/reference/kotlin/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/kotlin/com/google/android/engage/food/datamodel/RecipeEntity.Builder#setTitle(java.lang.String))`(title: `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!)` Sets the title of the recipe entity.                                                                                                                                                                                                                                                                                        |

## Public constructors

### Builder

```
Builder()
```  

## Public functions

### addPosterImage

```
@CanIgnoreReturnValue
fun addPosterImage(image: Image!): RecipeEntity.Builder!
```

Add a poster image of the entity.

Required.  

### addPosterImages

```
@CanIgnoreReturnValue
fun addPosterImages(images: (Mutable)List<Image!>!): RecipeEntity.Builder!
```

Add poster images of the entity.

Required.  

### build

```
fun build(): RecipeEntity!
```  

### setActionLinkUri

```
@CanIgnoreReturnValue
fun setActionLinkUri(actionLinkUri: Uri!): RecipeEntity.Builder!
```

Sets the action link uri for the shopping entity.

Required.  

### setAuthor

```
@CanIgnoreReturnValue
fun setAuthor(author: String!): RecipeEntity.Builder!
```

Sets the author name of the recipe.

Optional.  

### setCallout

```
@CanIgnoreReturnValue
fun setCallout(callout: String!): RecipeEntity.Builder!
```

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

Optional.  

### setCategory

```
@CanIgnoreReturnValue
fun setCategory(category: String!): RecipeEntity.Builder!
```

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

Optional.  

### setCookTime

```
@CanIgnoreReturnValue
fun setCookTime(cookTime: String!): RecipeEntity.Builder!
```

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

Optional.  

### setDescription

```
@CanIgnoreReturnValue
fun setDescription(description: String!): RecipeEntity.Builder!
```

Sets the description of the recipe.

Optional.  

### setEntityId

```
@CanIgnoreReturnValue
fun setEntityId(entityId: String!): RecipeEntity.Builder!
```

Sets content id of the entity.

Optional.  

### setRating

```
@CanIgnoreReturnValue
fun setRating(rating: Rating!): RecipeEntity.Builder!
```

Sets the rating for the recipe entity.

Optional.  

### setTitle

```
@CanIgnoreReturnValue
fun setTitle(title: String!): RecipeEntity.Builder!
```

Sets the title of the recipe entity.

Optional.