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