Class CartSetBillingAddressCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<CartSetBillingAddressCustomTypeAction>
Example to create an instance using the builder pattern
CartSetBillingAddressCustomTypeAction cartSetBillingAddressCustomTypeAction = CartSetBillingAddressCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CartSetBillingAddressCustomTypeAction with checking for non-null required valuesbuilds CartSetBillingAddressCustomTypeAction without checking for non-null required valuesfields(FieldContainer fields) Object containing the Custom Fields fields for thebillingAddress.Object containing the Custom Fields fields for thebillingAddress.Object containing the Custom Fields fields for thebillingAddress.getType()of()factory method for an instance of CartSetBillingAddressCustomTypeActionBuilderof(CartSetBillingAddressCustomTypeAction template) create builder for CartSetBillingAddressCustomTypeAction instancetype(TypeResourceIdentifier type) Object containing the Custom Fields fields for thebillingAddress.
-
Constructor Details
-
CartSetBillingAddressCustomTypeActionBuilder
public CartSetBillingAddressCustomTypeActionBuilder()
-
-
Method Details
-
type
public CartSetBillingAddressCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the
billingAddresswith Custom Fields. If absent, any existing Type and Custom Fields are removed from thebillingAddress.- Parameters:
builder- function to build the type value- Returns:
- Builder
-
withType
public CartSetBillingAddressCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the
billingAddresswith Custom Fields. If absent, any existing Type and Custom Fields are removed from thebillingAddress.- Parameters:
builder- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the
billingAddresswith Custom Fields. If absent, any existing Type and Custom Fields are removed from thebillingAddress.- Parameters:
type- value to be set- Returns:
- Builder
-
fields
public CartSetBillingAddressCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Object containing the Custom Fields fields for the
billingAddress.Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
withFields
public CartSetBillingAddressCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Object containing the Custom Fields fields for the
billingAddress.Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
fields
Object containing the Custom Fields fields for the
billingAddress.Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
fields- value to be set- Returns:
- Builder
-
getType
Defines the Type that extends the
billingAddresswith Custom Fields. If absent, any existing Type and Custom Fields are removed from thebillingAddress.- Returns:
- type
-
getFields
Object containing the Custom Fields fields for the
billingAddress.Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Returns:
- fields
-
build
builds CartSetBillingAddressCustomTypeAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<CartSetBillingAddressCustomTypeAction>- Returns:
- CartSetBillingAddressCustomTypeAction
-
buildUnchecked
builds CartSetBillingAddressCustomTypeAction without checking for non-null required values- Returns:
- CartSetBillingAddressCustomTypeAction
-
of
factory method for an instance of CartSetBillingAddressCustomTypeActionBuilder- Returns:
- builder
-
of
public static CartSetBillingAddressCustomTypeActionBuilder of(CartSetBillingAddressCustomTypeAction template) create builder for CartSetBillingAddressCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-