Class MyShoppingListAddTextLineItemActionBuilder
- All Implemented Interfaces:
Builder<MyShoppingListAddTextLineItemAction>
Example to create an instance using the builder pattern
MyShoppingListAddTextLineItemAction myShoppingListAddTextLineItemAction = MyShoppingListAddTextLineItemAction.builder()
.name(nameBuilder -> nameBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddedAt
(ZonedDateTime addedAt) Date and time the TextLineItem is added to the ShoppingList.build()
builds MyShoppingListAddTextLineItemAction with checking for non-null required valuesbuilds MyShoppingListAddTextLineItemAction without checking for non-null required valuescustom
(CustomFieldsDraft custom) Custom Fields defined for the TextLineItem.Custom Fields defined for the TextLineItem.description
(LocalizedString description) Description of the TextLineItem.Description of the TextLineItem.Date and time the TextLineItem is added to the ShoppingList.Custom Fields defined for the TextLineItem.Description of the TextLineItem.getKey()
User-defined identifier of the TextLineItem.getName()
Name of the TextLineItem.Number of entries in the TextLineItem.User-defined identifier of the TextLineItem.name
(LocalizedString name) Name of the TextLineItem.Name of the TextLineItem.of()
factory method for an instance of MyShoppingListAddTextLineItemActionBuilderof
(MyShoppingListAddTextLineItemAction template) create builder for MyShoppingListAddTextLineItemAction instanceNumber of entries in the TextLineItem.Custom Fields defined for the TextLineItem.Description of the TextLineItem.Name of the TextLineItem.
-
Constructor Details
-
MyShoppingListAddTextLineItemActionBuilder
public MyShoppingListAddTextLineItemActionBuilder()
-
-
Method Details
-
name
public MyShoppingListAddTextLineItemActionBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Name of the TextLineItem.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
public MyShoppingListAddTextLineItemActionBuilder withName(Function<LocalizedStringBuilder, LocalizedString> builder) Name of the TextLineItem.
- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
Name of the TextLineItem.
- Parameters:
name
- value to be set- Returns:
- Builder
-
key
User-defined identifier of the TextLineItem. Must be unique per ShoppingList.
- Parameters:
key
- value to be set- Returns:
- Builder
-
description
public MyShoppingListAddTextLineItemActionBuilder description(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Description of the TextLineItem.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
withDescription
public MyShoppingListAddTextLineItemActionBuilder withDescription(Function<LocalizedStringBuilder, LocalizedString> builder) Description of the TextLineItem.
- Parameters:
builder
- function to build the description value- Returns:
- Builder
-
description
public MyShoppingListAddTextLineItemActionBuilder description(@Nullable LocalizedString description) Description of the TextLineItem.
- Parameters:
description
- value to be set- Returns:
- Builder
-
quantity
Number of entries in the TextLineItem.
- Parameters:
quantity
- value to be set- Returns:
- Builder
-
addedAt
Date and time the TextLineItem is added to the ShoppingList. If not set, the current date and time (UTC) is used.
- Parameters:
addedAt
- value to be set- Returns:
- Builder
-
custom
public MyShoppingListAddTextLineItemActionBuilder custom(Function<CustomFieldsDraftBuilder, CustomFieldsDraftBuilder> builder) Custom Fields defined for the TextLineItem.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
withCustom
public MyShoppingListAddTextLineItemActionBuilder withCustom(Function<CustomFieldsDraftBuilder, CustomFieldsDraft> builder) Custom Fields defined for the TextLineItem.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
custom
Custom Fields defined for the TextLineItem.
- Parameters:
custom
- value to be set- Returns:
- Builder
-
getName
Name of the TextLineItem.
- Returns:
- name
-
getKey
User-defined identifier of the TextLineItem. Must be unique per ShoppingList.
- Returns:
- key
-
getDescription
Description of the TextLineItem.
- Returns:
- description
-
getQuantity
Number of entries in the TextLineItem.
- Returns:
- quantity
-
getAddedAt
Date and time the TextLineItem is added to the ShoppingList. If not set, the current date and time (UTC) is used.
- Returns:
- addedAt
-
getCustom
Custom Fields defined for the TextLineItem.
- Returns:
- custom
-
build
builds MyShoppingListAddTextLineItemAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyShoppingListAddTextLineItemAction>
- Returns:
- MyShoppingListAddTextLineItemAction
-
buildUnchecked
builds MyShoppingListAddTextLineItemAction without checking for non-null required values- Returns:
- MyShoppingListAddTextLineItemAction
-
of
factory method for an instance of MyShoppingListAddTextLineItemActionBuilder- Returns:
- builder
-
of
public static MyShoppingListAddTextLineItemActionBuilder of(MyShoppingListAddTextLineItemAction template) create builder for MyShoppingListAddTextLineItemAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-