Class Restrictions.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.miscellaneous.Restrictions.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
Restrictions
Builder class for building
Restrictions
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.The restriction reason setter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setReason
The restriction reason setter.- Parameters:
reason
- The track restriction reason.- Returns:
- A
Restrictions.Builder
.
-
build
Description copied from interface:IModelObject.Builder
Build a model object with the information set in the builder object.
The type of the model object and its methods depend on its corresponding implementation.- Returns:
- A model object.
-