Class StagedOrderSetCustomLineItemCustomTypeActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderSetCustomLineItemCustomTypeAction>
Example to create an instance using the builder pattern
StagedOrderSetCustomLineItemCustomTypeAction stagedOrderSetCustomLineItemCustomTypeAction = StagedOrderSetCustomLineItemCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetCustomLineItemCustomTypeAction with checking for non-null required valuesbuilds StagedOrderSetCustomLineItemCustomTypeAction without checking for non-null required valuescustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.customLineItemKey
(String customLineItemKey) key
of the CustomLineItem to update.fields
(FieldContainer fields) Sets the Custom Fields fields for the Custom Line Item.Sets the Custom Fields fields for the Custom Line Item.id
of the CustomLineItem to update.key
of the CustomLineItem to update.Sets the Custom Fields fields for the Custom Line Item.getType()
Defines the Type that extends the Custom Line Item with Custom Fields.of()
factory method for an instance of StagedOrderSetCustomLineItemCustomTypeActionBuildercreate builder for StagedOrderSetCustomLineItemCustomTypeAction instancetype
(TypeResourceIdentifier type) Defines the Type that extends the Custom Line Item with Custom Fields.Defines the Type that extends the Custom Line Item with Custom Fields.Sets the Custom Fields fields for the Custom Line Item.Defines the Type that extends the Custom Line Item with Custom Fields.
-
Constructor Details
-
StagedOrderSetCustomLineItemCustomTypeActionBuilder
-
-
Method Details
-
customLineItemId
public StagedOrderSetCustomLineItemCustomTypeActionBuilder customLineItemId(@Nullable String customLineItemId) id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemId
- value to be set- Returns:
- Builder
-
customLineItemKey
public StagedOrderSetCustomLineItemCustomTypeActionBuilder customLineItemKey(@Nullable String customLineItemKey) key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Parameters:
customLineItemKey
- value to be set- Returns:
- Builder
-
type
public StagedOrderSetCustomLineItemCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the Custom Line Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Custom Line Item.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public StagedOrderSetCustomLineItemCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the Custom Line Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Custom Line Item.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
public StagedOrderSetCustomLineItemCustomTypeActionBuilder type(@Nullable TypeResourceIdentifier type) Defines the Type that extends the Custom Line Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Custom Line Item.
- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public StagedOrderSetCustomLineItemCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the Custom Line Item.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public StagedOrderSetCustomLineItemCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the Custom Line Item.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the Custom Line Item.
- Parameters:
fields
- value to be set- Returns:
- Builder
-
getCustomLineItemId
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemId
-
getCustomLineItemKey
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Returns:
- customLineItemKey
-
getType
Defines the Type that extends the Custom Line Item with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Custom Line Item.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Custom Line Item.
- Returns:
- fields
-
build
builds StagedOrderSetCustomLineItemCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<StagedOrderSetCustomLineItemCustomTypeAction>
- Returns:
- StagedOrderSetCustomLineItemCustomTypeAction
-
buildUnchecked
builds StagedOrderSetCustomLineItemCustomTypeAction without checking for non-null required values- Returns:
- StagedOrderSetCustomLineItemCustomTypeAction
-
of
factory method for an instance of StagedOrderSetCustomLineItemCustomTypeActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetCustomLineItemCustomTypeActionBuilder of(StagedOrderSetCustomLineItemCustomTypeAction template) create builder for StagedOrderSetCustomLineItemCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-