Class StagedOrderSetReturnItemCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetReturnItemCustomFieldAction>
Example to create an instance using the builder pattern
StagedOrderSetReturnItemCustomFieldAction stagedOrderSetReturnItemCustomFieldAction = StagedOrderSetReturnItemCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetReturnItemCustomFieldAction with checking for non-null required valuesbuilds StagedOrderSetReturnItemCustomFieldAction 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 StagedOrderSetReturnItemCustomFieldActionBuilderof
(StagedOrderSetReturnItemCustomFieldAction template) create builder for StagedOrderSetReturnItemCustomFieldAction 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
-
StagedOrderSetReturnItemCustomFieldActionBuilder
public StagedOrderSetReturnItemCustomFieldActionBuilder()
-
-
Method Details
-
returnItemId
id
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Parameters:
returnItemId
- value to be set- Returns:
- Builder
-
returnItemKey
public StagedOrderSetReturnItemCustomFieldActionBuilder returnItemKey(@Nullable String 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 StagedOrderSetReturnItemCustomFieldAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderSetReturnItemCustomFieldAction>
- Returns:
- StagedOrderSetReturnItemCustomFieldAction
-
buildUnchecked
builds StagedOrderSetReturnItemCustomFieldAction without checking for non-null required values- Returns:
- StagedOrderSetReturnItemCustomFieldAction
-
of
factory method for an instance of StagedOrderSetReturnItemCustomFieldActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetReturnItemCustomFieldActionBuilder of(StagedOrderSetReturnItemCustomFieldAction template) create builder for StagedOrderSetReturnItemCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-