Class MyCartSetLineItemCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<MyCartSetLineItemCustomTypeAction>
Example to create an instance using the builder pattern
MyCartSetLineItemCustomTypeAction myCartSetLineItemCustomTypeAction = MyCartSetLineItemCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds MyCartSetLineItemCustomTypeAction with checking for non-null required valuesbuilds MyCartSetLineItemCustomTypeAction 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.idof the LineItem to update.keyof the LineItem to update.getType()Defines the Type that extends the LineItem with Custom Fields.lineItemId(String lineItemId) idof the LineItem to update.lineItemKey(String lineItemKey) keyof the LineItem to update.of()factory method for an instance of MyCartSetLineItemCustomTypeActionBuilderof(MyCartSetLineItemCustomTypeAction template) create builder for MyCartSetLineItemCustomTypeAction instancetype(TypeResourceIdentifier type) Defines the Type that extends the LineItem with Custom Fields.Defines the Type that extends the LineItem with Custom Fields.Sets the Custom Fields fields for the Line Item.Defines the Type that extends the LineItem with Custom Fields.
-
Constructor Details
-
MyCartSetLineItemCustomTypeActionBuilder
public MyCartSetLineItemCustomTypeActionBuilder()
-
-
Method Details
-
lineItemId
idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemId- value to be set- Returns:
- Builder
-
lineItemKey
keyof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
lineItemKey- value to be set- Returns:
- Builder
-
type
public MyCartSetLineItemCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the LineItem 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 MyCartSetLineItemCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the LineItem 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 LineItem 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 MyCartSetLineItemCustomTypeActionBuilder 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 MyCartSetLineItemCustomTypeActionBuilder 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
idof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemId
-
getLineItemKey
keyof the LineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- lineItemKey
-
getType
Defines the Type that extends the LineItem 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 MyCartSetLineItemCustomTypeAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<MyCartSetLineItemCustomTypeAction>- Returns:
- MyCartSetLineItemCustomTypeAction
-
buildUnchecked
builds MyCartSetLineItemCustomTypeAction without checking for non-null required values- Returns:
- MyCartSetLineItemCustomTypeAction
-
of
factory method for an instance of MyCartSetLineItemCustomTypeActionBuilder- Returns:
- builder
-
of
public static MyCartSetLineItemCustomTypeActionBuilder of(MyCartSetLineItemCustomTypeAction template) create builder for MyCartSetLineItemCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-