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
-
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.Theid
of the TextLineItem to update.Thekey
of the TextLineItem to update.getValue()
Ifvalue
is 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) Theid
of the TextLineItem to update.textLineItemKey
(String textLineItemKey) Thekey
of the TextLineItem to update.Ifvalue
is 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
id
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
textLineItemId
- value to be set- Returns:
- Builder
-
textLineItemKey
public ShoppingListSetTextLineItemCustomFieldActionBuilder textLineItemKey(@Nullable String textLineItemKey) The
key
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is 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
value
is absent ornull
, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Parameters:
value
- value to be set- Returns:
- Builder
-
getTextLineItemId
The
id
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- textLineItemId
-
getTextLineItemKey
The
key
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- textLineItemKey
-
getName
Name of the Custom Field.
- Returns:
- name
-
getValue
If
value
is absent ornull
, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Returns:
- value
-
build
builds ShoppingListSetTextLineItemCustomFieldAction with checking for non-null required values- Specified by:
build
in 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
-