Class StagedOrderAddItemShippingAddressActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderAddItemShippingAddressAction>
Example to create an instance using the builder pattern
StagedOrderAddItemShippingAddressAction stagedOrderAddItemShippingAddressAction = StagedOrderAddItemShippingAddressAction.builder()
.address(addressBuilder -> addressBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress
(BaseAddress address) Polymorphic base type that represents a postal address and contact details.address
(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Polymorphic base type that represents a postal address and contact details.build()
builds StagedOrderAddItemShippingAddressAction with checking for non-null required valuesbuilds StagedOrderAddItemShippingAddressAction without checking for non-null required valuesPolymorphic base type that represents a postal address and contact details.of()
factory method for an instance of StagedOrderAddItemShippingAddressActionBuilderof
(StagedOrderAddItemShippingAddressAction template) create builder for StagedOrderAddItemShippingAddressAction instancewithAddress
(Function<BaseAddressBuilder, BaseAddress> builder) Polymorphic base type that represents a postal address and contact details.
-
Constructor Details
-
StagedOrderAddItemShippingAddressActionBuilder
-
-
Method Details
-
address
public StagedOrderAddItemShippingAddressActionBuilder address(Function<BaseAddressBuilder, BaseAddressBuilder> builder) Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
withAddress
public StagedOrderAddItemShippingAddressActionBuilder withAddress(Function<BaseAddressBuilder, BaseAddress> builder) Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Parameters:
builder
- function to build the address value- Returns:
- Builder
-
address
Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Parameters:
address
- value to be set- Returns:
- Builder
-
getAddress
Polymorphic base type that represents a postal address and contact details. Depending on the read or write action, it can be either Address or AddressDraft that only differ in the data type for the optional
custom
field.- Returns:
- address
-
build
builds StagedOrderAddItemShippingAddressAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<StagedOrderAddItemShippingAddressAction>
- Returns:
- StagedOrderAddItemShippingAddressAction
-
buildUnchecked
builds StagedOrderAddItemShippingAddressAction without checking for non-null required values- Returns:
- StagedOrderAddItemShippingAddressAction
-
of
factory method for an instance of StagedOrderAddItemShippingAddressActionBuilder- Returns:
- builder
-
of
public static StagedOrderAddItemShippingAddressActionBuilder of(StagedOrderAddItemShippingAddressAction template) create builder for StagedOrderAddItemShippingAddressAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-