Class BusinessUnitResourceIdentifierBuilder
java.lang.Object
com.commercetools.history.models.common.BusinessUnitResourceIdentifierBuilder
- All Implemented Interfaces:
Builder<BusinessUnitResourceIdentifier>
public class BusinessUnitResourceIdentifierBuilder
extends Object
implements 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()
.typeId(ReferenceTypeId.APPROVAL_FLOW)
.build()
-
Constructor Summary
Constructors -
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.Type of resource the value should reference.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 instancetypeId(ReferenceTypeId typeId) Type of resource the value should reference.
-
Constructor Details
-
BusinessUnitResourceIdentifierBuilder
public BusinessUnitResourceIdentifierBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced BusinessUnit. Required if
keyis absent.- Parameters:
id- value to be set- Returns:
- Builder
-
key
Unique key of the referenced BusinessUnit. Required if
idis absent.- Parameters:
key- value to be set- Returns:
- Builder
-
typeId
Type of resource the value should reference. Supported resource type identifiers are:
- Parameters:
typeId- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced BusinessUnit. Required if
keyis absent.- Returns:
- id
-
getKey
Unique key of the referenced BusinessUnit. Required if
idis absent.- Returns:
- key
-
getTypeId
Type of resource the value should reference. Supported resource type identifiers are:
- Returns:
- typeId
-
build
builds BusinessUnitResourceIdentifier with checking for non-null required values- Specified by:
buildin interfaceBuilder<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
-