Class ShoppingListSetLineItemCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<ShoppingListSetLineItemCustomTypeAction>
Example to create an instance using the builder pattern
ShoppingListSetLineItemCustomTypeAction shoppingListSetLineItemCustomTypeAction = ShoppingListSetLineItemCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ShoppingListSetLineItemCustomTypeAction with checking for non-null required valuesbuilds ShoppingListSetLineItemCustomTypeAction without checking for non-null required valuesfields
(FieldContainer fields) Sets the Custom Fields fields for the ShoppingListLineItem.Sets the Custom Fields fields for the ShoppingListLineItem.Sets the Custom Fields fields for the ShoppingListLineItem.Theid
of the ShoppingListLineItem to update.Thekey
of the ShoppingListLineItem to update.getType()
Defines the Type that extends the ShoppingListLineItem with Custom Fields.lineItemId
(String lineItemId) Theid
of the ShoppingListLineItem to update.lineItemKey
(String lineItemKey) Thekey
of the ShoppingListLineItem to update.of()
factory method for an instance of ShoppingListSetLineItemCustomTypeActionBuilderof
(ShoppingListSetLineItemCustomTypeAction template) create builder for ShoppingListSetLineItemCustomTypeAction instancetype
(TypeResourceIdentifier type) Defines the Type that extends the ShoppingListLineItem with Custom Fields.Defines the Type that extends the ShoppingListLineItem with Custom Fields.Sets the Custom Fields fields for the ShoppingListLineItem.Defines the Type that extends the ShoppingListLineItem with Custom Fields.
-
Constructor Details
-
ShoppingListSetLineItemCustomTypeActionBuilder
public ShoppingListSetLineItemCustomTypeActionBuilder()
-
-
Method Details
-
lineItemId
The
id
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemId
- value to be set- Returns:
- Builder
-
lineItemKey
The
key
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is required.- Parameters:
lineItemKey
- value to be set- Returns:
- Builder
-
type
public ShoppingListSetLineItemCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the ShoppingListLineItem with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ShoppingListLineItem.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public ShoppingListSetLineItemCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the ShoppingListLineItem with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ShoppingListLineItem.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the ShoppingListLineItem with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ShoppingListLineItem.
- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public ShoppingListSetLineItemCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the ShoppingListLineItem.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public ShoppingListSetLineItemCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the ShoppingListLineItem.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the ShoppingListLineItem.
- Parameters:
fields
- value to be set- Returns:
- Builder
-
getLineItemId
The
id
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemId
-
getLineItemKey
The
key
of the ShoppingListLineItem to update. EitherlineItemId
orlineItemKey
is required.- Returns:
- lineItemKey
-
getType
Defines the Type that extends the ShoppingListLineItem with Custom Fields. If absent, any existing Type and Custom Fields are removed from the ShoppingListLineItem.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the ShoppingListLineItem.
- Returns:
- fields
-
build
builds ShoppingListSetLineItemCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<ShoppingListSetLineItemCustomTypeAction>
- Returns:
- ShoppingListSetLineItemCustomTypeAction
-
buildUnchecked
builds ShoppingListSetLineItemCustomTypeAction without checking for non-null required values- Returns:
- ShoppingListSetLineItemCustomTypeAction
-
of
factory method for an instance of ShoppingListSetLineItemCustomTypeActionBuilder- Returns:
- builder
-
of
public static ShoppingListSetLineItemCustomTypeActionBuilder of(ShoppingListSetLineItemCustomTypeAction template) create builder for ShoppingListSetLineItemCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-