Interface MyBusinessUnitAssociateDraft
- All Superinterfaces:
Draft<MyBusinessUnitAssociateDraft>
Example to create an instance using the builder pattern
MyBusinessUnitAssociateDraft myBusinessUnitAssociateDraft = MyBusinessUnitAssociateDraft.builder()
.version(0.3)
.customer(customerBuilder -> customerBuilder)
.plusAssociateRoleAssignments(associateRoleAssignmentsBuilder -> associateRoleAssignmentsBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyBusinessUnitAssociateDraftbuilder
(MyBusinessUnitAssociateDraft template) create builder for MyBusinessUnitAssociateDraft instancestatic MyBusinessUnitAssociateDraft
deepCopy
(MyBusinessUnitAssociateDraft template) factory method to create a deep copy of MyBusinessUnitAssociateDraft@NotNull @Valid List<AssociateRoleAssignmentDraft>
Roles assigned to the new Associate within a Business Unit.@NotNull @Valid MyCustomerDraft
Customer to create and assign to the Business Unit.@NotNull Long
Expected version of the BusinessUnit on which the changes should be applied.static MyBusinessUnitAssociateDraft
of()
factory methodstatic MyBusinessUnitAssociateDraft
of
(MyBusinessUnitAssociateDraft template) factory method to create a shallow copy MyBusinessUnitAssociateDraftvoid
setAssociateRoleAssignments
(AssociateRoleAssignmentDraft... associateRoleAssignments) Roles assigned to the new Associate within a Business Unit.void
setAssociateRoleAssignments
(List<AssociateRoleAssignmentDraft> associateRoleAssignments) Roles assigned to the new Associate within a Business Unit.void
setCustomer
(MyCustomerDraft customer) Customer to create and assign to the Business Unit.void
setVersion
(Long version) Expected version of the BusinessUnit on which the changes should be applied.static com.fasterxml.jackson.core.type.TypeReference<MyBusinessUnitAssociateDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getVersion
Expected version of the BusinessUnit on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Returns:
- version
-
getCustomer
Customer to create and assign to the Business Unit.
- Returns:
- customer
-
getAssociateRoleAssignments
Roles assigned to the new Associate within a Business Unit. Can only contain AssociateRoles with the
buyerAssignable
property set totrue
.- Returns:
- associateRoleAssignments
-
setVersion
Expected version of the BusinessUnit on which the changes should be applied. If the expected version does not match the actual version, a ConcurrentModification error will be returned.
- Parameters:
version
- value to be set
-
setCustomer
Customer to create and assign to the Business Unit.
- Parameters:
customer
- value to be set
-
setAssociateRoleAssignments
Roles assigned to the new Associate within a Business Unit. Can only contain AssociateRoles with the
buyerAssignable
property set totrue
.- Parameters:
associateRoleAssignments
- values to be set
-
setAssociateRoleAssignments
Roles assigned to the new Associate within a Business Unit. Can only contain AssociateRoles with the
buyerAssignable
property set totrue
.- Parameters:
associateRoleAssignments
- values to be set
-
of
factory method- Returns:
- instance of MyBusinessUnitAssociateDraft
-
of
factory method to create a shallow copy MyBusinessUnitAssociateDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static MyBusinessUnitAssociateDraft deepCopy(@Nullable MyBusinessUnitAssociateDraft template) factory method to create a deep copy of MyBusinessUnitAssociateDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyBusinessUnitAssociateDraft- Returns:
- builder
-
builder
create builder for MyBusinessUnitAssociateDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyBusinessUnitAssociateDraft
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
-