Class StagedOrderSetReturnItemCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetReturnItemCustomTypeAction>
Example to create an instance using the builder pattern
StagedOrderSetReturnItemCustomTypeAction stagedOrderSetReturnItemCustomTypeAction = StagedOrderSetReturnItemCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetReturnItemCustomTypeAction with checking for non-null required valuesbuilds StagedOrderSetReturnItemCustomTypeAction without checking for non-null required valuesfields
(FieldContainer fields) Sets the Custom Fields fields for the Return Item.Sets the Custom Fields fields for the Return Item.Sets the Custom Fields fields for the Return Item.id
of the ReturnItem to update.key
of the ReturnItem to update.getType()
Defines the Type that extends the Return Item with Custom Fields.of()
factory method for an instance of StagedOrderSetReturnItemCustomTypeActionBuilderof
(StagedOrderSetReturnItemCustomTypeAction template) create builder for StagedOrderSetReturnItemCustomTypeAction instancereturnItemId
(String returnItemId) id
of the ReturnItem to update.returnItemKey
(String returnItemKey) key
of the ReturnItem to update.type
(TypeResourceIdentifier type) Defines the Type that extends the Return Item with Custom Fields.Defines the Type that extends the Return Item with Custom Fields.Sets the Custom Fields fields for the Return Item.Defines the Type that extends the Return Item with Custom Fields.
-
Constructor Details
-
StagedOrderSetReturnItemCustomTypeActionBuilder
public StagedOrderSetReturnItemCustomTypeActionBuilder()
-
-
Method Details
-
returnItemId
id
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Parameters:
returnItemId
- value to be set- Returns:
- Builder
-
returnItemKey
public StagedOrderSetReturnItemCustomTypeActionBuilder returnItemKey(@Nullable String returnItemKey) key
of the ReturnItem to update. EitherreturnItemId
orreturnItemKey
is required.- Parameters:
returnItemKey
- value to be set- Returns:
- Builder
-
type
public StagedOrderSetReturnItemCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the Return Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Return Item.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public StagedOrderSetReturnItemCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the Return Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Return Item.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the Return Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Return Item.
- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public StagedOrderSetReturnItemCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the Return Item.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public StagedOrderSetReturnItemCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the Return Item.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the Return Item.
- Parameters:
fields
- 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
-
getType
Defines the Type that extends the Return Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Return Item.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Return Item.
- Returns:
- fields
-
build
builds StagedOrderSetReturnItemCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderSetReturnItemCustomTypeAction>
- Returns:
- StagedOrderSetReturnItemCustomTypeAction
-
buildUnchecked
builds StagedOrderSetReturnItemCustomTypeAction without checking for non-null required values- Returns:
- StagedOrderSetReturnItemCustomTypeAction
-
of
factory method for an instance of StagedOrderSetReturnItemCustomTypeActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetReturnItemCustomTypeActionBuilder of(StagedOrderSetReturnItemCustomTypeAction template) create builder for StagedOrderSetReturnItemCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-