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 AssociateRoleDraftBuilder
builder()
builder factory method for AssociateRoleDraftstatic AssociateRoleDraftBuilder
builder
(AssociateRoleDraft template) create builder for AssociateRoleDraft instancestatic AssociateRoleDraft
deepCopy
(AssociateRoleDraft template) factory method to create a deep copy of AssociateRoleDraftWhether the AssociateRole can be assigned to an Associate by a buyer.@Valid CustomFieldsDraft
Custom Fields for the AssociateRole.@NotNull String
getKey()
User-defined unique and immutable identifier for the AssociateRole.getName()
Name of the AssociateRole.List of Permissions for the AssociateRole.static AssociateRoleDraft
of()
factory methodstatic AssociateRoleDraft
of
(AssociateRoleDraft template) factory method to create a shallow copy AssociateRoleDraftvoid
setBuyerAssignable
(Boolean buyerAssignable) Whether the AssociateRole can be assigned to an Associate by a buyer.void
setCustom
(CustomFieldsDraft custom) Custom Fields for the AssociateRole.void
User-defined unique and immutable identifier for the AssociateRole.void
Name of the AssociateRole.void
setPermissions
(Permission... permissions) List of Permissions for the AssociateRole.void
setPermissions
(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> T
withAssociateRoleDraft
(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
-
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
-