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 instancecopyDeep()static MyBusinessUnitAssociateDraftdeepCopy(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 MyCustomerDraftCustomer to create and assign to the Business Unit.@NotNull LongExpected version of the BusinessUnit on which the changes should be applied.static MyBusinessUnitAssociateDraftof()factory methodstatic MyBusinessUnitAssociateDraftof(MyBusinessUnitAssociateDraft template) factory method to create a shallow copy MyBusinessUnitAssociateDraftvoidsetAssociateRoleAssignments(AssociateRoleAssignmentDraft... associateRoleAssignments) Roles assigned to the new Associate within a Business Unit.voidsetAssociateRoleAssignments(List<AssociateRoleAssignmentDraft> associateRoleAssignments) Roles assigned to the new Associate within a Business Unit.voidsetCustomer(MyCustomerDraft customer) Customer to create and assign to the Business Unit.voidsetVersion(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> Taccessor 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
buyerAssignableproperty 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
buyerAssignableproperty 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
buyerAssignableproperty 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
-
copyDeep
MyBusinessUnitAssociateDraft copyDeep() -
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
-