Class ShoppingListSetTextLineItemCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<ShoppingListSetTextLineItemCustomFieldAction>
Example to create an instance using the builder pattern
ShoppingListSetTextLineItemCustomFieldAction shoppingListSetTextLineItemCustomFieldAction = ShoppingListSetTextLineItemCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds ShoppingListSetTextLineItemCustomFieldAction with checking for non-null required valuesbuilds ShoppingListSetTextLineItemCustomFieldAction 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 ShoppingListSetTextLineItemCustomFieldActionBuildercreate builder for ShoppingListSetTextLineItemCustomFieldAction 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
-
ShoppingListSetTextLineItemCustomFieldActionBuilder
public ShoppingListSetTextLineItemCustomFieldActionBuilder()
-
-
Method Details
-
textLineItemId
public ShoppingListSetTextLineItemCustomFieldActionBuilder textLineItemId(@Nullable String textLineItemId) The
idof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
textLineItemId- value to be set- Returns:
- Builder
-
textLineItemKey
public ShoppingListSetTextLineItemCustomFieldActionBuilder 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 ShoppingListSetTextLineItemCustomFieldAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<ShoppingListSetTextLineItemCustomFieldAction>- Returns:
- ShoppingListSetTextLineItemCustomFieldAction
-
buildUnchecked
builds ShoppingListSetTextLineItemCustomFieldAction without checking for non-null required values- Returns:
- ShoppingListSetTextLineItemCustomFieldAction
-
of
factory method for an instance of ShoppingListSetTextLineItemCustomFieldActionBuilder- Returns:
- builder
-
of
public static ShoppingListSetTextLineItemCustomFieldActionBuilder of(ShoppingListSetTextLineItemCustomFieldAction template) create builder for ShoppingListSetTextLineItemCustomFieldAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-