Class StagedOrderSetDeliveryCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetDeliveryCustomTypeAction>
Example to create an instance using the builder pattern
StagedOrderSetDeliveryCustomTypeAction stagedOrderSetDeliveryCustomTypeAction = StagedOrderSetDeliveryCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StagedOrderSetDeliveryCustomTypeAction with checking for non-null required valuesbuilds StagedOrderSetDeliveryCustomTypeAction without checking for non-null required valuesdeliveryId(String deliveryId) idof an existing Delivery.deliveryKey(String deliveryKey) keyof an existing Delivery.fields(FieldContainer fields) Object containing the Custom Fields fields for the Delivery.Object containing the Custom Fields fields for the Delivery.idof an existing Delivery.keyof an existing Delivery.Object containing the Custom Fields fields for the Delivery.getType()Defines the Type that extends the Delivery with Custom Fields.of()factory method for an instance of StagedOrderSetDeliveryCustomTypeActionBuilderof(StagedOrderSetDeliveryCustomTypeAction template) create builder for StagedOrderSetDeliveryCustomTypeAction instancetype(TypeResourceIdentifier type) Defines the Type that extends the Delivery with Custom Fields.Defines the Type that extends the Delivery with Custom Fields.Object containing the Custom Fields fields for the Delivery.Defines the Type that extends the Delivery with Custom Fields.
-
Constructor Details
-
StagedOrderSetDeliveryCustomTypeActionBuilder
public StagedOrderSetDeliveryCustomTypeActionBuilder()
-
-
Method Details
-
deliveryId
idof an existing Delivery.Either
deliveryIdordeliveryKeymust be provided.- Parameters:
deliveryId- value to be set- Returns:
- Builder
-
deliveryKey
keyof an existing Delivery.Either
deliveryIdordeliveryKeymust be provided.- Parameters:
deliveryKey- value to be set- Returns:
- Builder
-
type
public StagedOrderSetDeliveryCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the Delivery with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Delivery.
- Parameters:
builder- function to build the type value- Returns:
- Builder
-
withType
public StagedOrderSetDeliveryCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the Delivery with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Delivery.
- Parameters:
builder- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the Delivery with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Delivery.
- Parameters:
type- value to be set- Returns:
- Builder
-
fields
public StagedOrderSetDeliveryCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Object containing the Custom Fields fields for the Delivery.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
withFields
public StagedOrderSetDeliveryCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Object containing the Custom Fields fields for the Delivery.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
fields
Object containing the Custom Fields fields for the Delivery.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
fields- value to be set- Returns:
- Builder
-
getDeliveryId
idof an existing Delivery.Either
deliveryIdordeliveryKeymust be provided.- Returns:
- deliveryId
-
getDeliveryKey
keyof an existing Delivery.Either
deliveryIdordeliveryKeymust be provided.- Returns:
- deliveryKey
-
getType
Defines the Type that extends the Delivery with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Delivery.
- Returns:
- type
-
getFields
Object containing the Custom Fields fields for the Delivery.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Returns:
- fields
-
build
builds StagedOrderSetDeliveryCustomTypeAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<StagedOrderSetDeliveryCustomTypeAction>- Returns:
- StagedOrderSetDeliveryCustomTypeAction
-
buildUnchecked
builds StagedOrderSetDeliveryCustomTypeAction without checking for non-null required values- Returns:
- StagedOrderSetDeliveryCustomTypeAction
-
of
factory method for an instance of StagedOrderSetDeliveryCustomTypeActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetDeliveryCustomTypeActionBuilder of(StagedOrderSetDeliveryCustomTypeAction template) create builder for StagedOrderSetDeliveryCustomTypeAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-