Class StoreCountryBuilder
java.lang.Object
com.commercetools.history.models.common.StoreCountryBuilder
- All Implemented Interfaces:
Builder<StoreCountry>
StoreCountryBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StoreCountry storeCountry = StoreCountry.builder()
.code("{code}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StoreCountry with checking for non-null required valuesbuilds StoreCountry without checking for non-null required valuesTwo-digit country code as per ISO 3166-1 alpha-2.getCode()
Two-digit country code as per ISO 3166-1 alpha-2.static StoreCountryBuilder
of()
factory method for an instance of StoreCountryBuilderstatic StoreCountryBuilder
of
(StoreCountry template) create builder for StoreCountry instance
-
Constructor Details
-
StoreCountryBuilder
public StoreCountryBuilder()
-
-
Method Details
-
code
Two-digit country code as per ISO 3166-1 alpha-2.
- Parameters:
code
- value to be set- Returns:
- Builder
-
getCode
Two-digit country code as per ISO 3166-1 alpha-2.
- Returns:
- code
-
build
builds StoreCountry with checking for non-null required values- Specified by:
build
in interfaceBuilder<StoreCountry>
- Returns:
- StoreCountry
-
buildUnchecked
builds StoreCountry without checking for non-null required values- Returns:
- StoreCountry
-
of
factory method for an instance of StoreCountryBuilder- Returns:
- builder
-
of
create builder for StoreCountry instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-