Class ShoppingListSetTextLineItemCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<ShoppingListSetTextLineItemCustomTypeAction>
Example to create an instance using the builder pattern
ShoppingListSetTextLineItemCustomTypeAction shoppingListSetTextLineItemCustomTypeAction = ShoppingListSetTextLineItemCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShoppingListSetTextLineItemCustomTypeAction with checking for non-null required valuesbuilds ShoppingListSetTextLineItemCustomTypeAction without checking for non-null required valuesfields
(FieldContainer fields) Sets the Custom Fields fields for the TextLineItem.Sets the Custom Fields fields for the TextLineItem.Sets the Custom Fields fields for the TextLineItem.Theid
of the TextLineItem to update.Thekey
of the TextLineItem to update.getType()
Defines the Type that extends the TextLineItem with Custom Fields.of()
factory method for an instance of ShoppingListSetTextLineItemCustomTypeActionBuildercreate builder for ShoppingListSetTextLineItemCustomTypeAction instancetextLineItemId
(String textLineItemId) Theid
of the TextLineItem to update.textLineItemKey
(String textLineItemKey) Thekey
of the TextLineItem to update.type
(TypeResourceIdentifier type) Defines the Type that extends the TextLineItem with Custom Fields.Defines the Type that extends the TextLineItem with Custom Fields.Sets the Custom Fields fields for the TextLineItem.Defines the Type that extends the TextLineItem with Custom Fields.
-
Constructor Details
-
ShoppingListSetTextLineItemCustomTypeActionBuilder
public ShoppingListSetTextLineItemCustomTypeActionBuilder()
-
-
Method Details
-
textLineItemId
public ShoppingListSetTextLineItemCustomTypeActionBuilder 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 ShoppingListSetTextLineItemCustomTypeActionBuilder textLineItemKey(@Nullable String textLineItemKey) The
key
of the TextLineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
textLineItemKey
- value to be set- Returns:
- Builder
-
type
public ShoppingListSetTextLineItemCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the TextLineItem with Custom Fields. If absent, any existing Type and Custom Fields are removed from the TextLineItem.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public ShoppingListSetTextLineItemCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the TextLineItem with Custom Fields. If absent, any existing Type and Custom Fields are removed from the TextLineItem.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
public ShoppingListSetTextLineItemCustomTypeActionBuilder type(@Nullable TypeResourceIdentifier type) Defines the Type that extends the TextLineItem with Custom Fields. If absent, any existing Type and Custom Fields are removed from the TextLineItem.
- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public ShoppingListSetTextLineItemCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the TextLineItem.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public ShoppingListSetTextLineItemCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the TextLineItem.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the TextLineItem.
- Parameters:
fields
- 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
-
getType
Defines the Type that extends the TextLineItem with Custom Fields. If absent, any existing Type and Custom Fields are removed from the TextLineItem.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the TextLineItem.
- Returns:
- fields
-
build
builds ShoppingListSetTextLineItemCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShoppingListSetTextLineItemCustomTypeAction>
- Returns:
- ShoppingListSetTextLineItemCustomTypeAction
-
buildUnchecked
builds ShoppingListSetTextLineItemCustomTypeAction without checking for non-null required values- Returns:
- ShoppingListSetTextLineItemCustomTypeAction
-
of
factory method for an instance of ShoppingListSetTextLineItemCustomTypeActionBuilder- Returns:
- builder
-
of
public static ShoppingListSetTextLineItemCustomTypeActionBuilder of(ShoppingListSetTextLineItemCustomTypeAction template) create builder for ShoppingListSetTextLineItemCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-