Class OrderSetReturnItemCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<OrderSetReturnItemCustomTypeAction>
Example to create an instance using the builder pattern
OrderSetReturnItemCustomTypeAction orderSetReturnItemCustomTypeAction = OrderSetReturnItemCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSetReturnItemCustomTypeAction with checking for non-null required valuesbuilds OrderSetReturnItemCustomTypeAction 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 OrderSetReturnItemCustomTypeActionBuilderof
(OrderSetReturnItemCustomTypeAction template) create builder for OrderSetReturnItemCustomTypeAction 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
-
OrderSetReturnItemCustomTypeActionBuilder
public OrderSetReturnItemCustomTypeActionBuilder()
-
-
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
-
type
public OrderSetReturnItemCustomTypeActionBuilder 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 OrderSetReturnItemCustomTypeActionBuilder 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 OrderSetReturnItemCustomTypeActionBuilder 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 OrderSetReturnItemCustomTypeActionBuilder 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 OrderSetReturnItemCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetReturnItemCustomTypeAction>
- Returns:
- OrderSetReturnItemCustomTypeAction
-
buildUnchecked
builds OrderSetReturnItemCustomTypeAction without checking for non-null required values- Returns:
- OrderSetReturnItemCustomTypeAction
-
of
factory method for an instance of OrderSetReturnItemCustomTypeActionBuilder- Returns:
- builder
-
of
public static OrderSetReturnItemCustomTypeActionBuilder of(OrderSetReturnItemCustomTypeAction template) create builder for OrderSetReturnItemCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-