Class StagedOrderSetParcelCustomTypeActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<StagedOrderSetParcelCustomTypeAction>
Example to create an instance using the builder pattern
StagedOrderSetParcelCustomTypeAction stagedOrderSetParcelCustomTypeAction = StagedOrderSetParcelCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetParcelCustomTypeAction with checking for non-null required valuesbuilds StagedOrderSetParcelCustomTypeAction without checking for non-null required valuesfields
(FieldContainer fields) Sets the Custom Fields fields for the Parcel.Sets the Custom Fields fields for the Parcel.Sets the Custom Fields fields for the Parcel.EitherparcelId
orparcelKey
is required for this update action.EitherparcelId
orparcelKey
is required for this update action.getType()
Defines the Type that extends the Parcel with Custom Fields.of()
factory method for an instance of StagedOrderSetParcelCustomTypeActionBuilderof
(StagedOrderSetParcelCustomTypeAction template) create builder for StagedOrderSetParcelCustomTypeAction instanceEitherparcelId
orparcelKey
is required for this update action.EitherparcelId
orparcelKey
is required for this update action.type
(TypeResourceIdentifier type) Defines the Type that extends the Parcel with Custom Fields.Defines the Type that extends the Parcel with Custom Fields.Sets the Custom Fields fields for the Parcel.Defines the Type that extends the Parcel with Custom Fields.
-
Constructor Details
-
StagedOrderSetParcelCustomTypeActionBuilder
-
-
Method Details
-
parcelId
Either
parcelId
orparcelKey
is required for this update action.- Parameters:
parcelId
- value to be set- Returns:
- Builder
-
parcelKey
Either
parcelId
orparcelKey
is required for this update action.- Parameters:
parcelKey
- value to be set- Returns:
- Builder
-
type
public StagedOrderSetParcelCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the Parcel with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Parcel.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public StagedOrderSetParcelCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the Parcel with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Parcel.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the Parcel with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Parcel.
- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public StagedOrderSetParcelCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the Parcel.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public StagedOrderSetParcelCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the Parcel.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the Parcel.
- Parameters:
fields
- value to be set- Returns:
- Builder
-
getParcelId
Either
parcelId
orparcelKey
is required for this update action.- Returns:
- parcelId
-
getParcelKey
Either
parcelId
orparcelKey
is required for this update action.- Returns:
- parcelKey
-
getType
Defines the Type that extends the Parcel with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Parcel.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Parcel.
- Returns:
- fields
-
build
builds StagedOrderSetParcelCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<StagedOrderSetParcelCustomTypeAction>
- Returns:
- StagedOrderSetParcelCustomTypeAction
-
buildUnchecked
builds StagedOrderSetParcelCustomTypeAction without checking for non-null required values- Returns:
- StagedOrderSetParcelCustomTypeAction
-
of
factory method for an instance of StagedOrderSetParcelCustomTypeActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetParcelCustomTypeActionBuilder of(StagedOrderSetParcelCustomTypeAction template) create builder for StagedOrderSetParcelCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-