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