Interface AssociateRoleReference
- All Superinterfaces:
Reference,ReferenceMixin
Reference to an AssociateRole.
Example to create an instance using the builder pattern
AssociateRoleReference associateRoleReference = AssociateRoleReference.builder()
.id("{id}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for AssociateRoleReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for AssociateRoleReferencebuilder(AssociateRoleReference template) create builder for AssociateRoleReference instancecopyDeep()static AssociateRoleReferencedeepCopy(AssociateRoleReference template) factory method to create a deep copy of AssociateRoleReference@NotNull StringgetId()Unique identifier of the referenced AssociateRole.@Valid AssociateRolegetObj()Contains the representation of the expanded AssociateRole.static AssociateRoleReferenceof()factory methodstatic AssociateRoleReferenceof(AssociateRoleReference template) factory method to create a shallow copy AssociateRoleReferencevoidUnique identifier of the referenced AssociateRole.voidsetObj(AssociateRole obj) Contains the representation of the expanded AssociateRole.static com.fasterxml.jackson.core.type.TypeReference<AssociateRoleReference>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReferenceMethods inherited from interface com.commercetools.api.models.common.ReferenceMixin
toResourceIdentifier
-
Field Details
-
ASSOCIATE_ROLE
discriminator value for AssociateRoleReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded AssociateRole. Only present in responses to requests with Reference Expansion for AssociateRole.
- Returns:
- obj
-
getId
Unique identifier of the referenced AssociateRole.
- Specified by:
getIdin interfaceReference- Specified by:
getIdin interfaceReferenceMixin- Returns:
- id
-
setObj
Contains the representation of the expanded AssociateRole. Only present in responses to requests with Reference Expansion for AssociateRole.
- Parameters:
obj- value to be set
-
setId
Unique identifier of the referenced AssociateRole.
-
of
factory method- Returns:
- instance of AssociateRoleReference
-
of
factory method to create a shallow copy AssociateRoleReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AssociateRoleReference copyDeep() -
deepCopy
factory method to create a deep copy of AssociateRoleReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssociateRoleReference- Returns:
- builder
-
builder
create builder for AssociateRoleReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAssociateRoleReference
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
-