Class OrderSetCustomLineItemCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<OrderSetCustomLineItemCustomTypeAction>
Example to create an instance using the builder pattern
OrderSetCustomLineItemCustomTypeAction orderSetCustomLineItemCustomTypeAction = OrderSetCustomLineItemCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds OrderSetCustomLineItemCustomTypeAction with checking for non-null required valuesbuilds OrderSetCustomLineItemCustomTypeAction without checking for non-null required valuescustomLineItemId(String customLineItemId) idof the CustomLineItem to update.customLineItemKey(String customLineItemKey) keyof the CustomLineItem to update.fields(FieldContainer fields) Object containing the Custom Fields fields for the Custom Line Item.Object containing the Custom Fields fields for the Custom Line Item.idof the CustomLineItem to update.keyof the CustomLineItem to update.Object containing 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.Object containing 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) idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemId- value to be set- Returns:
- Builder
-
customLineItemKey
public OrderSetCustomLineItemCustomTypeActionBuilder customLineItemKey(@Nullable String customLineItemKey) keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis 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) Object containing the Custom Fields fields for the Custom 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 OrderSetCustomLineItemCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Object containing the Custom Fields fields for the Custom 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 Custom 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
-
getCustomLineItemId
idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Returns:
- customLineItemId
-
getCustomLineItemKey
keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis 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
Object containing the Custom Fields fields for the Custom Line Item.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Returns:
- fields
-
build
builds OrderSetCustomLineItemCustomTypeAction with checking for non-null required values- Specified by:
buildin 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
-