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.ReleaseDateDTO
implementation
This builder provides a fluent API for setting certain object properties and creating a new immutableMovieDTO.ReleaseDateDTO
instance 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.ReleaseDateDTO
build()
Builds a newReleaseDateDTO
.MovieDTO.ReleaseDateDTO.Builder
country(String country)
Initializes the value for thecountry
attribute.MovieDTO.ReleaseDateDTO.Builder
date(String date)
Initializes the value for thedate
attribute.MovieDTO.ReleaseDateDTO.Builder
from(Movie.ReleaseDate instance)
Fill a builder with attribute values from the providedcom.github.m0nk3y2k4.thetvdb.api.model.data.Movie.ReleaseDate
instance.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.ReleaseDateDTO
instance.MovieDTO.ReleaseDateDTO.Builder
type(String type)
Initializes the value for thetype
attribute.
-
-
-
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.ReleaseDate
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder 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.ReleaseDateDTO
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
country
public final MovieDTO.ReleaseDateDTO.Builder country(@Nullable String country)
Initializes the value for thecountry
attribute.- Parameters:
country
- The value for country (can benull
)- Returns:
this
builder for use in a chained invocation
-
date
public final MovieDTO.ReleaseDateDTO.Builder date(@Nullable String date)
Initializes the value for thedate
attribute.- Parameters:
date
- The value for date (can benull
)- Returns:
this
builder for use in a chained invocation
-
type
public final MovieDTO.ReleaseDateDTO.Builder type(@Nullable String type)
Initializes the value for thetype
attribute.- Parameters:
type
- The value for type (can benull
)- Returns:
this
builder 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
-
-