Class CartSetCustomLineItemCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<CartSetCustomLineItemCustomTypeAction>
Example to create an instance using the builder pattern
CartSetCustomLineItemCustomTypeAction cartSetCustomLineItemCustomTypeAction = CartSetCustomLineItemCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CartSetCustomLineItemCustomTypeAction with checking for non-null required valuesbuilds CartSetCustomLineItemCustomTypeAction without checking for non-null required valuescustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.customLineItemKey
(String customLineItemKey) key
of the CustomLineItem to update.fields
(FieldContainer fields) Sets the Custom Fields fields for the CustomLineItem.Sets the Custom Fields fields for the CustomLineItem.id
of the CustomLineItem to update.key
of 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) id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
customLineItemKey
public CartSetCustomLineItemCustomTypeActionBuilder customLineItemKey(@Nullable String customLineItemKey) key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is 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
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemId
-
getCustomLineItemKey
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is 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:
build
in 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
-