Interface BusinessUnitResourceIdentifier
- All Superinterfaces:
Identifiable<BusinessUnit>,ResourceIdentifier,WithKey
public interface BusinessUnitResourceIdentifier
extends ResourceIdentifier, Identifiable<BusinessUnit>
ResourceIdentifier to a BusinessUnit. Either id or key is required. If both are set, an InvalidJsonInput error is returned.
Example to create an instance using the builder pattern
BusinessUnitResourceIdentifier businessUnitResourceIdentifier = BusinessUnitResourceIdentifier.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for BusinessUnitResourceIdentifier -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for BusinessUnitResourceIdentifierbuilder(BusinessUnitResourceIdentifier template) create builder for BusinessUnitResourceIdentifier instancecopyDeep()deepCopy(BusinessUnitResourceIdentifier template) factory method to create a deep copy of BusinessUnitResourceIdentifiergetId()Unique identifier of the referenced BusinessUnit.getKey()Unique key of the referenced BusinessUnit.of()factory methodof(BusinessUnitResourceIdentifier template) factory method to create a shallow copy BusinessUnitResourceIdentifiervoidUnique identifier of the referenced BusinessUnit.voidUnique key of the referenced BusinessUnit.static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitResourceIdentifier>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.ResourceIdentifier
getTypeId, withResourceIdentifier
-
Field Details
-
BUSINESS_UNIT
discriminator value for BusinessUnitResourceIdentifier- See Also:
-
-
Method Details
-
getId
String getId()Unique identifier of the referenced BusinessUnit. Required if
keyis absent.- Specified by:
getIdin interfaceIdentifiable<BusinessUnit>- Specified by:
getIdin interfaceResourceIdentifier- Returns:
- id
-
getKey
String getKey()Unique key of the referenced BusinessUnit. Required if
idis absent.- Specified by:
getKeyin interfaceResourceIdentifier- Specified by:
getKeyin interfaceWithKey- Returns:
- key
-
setId
Unique identifier of the referenced BusinessUnit. Required if
keyis absent.- Specified by:
setIdin interfaceResourceIdentifier- Parameters:
id- value to be set
-
setKey
Unique key of the referenced BusinessUnit. Required if
idis absent.- Specified by:
setKeyin interfaceResourceIdentifier- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of BusinessUnitResourceIdentifier
-
of
factory method to create a shallow copy BusinessUnitResourceIdentifier- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
BusinessUnitResourceIdentifier copyDeep()- Specified by:
copyDeepin interfaceResourceIdentifier
-
deepCopy
@Nullable static BusinessUnitResourceIdentifier deepCopy(@Nullable BusinessUnitResourceIdentifier template) factory method to create a deep copy of BusinessUnitResourceIdentifier- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for BusinessUnitResourceIdentifier- Returns:
- builder
-
builder
create builder for BusinessUnitResourceIdentifier instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withBusinessUnitResourceIdentifier
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<BusinessUnitResourceIdentifier> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-