Interface CustomerGroupReference
- All Superinterfaces:
Identifiable<CustomerGroup>,IdentifiableObjHolder<CustomerGroup>,Reference,ReferenceMixin
public interface CustomerGroupReference
extends Reference, Identifiable<CustomerGroup>, IdentifiableObjHolder<CustomerGroup>
Reference to a CustomerGroup.
Example to create an instance using the builder pattern
CustomerGroupReference customerGroupReference = CustomerGroupReference.builder()
.id("{id}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomerGroupReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerGroupReferencebuilder(CustomerGroupReference template) create builder for CustomerGroupReference instancecopyDeep()static CustomerGroupReferencedeepCopy(CustomerGroupReference template) factory method to create a deep copy of CustomerGroupReference@NotNull StringgetId()Unique identifier of the referenced CustomerGroup.@Valid CustomerGroupgetObj()Contains the representation of the expanded CustomerGroup.static CustomerGroupReferenceof()factory methodstatic CustomerGroupReferenceof(CustomerGroupReference template) factory method to create a shallow copy CustomerGroupReferencevoidUnique identifier of the referenced CustomerGroup.voidsetObj(CustomerGroup obj) Contains the representation of the expanded CustomerGroup.static com.fasterxml.jackson.core.type.TypeReference<CustomerGroupReference>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
-
CUSTOMER_GROUP
discriminator value for CustomerGroupReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded CustomerGroup. Only present in responses to requests with Reference Expansion for CustomerGroups.
- Specified by:
getObjin interfaceIdentifiableObjHolder<CustomerGroup>- Returns:
- obj
-
getId
Unique identifier of the referenced CustomerGroup.
- Specified by:
getIdin interfaceIdentifiable<CustomerGroup>- Specified by:
getIdin interfaceReference- Specified by:
getIdin interfaceReferenceMixin- Returns:
- id
-
setObj
Contains the representation of the expanded CustomerGroup. Only present in responses to requests with Reference Expansion for CustomerGroups.
- Parameters:
obj- value to be set
-
setId
Unique identifier of the referenced CustomerGroup.
-
of
factory method- Returns:
- instance of CustomerGroupReference
-
of
factory method to create a shallow copy CustomerGroupReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerGroupReference copyDeep() -
deepCopy
factory method to create a deep copy of CustomerGroupReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerGroupReference- Returns:
- builder
-
builder
create builder for CustomerGroupReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerGroupReference
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
-