RecipeEntity.Builder


public final class RecipeEntity.Builder


Builder class for RecipeEntity.

Summary

Public constructors

Public methods

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

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.