Class StagedOrderSetCustomLineItemCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetCustomLineItemCustomFieldAction>
Example to create an instance using the builder pattern
StagedOrderSetCustomLineItemCustomFieldAction stagedOrderSetCustomLineItemCustomFieldAction = StagedOrderSetCustomLineItemCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StagedOrderSetCustomLineItemCustomFieldAction with checking for non-null required valuesbuilds StagedOrderSetCustomLineItemCustomFieldAction without checking for non-null required valuescustomLineItemId(String customLineItemId) idof the CustomLineItem to update.customLineItemKey(String customLineItemKey) keyof the CustomLineItem to update.idof the CustomLineItem to update.keyof the CustomLineItem to update.getName()Name of the Custom Field.getValue()Ifvalueis absent ornull, this field will be removed if it exists.Name of the Custom Field.of()factory method for an instance of StagedOrderSetCustomLineItemCustomFieldActionBuildercreate builder for StagedOrderSetCustomLineItemCustomFieldAction instanceIfvalueis absent ornull, this field will be removed if it exists.
-
Constructor Details
-
StagedOrderSetCustomLineItemCustomFieldActionBuilder
public StagedOrderSetCustomLineItemCustomFieldActionBuilder()
-
-
Method Details
-
customLineItemId
public StagedOrderSetCustomLineItemCustomFieldActionBuilder customLineItemId(@Nullable String customLineItemId) idof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemId- value to be set- Returns:
- Builder
-
customLineItemKey
public StagedOrderSetCustomLineItemCustomFieldActionBuilder customLineItemKey(@Nullable String customLineItemKey) keyof the CustomLineItem to update. EithercustomLineItemIdorcustomLineItemKeyis required.- Parameters:
customLineItemKey- value to be set- Returns:
- Builder
-
name
Name of the Custom Field.
- Parameters:
name- value to be set- Returns:
- Builder
-
value
If
valueis absent ornull, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalueis provided, it is set for the field defined byname.- Parameters:
value- 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
-
getName
Name of the Custom Field.
- Returns:
- name
-
getValue
If
valueis absent ornull, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalueis provided, it is set for the field defined byname.- Returns:
- value
-
build
builds StagedOrderSetCustomLineItemCustomFieldAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StagedOrderSetCustomLineItemCustomFieldAction>- Returns:
- StagedOrderSetCustomLineItemCustomFieldAction
-
buildUnchecked
builds StagedOrderSetCustomLineItemCustomFieldAction without checking for non-null required values- Returns:
- StagedOrderSetCustomLineItemCustomFieldAction
-
of
factory method for an instance of StagedOrderSetCustomLineItemCustomFieldActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetCustomLineItemCustomFieldActionBuilder of(StagedOrderSetCustomLineItemCustomFieldAction template) create builder for StagedOrderSetCustomLineItemCustomFieldAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-