Class BusinessUnitSearchResultBuilder
java.lang.Object
com.commercetools.api.models.business_unit_search.BusinessUnitSearchResultBuilder
- All Implemented Interfaces:
Builder<BusinessUnitSearchResult>
public class BusinessUnitSearchResultBuilder
extends Object
implements Builder<BusinessUnitSearchResult>
BusinessUnitSearchResultBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitSearchResult businessUnitSearchResult = BusinessUnitSearchResult.builder()
.id("{id}")
.relevance(0.3)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitSearchResult with checking for non-null required valuesbuilds BusinessUnitSearchResult without checking for non-null required valuesgetId()
id
of the BusinessUnit matching the search query.How closely this customer matches the search query.id
of the BusinessUnit matching the search query.of()
factory method for an instance of BusinessUnitSearchResultBuilderof
(BusinessUnitSearchResult template) create builder for BusinessUnitSearchResult instanceHow closely this customer matches the search query.
-
Constructor Details
-
BusinessUnitSearchResultBuilder
public BusinessUnitSearchResultBuilder()
-
-
Method Details
-
id
id
of the BusinessUnit matching the search query.- Parameters:
id
- value to be set- Returns:
- Builder
-
relevance
How closely this customer matches the search query.
- Parameters:
relevance
- value to be set- Returns:
- Builder
-
getId
id
of the BusinessUnit matching the search query.- Returns:
- id
-
getRelevance
How closely this customer matches the search query.
- Returns:
- relevance
-
build
builds BusinessUnitSearchResult with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitSearchResult>
- Returns:
- BusinessUnitSearchResult
-
buildUnchecked
builds BusinessUnitSearchResult without checking for non-null required values- Returns:
- BusinessUnitSearchResult
-
of
factory method for an instance of BusinessUnitSearchResultBuilder- Returns:
- builder
-
of
create builder for BusinessUnitSearchResult instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-