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