Interface BusinessUnitKeyReference
- All Superinterfaces:
KeyReference
References a business unit by its key.
Example to create an instance using the builder pattern
BusinessUnitKeyReference businessUnitKeyReference = BusinessUnitKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for BusinessUnitKeyReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for BusinessUnitKeyReferencebuilder(BusinessUnitKeyReference template) create builder for BusinessUnitKeyReference instancecopyDeep()static BusinessUnitKeyReferencedeepCopy(BusinessUnitKeyReference template) factory method to create a deep copy of BusinessUnitKeyReference@NotNull StringgetKey()User-defined unique identifier of the referenced Type.static BusinessUnitKeyReferenceof()factory methodstatic BusinessUnitKeyReferenceof(BusinessUnitKeyReference template) factory method to create a shallow copy BusinessUnitKeyReferencevoidUser-defined unique identifier of the referenced Type.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitKeyReference>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getTypeId, withKeyReference
-
Field Details
-
BUSINESS_UNIT
discriminator value for BusinessUnitKeyReference- See Also:
-
-
Method Details
-
getKey
User-defined unique identifier of the referenced Type.
- Specified by:
getKeyin interfaceKeyReference- Returns:
- key
-
setKey
User-defined unique identifier of the referenced Type.
- Specified by:
setKeyin interfaceKeyReference- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitKeyReference
-
of
factory method to create a shallow copy BusinessUnitKeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
BusinessUnitKeyReference copyDeep()- Specified by:
copyDeepin interfaceKeyReference
-
deepCopy
factory method to create a deep copy of BusinessUnitKeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitKeyReference- Returns:
- builder
-
builder
create builder for BusinessUnitKeyReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitKeyReference
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-