Class OrderSetLineItemCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<OrderSetLineItemCustomTypeAction>
Example to create an instance using the builder pattern
OrderSetLineItemCustomTypeAction orderSetLineItemCustomTypeAction = OrderSetLineItemCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds OrderSetLineItemCustomTypeAction with checking for non-null required valuesbuilds OrderSetLineItemCustomTypeAction without checking for non-null required valuesfields(FieldContainer fields) Object containing the Custom Fields fields for the Line Item.Object containing the Custom Fields fields for the Line Item.Object containing 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 Line Item 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 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.Object containing 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
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 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) Object containing the Custom Fields fields for the Line Item.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
withFields
public OrderSetLineItemCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Object containing the Custom Fields fields for the Line Item.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
fields
Object containing the Custom Fields fields for the Line Item.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- 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 Line Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Line Item.
- Returns:
- type
-
getFields
Object containing the Custom Fields fields for the Line Item.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Returns:
- fields
-
build
builds OrderSetLineItemCustomTypeAction with checking for non-null required values- Specified by:
buildin 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
-