Class MyShoppingListSetTextLineItemCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<MyShoppingListSetTextLineItemCustomTypeAction>
Example to create an instance using the builder pattern
MyShoppingListSetTextLineItemCustomTypeAction myShoppingListSetTextLineItemCustomTypeAction = MyShoppingListSetTextLineItemCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds MyShoppingListSetTextLineItemCustomTypeAction with checking for non-null required valuesbuilds MyShoppingListSetTextLineItemCustomTypeAction 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.Theidof the TextLineItem to update.Thekeyof the TextLineItem to update.getType()Defines the Type that extends the TextLineItem with Custom Fields.of()factory method for an instance of MyShoppingListSetTextLineItemCustomTypeActionBuildercreate builder for MyShoppingListSetTextLineItemCustomTypeAction instancetextLineItemId(String textLineItemId) Theidof the TextLineItem to update.textLineItemKey(String textLineItemKey) Thekeyof 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
-
MyShoppingListSetTextLineItemCustomTypeActionBuilder
public MyShoppingListSetTextLineItemCustomTypeActionBuilder()
-
-
Method Details
-
textLineItemId
public MyShoppingListSetTextLineItemCustomTypeActionBuilder textLineItemId(@Nullable String textLineItemId) The
idof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
textLineItemId- value to be set- Returns:
- Builder
-
textLineItemKey
public MyShoppingListSetTextLineItemCustomTypeActionBuilder textLineItemKey(@Nullable String textLineItemKey) The
keyof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Parameters:
textLineItemKey- value to be set- Returns:
- Builder
-
type
public MyShoppingListSetTextLineItemCustomTypeActionBuilder 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 MyShoppingListSetTextLineItemCustomTypeActionBuilder 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 MyShoppingListSetTextLineItemCustomTypeActionBuilder 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 MyShoppingListSetTextLineItemCustomTypeActionBuilder 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 MyShoppingListSetTextLineItemCustomTypeActionBuilder 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
idof the TextLineItem to update. EitherlineItemIdorlineItemKeyis required.- Returns:
- textLineItemId
-
getTextLineItemKey
The
keyof the TextLineItem to update. EitherlineItemIdorlineItemKeyis 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 MyShoppingListSetTextLineItemCustomTypeAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<MyShoppingListSetTextLineItemCustomTypeAction>- Returns:
- MyShoppingListSetTextLineItemCustomTypeAction
-
buildUnchecked
builds MyShoppingListSetTextLineItemCustomTypeAction without checking for non-null required values- Returns:
- MyShoppingListSetTextLineItemCustomTypeAction
-
of
factory method for an instance of MyShoppingListSetTextLineItemCustomTypeActionBuilder- Returns:
- builder
-
of
public static MyShoppingListSetTextLineItemCustomTypeActionBuilder of(MyShoppingListSetTextLineItemCustomTypeAction template) create builder for MyShoppingListSetTextLineItemCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-