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