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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for AssociateRoleKeyReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for AssociateRoleKeyReferencebuilder
(AssociateRoleKeyReference template) create builder for AssociateRoleKeyReference instancestatic AssociateRoleKeyReference
deepCopy
(AssociateRoleKeyReference template) factory method to create a deep copy of AssociateRoleKeyReference@NotNull String
getKey()
Unique and immutable key of the referenced AssociateRole.static AssociateRoleKeyReference
of()
factory methodstatic AssociateRoleKeyReference
of
(AssociateRoleKeyReference template) factory method to create a shallow copy AssociateRoleKeyReferencevoid
Unique and immutable key of the referenced AssociateRole.static com.fasterxml.jackson.core.type.TypeReference<AssociateRoleKeyReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor 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:
getKey
in interfaceKeyReference
- Specified by:
getKey
in interfaceWithKey
- Returns:
- key
-
setKey
Unique and immutable key of the referenced AssociateRole.
- Specified by:
setKey
in 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
-
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
-