Class BusinessUnitSetDefaultShippingAddressActionBuilder
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitSetDefaultShippingAddressActionBuilder
- All Implemented Interfaces:
Builder<BusinessUnitSetDefaultShippingAddressAction>
public class BusinessUnitSetDefaultShippingAddressActionBuilder
extends Object
implements Builder<BusinessUnitSetDefaultShippingAddressAction>
BusinessUnitSetDefaultShippingAddressActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitSetDefaultShippingAddressAction businessUnitSetDefaultShippingAddressAction = BusinessUnitSetDefaultShippingAddressAction.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 BusinessUnitSetDefaultShippingAddressAction with checking for non-null required valuesbuilds BusinessUnitSetDefaultShippingAddressAction 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 BusinessUnitSetDefaultShippingAddressActionBuildercreate builder for BusinessUnitSetDefaultShippingAddressAction instance
-
Constructor Details
-
BusinessUnitSetDefaultShippingAddressActionBuilder
public BusinessUnitSetDefaultShippingAddressActionBuilder()
-
-
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 BusinessUnitSetDefaultShippingAddressAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitSetDefaultShippingAddressAction>
- Returns:
- BusinessUnitSetDefaultShippingAddressAction
-
buildUnchecked
builds BusinessUnitSetDefaultShippingAddressAction without checking for non-null required values- Returns:
- BusinessUnitSetDefaultShippingAddressAction
-
of
factory method for an instance of BusinessUnitSetDefaultShippingAddressActionBuilder- Returns:
- builder
-
of
public static BusinessUnitSetDefaultShippingAddressActionBuilder of(BusinessUnitSetDefaultShippingAddressAction template) create builder for BusinessUnitSetDefaultShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-