Class MyShoppingListSetTextLineItemCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<MyShoppingListSetTextLineItemCustomFieldAction>
Example to create an instance using the builder pattern
MyShoppingListSetTextLineItemCustomFieldAction myShoppingListSetTextLineItemCustomFieldAction = MyShoppingListSetTextLineItemCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds MyShoppingListSetTextLineItemCustomFieldAction with checking for non-null required valuesbuilds MyShoppingListSetTextLineItemCustomFieldAction without checking for non-null required valuesgetName()Name of the Custom Field.Theidof the TextLineItem to update.Thekeyof the TextLineItem to update.getValue()Ifvalueis absent ornull, this field will be removed if it exists.Name of the Custom Field.of()factory method for an instance of MyShoppingListSetTextLineItemCustomFieldActionBuildercreate builder for MyShoppingListSetTextLineItemCustomFieldAction instancetextLineItemId(String textLineItemId) Theidof the TextLineItem to update.textLineItemKey(String textLineItemKey) Thekeyof the TextLineItem to update.Ifvalueis absent ornull, this field will be removed if it exists.
-
Constructor Details
-
MyShoppingListSetTextLineItemCustomFieldActionBuilder
public MyShoppingListSetTextLineItemCustomFieldActionBuilder()
-
-
Method Details
-
textLineItemId
public MyShoppingListSetTextLineItemCustomFieldActionBuilder textLineItemId(@Nullable String textLineItemId) The
idof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
textLineItemId- value to be set- Returns:
- Builder
-
textLineItemKey
public MyShoppingListSetTextLineItemCustomFieldActionBuilder textLineItemKey(@Nullable String textLineItemKey) The
keyof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
textLineItemKey- 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
-
getTextLineItemId
The
idof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- textLineItemId
-
getTextLineItemKey
The
keyof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- textLineItemKey
-
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 MyShoppingListSetTextLineItemCustomFieldAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<MyShoppingListSetTextLineItemCustomFieldAction>- Returns:
- MyShoppingListSetTextLineItemCustomFieldAction
-
buildUnchecked
builds MyShoppingListSetTextLineItemCustomFieldAction without checking for non-null required values- Returns:
- MyShoppingListSetTextLineItemCustomFieldAction
-
of
factory method for an instance of MyShoppingListSetTextLineItemCustomFieldActionBuilder- Returns:
- builder
-
of
public static MyShoppingListSetTextLineItemCustomFieldActionBuilder of(MyShoppingListSetTextLineItemCustomFieldAction template) create builder for MyShoppingListSetTextLineItemCustomFieldAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-