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