Class APIResponseDTO.ErrorsDTO.Builder
- java.lang.Object
 - 
- com.github.m0nk3y2k4.thetvdb.internal.api.impl.model.APIResponseDTO.ErrorsDTO.Builder
 
 
- 
- Enclosing class:
 - APIResponseDTO.ErrorsDTO
 
public static class APIResponseDTO.ErrorsDTO.Builder extends Object
Builder used to create a new immutableAPIResponseDTO.ErrorsDTOimplementation
This builder provides a fluent API for setting certain object properties and creating a new immutableAPIResponseDTO.ErrorsDTOinstance 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
 
 - 
 
- 
- 
Method Detail
- 
from
public final APIResponseDTO.ErrorsDTO.Builder from(APIResponse.Errors instance)
Fill a builder with attribute values from the providedcom.github.m0nk3y2k4.thetvdb.api.model.APIResponse.Errorsinstance.- Parameters:
 instance- The instance from which to copy values- Returns:
 thisbuilder for use in a chained invocation
 
- 
from
public final APIResponseDTO.ErrorsDTO.Builder from(APIResponseDTO.ErrorsDTO instance)
Fill a builder with attribute values from the providedcom.github.m0nk3y2k4.thetvdb.internal.api.impl.model.APIResponseDTO.ErrorsDTOinstance.- Parameters:
 instance- The instance from which to copy values- Returns:
 thisbuilder for use in a chained invocation
 
- 
addInvalidFilters
public final APIResponseDTO.ErrorsDTO.Builder addInvalidFilters(String element)
Adds one element toinvalidFilterslist.- Parameters:
 element- A invalidFilters element- Returns:
 thisbuilder for use in a chained invocation
 
- 
addInvalidFilters
public final APIResponseDTO.ErrorsDTO.Builder addInvalidFilters(String... elements)
Adds elements toinvalidFilterslist.- Parameters:
 elements- An array of invalidFilters elements- Returns:
 thisbuilder for use in a chained invocation
 
- 
invalidFilters
public final APIResponseDTO.ErrorsDTO.Builder invalidFilters(Iterable<String> elements)
Sets or replaces all elements forinvalidFilterslist.- Parameters:
 elements- An iterable of invalidFilters elements- Returns:
 thisbuilder for use in a chained invocation
 
- 
addAllInvalidFilters
public final APIResponseDTO.ErrorsDTO.Builder addAllInvalidFilters(Iterable<String> elements)
Adds elements toinvalidFilterslist.- Parameters:
 elements- An iterable of invalidFilters elements- Returns:
 thisbuilder for use in a chained invocation
 
- 
invalidLanguage
public final APIResponseDTO.ErrorsDTO.Builder invalidLanguage(@Nullable String invalidLanguage)
Initializes the value for theinvalidLanguageattribute.- Parameters:
 invalidLanguage- The value for invalidLanguage (can benull)- Returns:
 thisbuilder for use in a chained invocation
 
- 
addInvalidQueryParams
public final APIResponseDTO.ErrorsDTO.Builder addInvalidQueryParams(String element)
Adds one element toinvalidQueryParamslist.- Parameters:
 element- A invalidQueryParams element- Returns:
 thisbuilder for use in a chained invocation
 
- 
addInvalidQueryParams
public final APIResponseDTO.ErrorsDTO.Builder addInvalidQueryParams(String... elements)
Adds elements toinvalidQueryParamslist.- Parameters:
 elements- An array of invalidQueryParams elements- Returns:
 thisbuilder for use in a chained invocation
 
- 
invalidQueryParams
public final APIResponseDTO.ErrorsDTO.Builder invalidQueryParams(Iterable<String> elements)
Sets or replaces all elements forinvalidQueryParamslist.- Parameters:
 elements- An iterable of invalidQueryParams elements- Returns:
 thisbuilder for use in a chained invocation
 
- 
addAllInvalidQueryParams
public final APIResponseDTO.ErrorsDTO.Builder addAllInvalidQueryParams(Iterable<String> elements)
Adds elements toinvalidQueryParamslist.- Parameters:
 elements- An iterable of invalidQueryParams elements- Returns:
 thisbuilder for use in a chained invocation
 
- 
build
public APIResponseDTO.ErrorsDTO build()
Builds a newErrorsDTO.- Returns:
 - An immutable instance of ErrorsDTO
 - Throws:
 IllegalStateException- if any required attributes are missing
 
 - 
 
 -