Interface AssociateRoleKeyReference
- All Superinterfaces:
KeyReference,WithKey
KeyReference to an AssociateRole.
Example to create an instance using the builder pattern
AssociateRoleKeyReference associateRoleKeyReference = AssociateRoleKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AssociateRoleKeyReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AssociateRoleKeyReferencebuilder(AssociateRoleKeyReference template) create builder for AssociateRoleKeyReference instancecopyDeep()static AssociateRoleKeyReferencedeepCopy(AssociateRoleKeyReference template) factory method to create a deep copy of AssociateRoleKeyReference@NotNull StringgetKey()Unique and immutable key of the referenced AssociateRole.static AssociateRoleKeyReferenceof()factory methodstatic AssociateRoleKeyReferenceof(AssociateRoleKeyReference template) factory method to create a shallow copy AssociateRoleKeyReferencevoidUnique and immutable key of the referenced AssociateRole.static com.fasterxml.jackson.core.type.TypeReference<AssociateRoleKeyReference>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.KeyReference
getTypeId, withKeyReference
-
Field Details
-
ASSOCIATE_ROLE
discriminator value for AssociateRoleKeyReference- See Also:
-
-
Method Details
-
getKey
Unique and immutable key of the referenced AssociateRole.
- Specified by:
getKeyin interfaceKeyReference- Specified by:
getKeyin interfaceWithKey- Returns:
- key
-
setKey
Unique and immutable key of the referenced AssociateRole.
- Specified by:
setKeyin interfaceKeyReference- Parameters:
key- value to be set
-
of
factory method- Returns:
- instance of AssociateRoleKeyReference
-
of
factory method to create a shallow copy AssociateRoleKeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AssociateRoleKeyReference copyDeep()- Specified by:
copyDeepin interfaceKeyReference
-
deepCopy
factory method to create a deep copy of AssociateRoleKeyReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssociateRoleKeyReference- Returns:
- builder
-
builder
create builder for AssociateRoleKeyReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAssociateRoleKeyReference
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
-