Class OrderSetLineItemCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<OrderSetLineItemCustomTypeAction>
Example to create an instance using the builder pattern
OrderSetLineItemCustomTypeAction orderSetLineItemCustomTypeAction = OrderSetLineItemCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSetLineItemCustomTypeAction with checking for non-null required valuesbuilds OrderSetLineItemCustomTypeAction 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 OrderSetLineItemCustomTypeActionBuilderof
(OrderSetLineItemCustomTypeAction template) create builder for OrderSetLineItemCustomTypeAction 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
-
OrderSetLineItemCustomTypeActionBuilder
public OrderSetLineItemCustomTypeActionBuilder()
-
-
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 OrderSetLineItemCustomTypeActionBuilder 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 OrderSetLineItemCustomTypeActionBuilder 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 OrderSetLineItemCustomTypeActionBuilder 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 OrderSetLineItemCustomTypeActionBuilder 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 OrderSetLineItemCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetLineItemCustomTypeAction>
- Returns:
- OrderSetLineItemCustomTypeAction
-
buildUnchecked
builds OrderSetLineItemCustomTypeAction without checking for non-null required values- Returns:
- OrderSetLineItemCustomTypeAction
-
of
factory method for an instance of OrderSetLineItemCustomTypeActionBuilder- Returns:
- builder
-
of
create builder for OrderSetLineItemCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-