Class MovieDTO.ReleaseDateDTO.Builder
- java.lang.Object
-
- com.github.m0nk3y2k4.thetvdb.internal.api.impl.model.data.MovieDTO.ReleaseDateDTO.Builder
-
- Enclosing class:
- MovieDTO.ReleaseDateDTO
public static class MovieDTO.ReleaseDateDTO.Builder extends Object
Builder used to create a new immutableMovieDTO.ReleaseDateDTOimplementation
This builder provides a fluent API for setting certain object properties and creating a new immutableMovieDTO.ReleaseDateDTOinstance based on these properties. New builders may be initialized with some existing DTO instance, which presets the builders properties to the values of the given DTO, still retaining the option to make additional changes before actually building a new immutable object.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MovieDTO.ReleaseDateDTObuild()Builds a newReleaseDateDTO.MovieDTO.ReleaseDateDTO.Buildercountry(String country)Initializes the value for thecountryattribute.MovieDTO.ReleaseDateDTO.Builderdate(String date)Initializes the value for thedateattribute.MovieDTO.ReleaseDateDTO.Builderfrom(Movie.ReleaseDate instance)Fill a builder with attribute values from the providedcom.github.m0nk3y2k4.thetvdb.api.model.data.Movie.ReleaseDateinstance.MovieDTO.ReleaseDateDTO.Builderfrom(MovieDTO.ReleaseDateDTO instance)Fill a builder with attribute values from the providedcom.github.m0nk3y2k4.thetvdb.internal.api.impl.model.data.MovieDTO.ReleaseDateDTOinstance.MovieDTO.ReleaseDateDTO.Buildertype(String type)Initializes the value for thetypeattribute.
-
-
-
Method Detail
-
from
public final MovieDTO.ReleaseDateDTO.Builder from(Movie.ReleaseDate instance)
Fill a builder with attribute values from the providedcom.github.m0nk3y2k4.thetvdb.api.model.data.Movie.ReleaseDateinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
public final MovieDTO.ReleaseDateDTO.Builder from(MovieDTO.ReleaseDateDTO instance)
Fill a builder with attribute values from the providedcom.github.m0nk3y2k4.thetvdb.internal.api.impl.model.data.MovieDTO.ReleaseDateDTOinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
country
public final MovieDTO.ReleaseDateDTO.Builder country(@Nullable String country)
Initializes the value for thecountryattribute.- Parameters:
country- The value for country (can benull)- Returns:
thisbuilder for use in a chained invocation
-
date
public final MovieDTO.ReleaseDateDTO.Builder date(@Nullable String date)
Initializes the value for thedateattribute.- Parameters:
date- The value for date (can benull)- Returns:
thisbuilder for use in a chained invocation
-
type
public final MovieDTO.ReleaseDateDTO.Builder type(@Nullable String type)
Initializes the value for thetypeattribute.- Parameters:
type- The value for type (can benull)- Returns:
thisbuilder for use in a chained invocation
-
build
public MovieDTO.ReleaseDateDTO build()
Builds a newReleaseDateDTO.- Returns:
- An immutable instance of ReleaseDateDTO
- Throws:
IllegalStateException- if any required attributes are missing
-
-