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
-
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.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 MyShoppingListSetTextLineItemCustomFieldActionBuildercreate builder for MyShoppingListSetTextLineItemCustomFieldAction 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
-
MyShoppingListSetTextLineItemCustomFieldActionBuilder
public MyShoppingListSetTextLineItemCustomFieldActionBuilder()
-
-
Method Details
-
textLineItemId
public MyShoppingListSetTextLineItemCustomFieldActionBuilder 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 MyShoppingListSetTextLineItemCustomFieldActionBuilder 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 MyShoppingListSetTextLineItemCustomFieldAction with checking for non-null required values- Specified by:
build
in 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
-