Class VideoResult.Builder
java.lang.Object
net.ygbstudio.jbrave.core.domain.dto.result.Result.Builder
net.ygbstudio.jbrave.core.domain.dto.result.VideoResult.Builder
- Enclosing class:
VideoResult
Builder for
VideoResult instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the age of the video.@NotNull VideoResultbuild()Builds a newVideoResultfrom the current builder state.Sets the meta URL.Sets the thumbnail.Sets the video type.Sets the video data.Methods inherited from class net.ygbstudio.jbrave.core.domain.dto.result.Result.Builder
description, familyFriendly, fetchedContentTimestamp, isSourceBoth, isSourceLocal, language, pageAge, pageFetched, profile, title, url
-
Constructor Details
-
Builder
public Builder()Creates a new builder with all fields unset.
-
-
Method Details
-
type
Sets the video type.- Parameters:
type- the video type- Returns:
- this builder
-
video
Sets the video data.- Parameters:
video- the video data- Returns:
- this builder
-
metaUrl
Sets the meta URL.- Parameters:
metaUrl- the meta URL- Returns:
- this builder
-
thumbnail
Sets the thumbnail.- Parameters:
thumbnail- the thumbnail- Returns:
- this builder
-
age
Sets the age of the video.- Parameters:
age- the age- Returns:
- this builder
-
build
Builds a newVideoResultfrom the current builder state.- Overrides:
buildin classResult.Builder- Returns:
- a new
VideoResultinstance
-