Interface BusinessUnitKeyReference
- All Superinterfaces:
KeyReference
,WithKey
KeyReference to a BusinessUnit.
Example to create an instance using the builder pattern
BusinessUnitKeyReference businessUnitKeyReference = BusinessUnitKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitKeyReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for BusinessUnitKeyReferencebuilder
(BusinessUnitKeyReference template) create builder for BusinessUnitKeyReference instancestatic BusinessUnitKeyReference
deepCopy
(BusinessUnitKeyReference template) factory method to create a deep copy of BusinessUnitKeyReference@NotNull String
getKey()
Unique and immutable key of the referenced BusinessUnit.static BusinessUnitKeyReference
of()
factory methodstatic BusinessUnitKeyReference
of
(BusinessUnitKeyReference template) factory method to create a shallow copy BusinessUnitKeyReferencevoid
Unique and immutable key of the referenced BusinessUnit.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitKeyReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.common.KeyReference
getTypeId, withKeyReference
-
Field Details
-
BUSINESS_UNIT
discriminator value for BusinessUnitKeyReference- See Also:
-
-
Method Details
-
getKey
Unique and immutable key of the referenced BusinessUnit.
- Specified by:
getKey
in interfaceKeyReference
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
setKey
Unique and immutable key of the referenced BusinessUnit.
- Specified by:
setKey
in 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
-
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
-