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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for AssociateRoleReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for AssociateRoleReferencebuilder
(AssociateRoleReference template) create builder for AssociateRoleReference instancestatic AssociateRoleReference
deepCopy
(AssociateRoleReference template) factory method to create a deep copy of AssociateRoleReference@NotNull String
getId()
Unique identifier of the referenced AssociateRole.@Valid AssociateRole
getObj()
Contains the representation of the expanded AssociateRole.static AssociateRoleReference
of()
factory methodstatic AssociateRoleReference
of
(AssociateRoleReference template) factory method to create a shallow copy AssociateRoleReferencevoid
Unique identifier of the referenced AssociateRole.void
setObj
(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> T
accessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReference
Methods 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:
getId
in interfaceReference
- Specified by:
getId
in 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
-
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
-