Class StagedOrderSetParcelCustomFieldActionBuilder
java.lang.Object
com.commercetools.api.models.order_edit.StagedOrderSetParcelCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<StagedOrderSetParcelCustomFieldAction>
public class StagedOrderSetParcelCustomFieldActionBuilder
extends Object
implements Builder<StagedOrderSetParcelCustomFieldAction>
StagedOrderSetParcelCustomFieldActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StagedOrderSetParcelCustomFieldAction stagedOrderSetParcelCustomFieldAction = StagedOrderSetParcelCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StagedOrderSetParcelCustomFieldAction with checking for non-null required valuesbuilds StagedOrderSetParcelCustomFieldAction without checking for non-null required valuesgetName()
Name of the Custom Field.id
of an existing Parcel.key
of an existing Parcel.getValue()
Ifvalue
is absent ornull
, this field will be removed if it exists.Name of the Custom Field.of()
factory method for an instance of StagedOrderSetParcelCustomFieldActionBuilderof
(StagedOrderSetParcelCustomFieldAction template) create builder for StagedOrderSetParcelCustomFieldAction instanceid
of an existing Parcel.key
of an existing Parcel.Ifvalue
is absent ornull
, this field will be removed if it exists.
-
Constructor Details
-
StagedOrderSetParcelCustomFieldActionBuilder
public StagedOrderSetParcelCustomFieldActionBuilder()
-
-
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
-
name
Name of the Custom Field.
- Parameters:
name
- value to be set- Returns:
- Builder
-
value
If
value
is absent ornull
, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Parameters:
value
- 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
-
getName
Name of the Custom Field.
- Returns:
- name
-
getValue
If
value
is absent ornull
, this field will be removed if it exists. Removing a field that does not exist returns an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Returns:
- value
-
build
builds StagedOrderSetParcelCustomFieldAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StagedOrderSetParcelCustomFieldAction>
- Returns:
- StagedOrderSetParcelCustomFieldAction
-
buildUnchecked
builds StagedOrderSetParcelCustomFieldAction without checking for non-null required values- Returns:
- StagedOrderSetParcelCustomFieldAction
-
of
factory method for an instance of StagedOrderSetParcelCustomFieldActionBuilder- Returns:
- builder
-
of
public static StagedOrderSetParcelCustomFieldActionBuilder of(StagedOrderSetParcelCustomFieldAction template) create builder for StagedOrderSetParcelCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-