RecipeEntity.Builder


class RecipeEntity.Builder


Builder class for RecipeEntity.

Summary

Public constructors

Public functions

RecipeEntity.Builder!

Add a poster image of the entity.

RecipeEntity.Builder!

Add poster images of the entity.

RecipeEntity!
RecipeEntity.Builder!

Sets the action link uri for the shopping entity.

RecipeEntity.Builder!

Sets the author name of the recipe.

RecipeEntity.Builder!

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

RecipeEntity.Builder!

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

RecipeEntity.Builder!

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

RecipeEntity.Builder!

Sets the description of the recipe.

RecipeEntity.Builder!

Sets content id of the entity.

RecipeEntity.Builder!

Sets the rating for the recipe entity.

RecipeEntity.Builder!

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.