Class StagedOrderSetParcelCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetParcelCustomTypeAction>
Example to create an instance using the builder pattern
StagedOrderSetParcelCustomTypeAction stagedOrderSetParcelCustomTypeAction = StagedOrderSetParcelCustomTypeAction.builder()
.build()
-
Constructor Summary
-
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.id
of an existing Parcel.key
of an existing Parcel.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 instanceid
of an existing Parcel.key
of an existing Parcel.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
public StagedOrderSetParcelCustomTypeActionBuilder()
-
-
Method Details
-
parcelId
id
of an existing Parcel.Either
parcelId
orparcelKey
must be provided.- Parameters:
parcelId
- value to be set- Returns:
- Builder
-
parcelKey
key
of an existing Parcel.Either
parcelId
orparcelKey
must be provided.- 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
id
of an existing Parcel.Either
parcelId
orparcelKey
must be provided.- Returns:
- parcelId
-
getParcelKey
key
of an existing Parcel.Either
parcelId
orparcelKey
must be provided.- 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 interfaceBuilder<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
-