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