Class CartSetLineItemCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<CartSetLineItemCustomTypeAction>
Example to create an instance using the builder pattern
CartSetLineItemCustomTypeAction cartSetLineItemCustomTypeAction = CartSetLineItemCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartSetLineItemCustomTypeAction with checking for non-null required valuesbuilds CartSetLineItemCustomTypeAction without checking for non-null required valuesfields
(FieldContainer fields) Sets the Custom Fields fields for the Line Item.Sets the Custom Fields fields for the Line Item.Sets the Custom Fields fields for the Line Item.id
of the LineItem to update.key
of the LineItem to update.getType()
Defines the Type that extends the Line Item with Custom Fields.lineItemId
(String lineItemId) id
of the LineItem to update.lineItemKey
(String lineItemKey) key
of the LineItem to update.of()
factory method for an instance of CartSetLineItemCustomTypeActionBuilderof
(CartSetLineItemCustomTypeAction template) create builder for CartSetLineItemCustomTypeAction instancetype
(TypeResourceIdentifier type) Defines the Type that extends the Line Item with Custom Fields.Defines the Type that extends the Line Item with Custom Fields.Sets the Custom Fields fields for the Line Item.Defines the Type that extends the Line Item with Custom Fields.
-
Constructor Details
-
CartSetLineItemCustomTypeActionBuilder
public CartSetLineItemCustomTypeActionBuilder()
-
-
Method Details
-
lineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set- Returns:
- Builder
-
lineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set- Returns:
- Builder
-
type
public CartSetLineItemCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the Line Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Line Item.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public CartSetLineItemCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the Line Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Line Item.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the Line Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Line Item.
- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public CartSetLineItemCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the Line Item.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public CartSetLineItemCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the Line Item.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the Line Item.
- Parameters:
fields
- value to be set- Returns:
- Builder
-
getLineItemId
id
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemId
-
getLineItemKey
key
of the LineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemKey
-
getType
Defines the Type that extends the Line Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Line Item.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Line Item.
- Returns:
- fields
-
build
builds CartSetLineItemCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<CartSetLineItemCustomTypeAction>
- Returns:
- CartSetLineItemCustomTypeAction
-
buildUnchecked
builds CartSetLineItemCustomTypeAction without checking for non-null required values- Returns:
- CartSetLineItemCustomTypeAction
-
of
factory method for an instance of CartSetLineItemCustomTypeActionBuilder- Returns:
- builder
-
of
create builder for CartSetLineItemCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-