Interface AssociateRoleDraft
- All Superinterfaces:
Draft<AssociateRoleDraft>
AssociateRoleDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
AssociateRoleDraft associateRoleDraft = AssociateRoleDraft.builder()
.key("{key}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic AssociateRoleDraftBuilderbuilder()builder factory method for AssociateRoleDraftstatic AssociateRoleDraftBuilderbuilder(AssociateRoleDraft template) create builder for AssociateRoleDraft instancecopyDeep()static AssociateRoleDraftdeepCopy(AssociateRoleDraft template) factory method to create a deep copy of AssociateRoleDraftWhether the AssociateRole can be assigned to an Associate by a buyer.@Valid CustomFieldsDraftCustom Fields for the AssociateRole.@NotNull StringgetKey()User-defined unique and immutable identifier for the AssociateRole.getName()Name of the AssociateRole.List of Permissions for the AssociateRole.static AssociateRoleDraftof()factory methodstatic AssociateRoleDraftof(AssociateRoleDraft template) factory method to create a shallow copy AssociateRoleDraftvoidsetBuyerAssignable(Boolean buyerAssignable) Whether the AssociateRole can be assigned to an Associate by a buyer.voidsetCustom(CustomFieldsDraft custom) Custom Fields for the AssociateRole.voidUser-defined unique and immutable identifier for the AssociateRole.voidName of the AssociateRole.voidsetPermissions(Permission... permissions) List of Permissions for the AssociateRole.voidsetPermissions(List<Permission> permissions) List of Permissions for the AssociateRole.static com.fasterxml.jackson.core.type.TypeReference<AssociateRoleDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithAssociateRoleDraft(Function<AssociateRoleDraft, T> helper) accessor map function
-
Method Details
-
getKey
User-defined unique and immutable identifier for the AssociateRole.
- Returns:
- key
-
getName
String getName()Name of the AssociateRole.
- Returns:
- name
-
getBuyerAssignable
Boolean getBuyerAssignable()Whether the AssociateRole can be assigned to an Associate by a buyer.
- Returns:
- buyerAssignable
-
getPermissions
List<Permission> getPermissions()List of Permissions for the AssociateRole.
- Returns:
- permissions
-
getCustom
Custom Fields for the AssociateRole.
- Returns:
- custom
-
setKey
User-defined unique and immutable identifier for the AssociateRole.
- Parameters:
key- value to be set
-
setName
Name of the AssociateRole.
- Parameters:
name- value to be set
-
setBuyerAssignable
Whether the AssociateRole can be assigned to an Associate by a buyer.
- Parameters:
buyerAssignable- value to be set
-
setPermissions
List of Permissions for the AssociateRole.
- Parameters:
permissions- values to be set
-
setPermissions
List of Permissions for the AssociateRole.
- Parameters:
permissions- values to be set
-
setCustom
Custom Fields for the AssociateRole.
- Parameters:
custom- value to be set
-
of
factory method- Returns:
- instance of AssociateRoleDraft
-
of
factory method to create a shallow copy AssociateRoleDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
AssociateRoleDraft copyDeep() -
deepCopy
factory method to create a deep copy of AssociateRoleDraft- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for AssociateRoleDraft- Returns:
- builder
-
builder
create builder for AssociateRoleDraft instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withAssociateRoleDraft
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
-