Class BusinessUnitRemoveAddressActionBuilder
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitRemoveAddressActionBuilder
- All Implemented Interfaces:
Builder<BusinessUnitRemoveAddressAction>
public class BusinessUnitRemoveAddressActionBuilder
extends Object
implements Builder<BusinessUnitRemoveAddressAction>
BusinessUnitRemoveAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitRemoveAddressAction businessUnitRemoveAddressAction = BusinessUnitRemoveAddressAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionID of the address to be removed.addressKey
(String addressKey) Key of the address to be removed.build()
builds BusinessUnitRemoveAddressAction with checking for non-null required valuesbuilds BusinessUnitRemoveAddressAction without checking for non-null required valuesID of the address to be removed.Key of the address to be removed.of()
factory method for an instance of BusinessUnitRemoveAddressActionBuilderof
(BusinessUnitRemoveAddressAction template) create builder for BusinessUnitRemoveAddressAction instance
-
Constructor Details
-
BusinessUnitRemoveAddressActionBuilder
public BusinessUnitRemoveAddressActionBuilder()
-
-
Method Details
-
addressId
ID of the address to be removed. Either
addressId
oraddressKey
is required.- Parameters:
addressId
- value to be set- Returns:
- Builder
-
addressKey
Key of the address to be removed. Either
addressId
oraddressKey
is required.- Parameters:
addressKey
- value to be set- Returns:
- Builder
-
getAddressId
ID of the address to be removed. Either
addressId
oraddressKey
is required.- Returns:
- addressId
-
getAddressKey
Key of the address to be removed. Either
addressId
oraddressKey
is required.- Returns:
- addressKey
-
build
builds BusinessUnitRemoveAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitRemoveAddressAction>
- Returns:
- BusinessUnitRemoveAddressAction
-
buildUnchecked
builds BusinessUnitRemoveAddressAction without checking for non-null required values- Returns:
- BusinessUnitRemoveAddressAction
-
of
factory method for an instance of BusinessUnitRemoveAddressActionBuilder- Returns:
- builder
-
of
create builder for BusinessUnitRemoveAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-