Interface CustomerGroupResourceIdentifier
- All Superinterfaces:
Identifiable<CustomerGroup>,ResourceIdentifier,WithKey
public interface CustomerGroupResourceIdentifier
extends ResourceIdentifier, Identifiable<CustomerGroup>
ResourceIdentifier to a CustomerGroup. Either id or key is required. If both are set, an InvalidJsonInput error is returned.
Example to create an instance using the builder pattern
CustomerGroupResourceIdentifier customerGroupResourceIdentifier = CustomerGroupResourceIdentifier.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomerGroupResourceIdentifier -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerGroupResourceIdentifierbuilder(CustomerGroupResourceIdentifier template) create builder for CustomerGroupResourceIdentifier instancecopyDeep()deepCopy(CustomerGroupResourceIdentifier template) factory method to create a deep copy of CustomerGroupResourceIdentifiergetId()Unique identifier of the referenced CustomerGroup.getKey()User-defined unique identifier of the referenced CustomerGroup.of()factory methodof(CustomerGroupResourceIdentifier template) factory method to create a shallow copy CustomerGroupResourceIdentifiervoidUnique identifier of the referenced CustomerGroup.voidUser-defined unique identifier of the referenced CustomerGroup.static com.fasterxml.jackson.core.type.TypeReference<CustomerGroupResourceIdentifier>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
-
CUSTOMER_GROUP
discriminator value for CustomerGroupResourceIdentifier- See Also:
-
-
Method Details
-
getId
String getId()Unique identifier of the referenced CustomerGroup. Required if
keyis absent.- Specified by:
getIdin interfaceIdentifiable<CustomerGroup>- Specified by:
getIdin interfaceResourceIdentifier- Returns:
- id
-
getKey
String getKey()User-defined unique identifier of the referenced CustomerGroup. Required if
idis absent.- Specified by:
getKeyin interfaceResourceIdentifier- Specified by:
getKeyin interfaceWithKey- Returns:
- key
-
setId
Unique identifier of the referenced CustomerGroup. Required if
keyis absent.- Specified by:
setIdin interfaceResourceIdentifier- Parameters:
id- value to be set
-
setKey
User-defined unique identifier of the referenced CustomerGroup. Required if
idis absent.- Specified by:
setKeyin interfaceResourceIdentifier- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of CustomerGroupResourceIdentifier
-
of
factory method to create a shallow copy CustomerGroupResourceIdentifier- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerGroupResourceIdentifier copyDeep()- Specified by:
copyDeepin interfaceResourceIdentifier
-
deepCopy
@Nullable static CustomerGroupResourceIdentifier deepCopy(@Nullable CustomerGroupResourceIdentifier template) factory method to create a deep copy of CustomerGroupResourceIdentifier- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerGroupResourceIdentifier- Returns:
- builder
-
builder
create builder for CustomerGroupResourceIdentifier instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerGroupResourceIdentifier
default <T> T withCustomerGroupResourceIdentifier(Function<CustomerGroupResourceIdentifier, T> helper) 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<CustomerGroupResourceIdentifier> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-