Class OrderSetCustomLineItemCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<OrderSetCustomLineItemCustomTypeAction>
Example to create an instance using the builder pattern
OrderSetCustomLineItemCustomTypeAction orderSetCustomLineItemCustomTypeAction = OrderSetCustomLineItemCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSetCustomLineItemCustomTypeAction with checking for non-null required valuesbuilds OrderSetCustomLineItemCustomTypeAction 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 Custom Line Item.Sets the Custom Fields fields for the Custom Line Item.id
of the CustomLineItem to update.key
of the CustomLineItem to update.Sets the Custom Fields fields for the Custom Line Item.getType()
Defines the Type that extends the Custom Line Item with Custom Fields.of()
factory method for an instance of OrderSetCustomLineItemCustomTypeActionBuilderof
(OrderSetCustomLineItemCustomTypeAction template) create builder for OrderSetCustomLineItemCustomTypeAction instancetype
(TypeResourceIdentifier type) Defines the Type that extends the Custom Line Item with Custom Fields.Defines the Type that extends the Custom Line Item with Custom Fields.Sets the Custom Fields fields for the Custom Line Item.Defines the Type that extends the Custom Line Item with Custom Fields.
-
Constructor Details
-
OrderSetCustomLineItemCustomTypeActionBuilder
public OrderSetCustomLineItemCustomTypeActionBuilder()
-
-
Method Details
-
customLineItemId
public OrderSetCustomLineItemCustomTypeActionBuilder customLineItemId(@Nullable String customLineItemId) id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
customLineItemKey
public OrderSetCustomLineItemCustomTypeActionBuilder customLineItemKey(@Nullable String customLineItemKey) key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemKey
- value to be set- Returns:
- Builder
-
type
public OrderSetCustomLineItemCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the Custom Line Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Custom Line Item.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public OrderSetCustomLineItemCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the Custom Line Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Custom Line Item.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the Custom Line Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Custom Line Item.
- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public OrderSetCustomLineItemCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the Custom Line Item.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public OrderSetCustomLineItemCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the Custom Line Item.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the Custom Line Item.
- 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 Custom Line Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Custom Line Item.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Custom Line Item.
- Returns:
- fields
-
build
builds OrderSetCustomLineItemCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetCustomLineItemCustomTypeAction>
- Returns:
- OrderSetCustomLineItemCustomTypeAction
-
buildUnchecked
builds OrderSetCustomLineItemCustomTypeAction without checking for non-null required values- Returns:
- OrderSetCustomLineItemCustomTypeAction
-
of
factory method for an instance of OrderSetCustomLineItemCustomTypeActionBuilder- Returns:
- builder
-
of
public static OrderSetCustomLineItemCustomTypeActionBuilder of(OrderSetCustomLineItemCustomTypeAction template) create builder for OrderSetCustomLineItemCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-