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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for BusinessUnitReference -
Method Summary
Modifier and TypeMethodDescriptionstatic BusinessUnitReferenceBuilder
builder()
builder factory method for BusinessUnitReferencestatic BusinessUnitReferenceBuilder
builder
(BusinessUnitReference template) create builder for BusinessUnitReference instancestatic BusinessUnitReference
deepCopy
(BusinessUnitReference template) factory method to create a deep copy of BusinessUnitReference@NotNull String
getId()
Unique identifier of the referenced BusinessUnit.@Valid BusinessUnit
getObj()
Contains the representation of the expanded BusinessUnit.static BusinessUnitReference
of()
factory methodstatic BusinessUnitReference
of
(BusinessUnitReference template) factory method to create a shallow copy BusinessUnitReferencevoid
Unique identifier of the referenced BusinessUnit.void
setObj
(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> T
accessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReference
Methods 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:
getObj
in interfaceIdentifiableObjHolder<BusinessUnit>
- Returns:
- obj
-
getId
Unique identifier of the referenced BusinessUnit.
- Specified by:
getId
in interfaceIdentifiable<BusinessUnit>
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in 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
-
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
-