Class BusinessUnitResourceIdentifierBuilder
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifierBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<BusinessUnitResourceIdentifier>
public class BusinessUnitResourceIdentifierBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<BusinessUnitResourceIdentifier>
BusinessUnitResourceIdentifierBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitResourceIdentifier businessUnitResourceIdentifier = BusinessUnitResourceIdentifier.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitResourceIdentifier with checking for non-null required valuesbuilds BusinessUnitResourceIdentifier without checking for non-null required valuesgetId()
Unique identifier of the referenced BusinessUnit.getKey()
Unique key of the referenced BusinessUnit.Unique identifier of the referenced BusinessUnit.Unique key of the referenced BusinessUnit.of()
factory method for an instance of BusinessUnitResourceIdentifierBuilderof
(BusinessUnitResourceIdentifier template) create builder for BusinessUnitResourceIdentifier instance
-
Constructor Details
-
BusinessUnitResourceIdentifierBuilder
public BusinessUnitResourceIdentifierBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced BusinessUnit. Either
id
orkey
is required.- Parameters:
id
- value to be set- Returns:
- Builder
-
key
Unique key of the referenced BusinessUnit. Either
id
orkey
is required.- Parameters:
key
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced BusinessUnit. Either
id
orkey
is required.- Returns:
- id
-
getKey
Unique key of the referenced BusinessUnit. Either
id
orkey
is required.- Returns:
- key
-
build
builds BusinessUnitResourceIdentifier with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<BusinessUnitResourceIdentifier>
- Returns:
- BusinessUnitResourceIdentifier
-
buildUnchecked
builds BusinessUnitResourceIdentifier without checking for non-null required values- Returns:
- BusinessUnitResourceIdentifier
-
of
factory method for an instance of BusinessUnitResourceIdentifierBuilder- Returns:
- builder
-
of
create builder for BusinessUnitResourceIdentifier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-