Class CartSetCustomLineItemCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<CartSetCustomLineItemCustomTypeAction>
Example to create an instance using the builder pattern
CartSetCustomLineItemCustomTypeAction cartSetCustomLineItemCustomTypeAction = CartSetCustomLineItemCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds CartSetCustomLineItemCustomTypeAction with checking for non-null required valuesbuilds CartSetCustomLineItemCustomTypeAction without checking for non-null required valuescustomLineItemId(String customLineItemId) idof the CustomLineItem to update.customLineItemKey(String customLineItemKey) keyof the CustomLineItem to update.fields(FieldContainer fields) Sets the Custom Fields fields for the CustomLineItem.Sets the Custom Fields fields for the CustomLineItem.idof the CustomLineItem to update.keyof the CustomLineItem to update.Sets the Custom Fields fields for the CustomLineItem.getType()Defines the Type that extends the CustomLineItem with Custom Fields.of()factory method for an instance of CartSetCustomLineItemCustomTypeActionBuilderof(CartSetCustomLineItemCustomTypeAction template) create builder for CartSetCustomLineItemCustomTypeAction instancetype(TypeResourceIdentifier type) Defines the Type that extends the CustomLineItem with Custom Fields.Defines the Type that extends the CustomLineItem with Custom Fields.Sets the Custom Fields fields for the CustomLineItem.Defines the Type that extends the CustomLineItem with Custom Fields.
-
Constructor Details
-
CartSetCustomLineItemCustomTypeActionBuilder
public CartSetCustomLineItemCustomTypeActionBuilder()
-
-
Method Details
-
customLineItemId
public CartSetCustomLineItemCustomTypeActionBuilder customLineItemId(@Nullable String customLineItemId) idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemId- value to be set- Returns:
- Builder
-
customLineItemKey
public CartSetCustomLineItemCustomTypeActionBuilder customLineItemKey(@Nullable String customLineItemKey) keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemKey- value to be set- Returns:
- Builder
-
type
public CartSetCustomLineItemCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the CustomLineItem with Custom Fields. If absent, any existing Type and Custom Fields are removed from the CustomLineItem.
- Parameters:
builder- function to build the type value- Returns:
- Builder
-
withType
public CartSetCustomLineItemCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the CustomLineItem with Custom Fields. If absent, any existing Type and Custom Fields are removed from the CustomLineItem.
- Parameters:
builder- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the CustomLineItem with Custom Fields. If absent, any existing Type and Custom Fields are removed from the CustomLineItem.
- Parameters:
type- value to be set- Returns:
- Builder
-
fields
public CartSetCustomLineItemCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the CustomLineItem.
- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
withFields
public CartSetCustomLineItemCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the CustomLineItem.
- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the CustomLineItem.
- Parameters:
fields- value to be set- Returns:
- Builder
-
getCustomLineItemId
idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemId
-
getCustomLineItemKey
keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemKey
-
getType
Defines the Type that extends the CustomLineItem with Custom Fields. If absent, any existing Type and Custom Fields are removed from the CustomLineItem.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the CustomLineItem.
- Returns:
- fields
-
build
builds CartSetCustomLineItemCustomTypeAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<CartSetCustomLineItemCustomTypeAction>- Returns:
- CartSetCustomLineItemCustomTypeAction
-
buildUnchecked
builds CartSetCustomLineItemCustomTypeAction without checking for non-null required values- Returns:
- CartSetCustomLineItemCustomTypeAction
-
of
factory method for an instance of CartSetCustomLineItemCustomTypeActionBuilder- Returns:
- builder
-
of
public static CartSetCustomLineItemCustomTypeActionBuilder of(CartSetCustomLineItemCustomTypeAction template) create builder for CartSetCustomLineItemCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-