Package com.commercetools.api.models.me
Class MyShoppingListSetTextLineItemCustomFieldActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyShoppingListSetTextLineItemCustomFieldActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<MyShoppingListSetTextLineItemCustomFieldAction>
public class MyShoppingListSetTextLineItemCustomFieldActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<MyShoppingListSetTextLineItemCustomFieldAction>
MyShoppingListSetTextLineItemCustomFieldActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyShoppingListSetTextLineItemCustomFieldAction myShoppingListSetTextLineItemCustomFieldAction = MyShoppingListSetTextLineItemCustomFieldAction.builder()
.textLineItemId("{textLineItemId}")
.name("{name}")
.build()
-
Constructor Summary
Constructors -
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.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.Ifvalue
is absent ornull
, this field will be removed if it exists.
-
Constructor Details
-
MyShoppingListSetTextLineItemCustomFieldActionBuilder
-
-
Method Details
-
textLineItemId
The
id
of the TextLineItem to update.- Parameters:
textLineItemId
- 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.- Returns:
- textLineItemId
-
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 interfaceio.vrap.rmf.base.client.Builder<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
-