Interface DivisionBusinessUnitImport
- All Superinterfaces:
BusinessUnitImport
Represents a Division, a sub-unit of a Company or another Division.
Example to create an instance using the builder pattern
DivisionBusinessUnitImport divisionBusinessUnitImport = DivisionBusinessUnitImport.builder()
.key("{key}")
.name("{name}")
.parentUnit(parentUnitBuilder -> parentUnitBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for DivisionBusinessUnitImportbuilder
(DivisionBusinessUnitImport template) create builder for DivisionBusinessUnitImport instancecopyDeep()
static DivisionBusinessUnitImport
deepCopy
(DivisionBusinessUnitImport template) factory method to create a deep copy of DivisionBusinessUnitImportIfExplicit
, approval rules are not inherited from the parent.IfExplicit
, Associates are not inherited from the parent.@NotNull @Valid BusinessUnitKeyReference
The parent Business Unit of this Division.IfExplicit
, thestores
field cannot be empty and the Business Unit is explicitly associated with the given Stores.static DivisionBusinessUnitImport
of()
factory methodstatic DivisionBusinessUnitImport
of
(DivisionBusinessUnitImport template) factory method to create a shallow copy DivisionBusinessUnitImportvoid
setApprovalRuleMode
(BusinessUnitApprovalRuleMode approvalRuleMode) IfExplicit
, approval rules are not inherited from the parent.void
setAssociateMode
(BusinessUnitAssociateMode associateMode) IfExplicit
, Associates are not inherited from the parent.void
setParentUnit
(BusinessUnitKeyReference parentUnit) The parent Business Unit of this Division.void
setStoreMode
(BusinessUnitStoreMode storeMode) IfExplicit
, thestores
field cannot be empty and the Business Unit is explicitly associated with the given Stores.static com.fasterxml.jackson.core.type.TypeReference<DivisionBusinessUnitImport>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.importapi.models.business_units.BusinessUnitImport
getAddresses, getAssociates, getBillingAddresses, getContactEmail, getCustom, getDefaultBillingAddress, getDefaultShippingAddress, getKey, getName, getShippingAddresses, getStatus, getStores, getUnitType, setAddresses, setAddresses, setAssociates, setAssociates, setBillingAddresses, setBillingAddresses, setContactEmail, setCustom, setDefaultBillingAddress, setDefaultShippingAddress, setKey, setName, setShippingAddresses, setShippingAddresses, setStatus, setStores, setStores, withBusinessUnitImport
-
Field Details
-
DIVISION
discriminator value for DivisionBusinessUnitImport- See Also:
-
-
Method Details
-
getStoreMode
BusinessUnitStoreMode getStoreMode()If
Explicit
, thestores
field cannot be empty and the Business Unit is explicitly associated with the given Stores. IfFromParent
, the Business Unit inherits the Stores from its parent.- Returns:
- storeMode
-
getParentUnit
The parent Business Unit of this Division.
- Returns:
- parentUnit
-
getAssociateMode
BusinessUnitAssociateMode getAssociateMode()If
Explicit
, Associates are not inherited from the parent. IfExplicitAndFromParent
, Associates are inherited from the parent.- Returns:
- associateMode
-
getApprovalRuleMode
BusinessUnitApprovalRuleMode getApprovalRuleMode()If
Explicit
, approval rules are not inherited from the parent. IfExplicitAndFromParent
, approval rules are inherited from the parent.- Returns:
- approvalRuleMode
-
setStoreMode
If
Explicit
, thestores
field cannot be empty and the Business Unit is explicitly associated with the given Stores. IfFromParent
, the Business Unit inherits the Stores from its parent.- Parameters:
storeMode
- value to be set
-
setParentUnit
The parent Business Unit of this Division.
- Parameters:
parentUnit
- value to be set
-
setAssociateMode
If
Explicit
, Associates are not inherited from the parent. IfExplicitAndFromParent
, Associates are inherited from the parent.- Parameters:
associateMode
- value to be set
-
setApprovalRuleMode
If
Explicit
, approval rules are not inherited from the parent. IfExplicitAndFromParent
, approval rules are inherited from the parent.- Parameters:
approvalRuleMode
- value to be set
-
of
factory method- Returns:
- instance of DivisionBusinessUnitImport
-
of
factory method to create a shallow copy DivisionBusinessUnitImport- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
DivisionBusinessUnitImport copyDeep()- Specified by:
copyDeep
in interfaceBusinessUnitImport
-
deepCopy
factory method to create a deep copy of DivisionBusinessUnitImport- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for DivisionBusinessUnitImport- Returns:
- builder
-
builder
create builder for DivisionBusinessUnitImport instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withDivisionBusinessUnitImport
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
-