Interface BusinessUnitReference
- All Superinterfaces:
Identifiable<BusinessUnit>,IdentifiableObjHolder<BusinessUnit>,Reference,ReferenceMixin
public interface BusinessUnitReference
extends Reference, Identifiable<BusinessUnit>, IdentifiableObjHolder<BusinessUnit>
Reference to a BusinessUnit.
Example to create an instance using the builder pattern
BusinessUnitReference businessUnitReference = BusinessUnitReference.builder()
.id("{id}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for BusinessUnitReference -
Method Summary
Modifier and TypeMethodDescriptionstatic BusinessUnitReferenceBuilderbuilder()builder factory method for BusinessUnitReferencestatic BusinessUnitReferenceBuilderbuilder(BusinessUnitReference template) create builder for BusinessUnitReference instancecopyDeep()static BusinessUnitReferencedeepCopy(BusinessUnitReference template) factory method to create a deep copy of BusinessUnitReference@NotNull StringgetId()Unique identifier of the referenced BusinessUnit.@Valid BusinessUnitgetObj()Contains the representation of the expanded BusinessUnit.static BusinessUnitReferenceof()factory methodstatic BusinessUnitReferenceof(BusinessUnitReference template) factory method to create a shallow copy BusinessUnitReferencevoidUnique identifier of the referenced BusinessUnit.voidsetObj(BusinessUnit obj) Contains the representation of the expanded BusinessUnit.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitReference>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReferenceMethods inherited from interface com.commercetools.api.models.common.ReferenceMixin
toResourceIdentifier
-
Field Details
-
BUSINESS_UNIT
discriminator value for BusinessUnitReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded BusinessUnit. Only present in responses to requests with Reference Expansion for BusinessUnit.
- Specified by:
getObjin interfaceIdentifiableObjHolder<BusinessUnit>- Returns:
- obj
-
getId
Unique identifier of the referenced BusinessUnit.
- Specified by:
getIdin interfaceIdentifiable<BusinessUnit>- Specified by:
getIdin interfaceReference- Specified by:
getIdin interfaceReferenceMixin- Returns:
- id
-
setObj
Contains the representation of the expanded BusinessUnit. Only present in responses to requests with Reference Expansion for BusinessUnit.
- Parameters:
obj- value to be set
-
setId
Unique identifier of the referenced BusinessUnit.
-
of
factory method- Returns:
- instance of BusinessUnitReference
-
of
factory method to create a shallow copy BusinessUnitReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
BusinessUnitReference copyDeep() -
deepCopy
factory method to create a deep copy of BusinessUnitReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitReference- Returns:
- builder
-
builder
create builder for BusinessUnitReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitReference
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
-