Class ProjectChangeCountriesActionBuilder
java.lang.Object
com.commercetools.api.models.project.ProjectChangeCountriesActionBuilder
- All Implemented Interfaces:
Builder<ProjectChangeCountriesAction>
public class ProjectChangeCountriesActionBuilder
extends Object
implements Builder<ProjectChangeCountriesAction>
ProjectChangeCountriesActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ProjectChangeCountriesAction projectChangeCountriesAction = ProjectChangeCountriesAction.builder()
.plusCountries(countriesBuilder -> countriesBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ProjectChangeCountriesAction with checking for non-null required valuesbuilds ProjectChangeCountriesAction without checking for non-null required valuesNew value to set.New value to set.New value to set.of()
factory method for an instance of ProjectChangeCountriesActionBuilderof
(ProjectChangeCountriesAction template) create builder for ProjectChangeCountriesAction instanceplusCountries
(String... countries) New value to set.
-
Constructor Details
-
ProjectChangeCountriesActionBuilder
public ProjectChangeCountriesActionBuilder()
-
-
Method Details
-
countries
New value to set. Must not be empty.
- Parameters:
countries
- value to be set- Returns:
- Builder
-
countries
New value to set. Must not be empty.
- Parameters:
countries
- value to be set- Returns:
- Builder
-
plusCountries
New value to set. Must not be empty.
- Parameters:
countries
- value to be set- Returns:
- Builder
-
getCountries
New value to set. Must not be empty.
- Returns:
- countries
-
build
builds ProjectChangeCountriesAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ProjectChangeCountriesAction>
- Returns:
- ProjectChangeCountriesAction
-
buildUnchecked
builds ProjectChangeCountriesAction without checking for non-null required values- Returns:
- ProjectChangeCountriesAction
-
of
factory method for an instance of ProjectChangeCountriesActionBuilder- Returns:
- builder
-
of
create builder for ProjectChangeCountriesAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-