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 DivisionBusinessUnitImportdeepCopy(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 BusinessUnitKeyReferenceThe parent Business Unit of this Division.IfExplicit, thestoresfield cannot be empty and the Business Unit is explicitly associated with the given Stores.static DivisionBusinessUnitImportof()factory methodstatic DivisionBusinessUnitImportof(DivisionBusinessUnitImport template) factory method to create a shallow copy DivisionBusinessUnitImportvoidsetApprovalRuleMode(BusinessUnitApprovalRuleMode approvalRuleMode) IfExplicit, approval rules are not inherited from the parent.voidsetAssociateMode(BusinessUnitAssociateMode associateMode) IfExplicit, Associates are not inherited from the parent.voidsetParentUnit(BusinessUnitKeyReference parentUnit) The parent Business Unit of this Division.voidsetStoreMode(BusinessUnitStoreMode storeMode) IfExplicit, thestoresfield 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> Taccessor 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, thestoresfield 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, thestoresfield 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:
copyDeepin 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
-