Class OrderSetReturnItemCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<OrderSetReturnItemCustomFieldAction>
Example to create an instance using the builder pattern
OrderSetReturnItemCustomFieldAction orderSetReturnItemCustomFieldAction = OrderSetReturnItemCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSetReturnItemCustomFieldAction with checking for non-null required valuesbuilds OrderSetReturnItemCustomFieldAction without checking for non-null required valuesgetName()
Name of the Custom Field.id
of the ReturnItem to update.key
of the ReturnItem 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 OrderSetReturnItemCustomFieldActionBuilderof
(OrderSetReturnItemCustomFieldAction template) create builder for OrderSetReturnItemCustomFieldAction instancereturnItemId
(String returnItemId) id
of the ReturnItem to update.returnItemKey
(String returnItemKey) key
of the ReturnItem to update.Ifvalue
is absent ornull
, this field will be removed if it exists.
-
Constructor Details
-
OrderSetReturnItemCustomFieldActionBuilder
public OrderSetReturnItemCustomFieldActionBuilder()
-
-
Method Details
-
returnItemId
id
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Parameters:
returnItemId
- value to be set- Returns:
- Builder
-
returnItemKey
key
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Parameters:
returnItemKey
- 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
-
getReturnItemId
id
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Returns:
- returnItemId
-
getReturnItemKey
key
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Returns:
- returnItemKey
-
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 OrderSetReturnItemCustomFieldAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetReturnItemCustomFieldAction>
- Returns:
- OrderSetReturnItemCustomFieldAction
-
buildUnchecked
builds OrderSetReturnItemCustomFieldAction without checking for non-null required values- Returns:
- OrderSetReturnItemCustomFieldAction
-
of
factory method for an instance of OrderSetReturnItemCustomFieldActionBuilder- Returns:
- builder
-
of
public static OrderSetReturnItemCustomFieldActionBuilder of(OrderSetReturnItemCustomFieldAction template) create builder for OrderSetReturnItemCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-