Class OrderSetParcelCustomFieldActionBuilder
java.lang.Object
com.commercetools.api.models.order.OrderSetParcelCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<OrderSetParcelCustomFieldAction>
public class OrderSetParcelCustomFieldActionBuilder
extends Object
implements Builder<OrderSetParcelCustomFieldAction>
OrderSetParcelCustomFieldActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
OrderSetParcelCustomFieldAction orderSetParcelCustomFieldAction = OrderSetParcelCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds OrderSetParcelCustomFieldAction with checking for non-null required valuesbuilds OrderSetParcelCustomFieldAction 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 OrderSetParcelCustomFieldActionBuilderof
(OrderSetParcelCustomFieldAction template) create builder for OrderSetParcelCustomFieldAction instanceid
of an existing Parcel.key
of an existing Parcel.Ifvalue
is absent ornull
, this field will be removed if it exists.
-
Constructor Details
-
OrderSetParcelCustomFieldActionBuilder
public OrderSetParcelCustomFieldActionBuilder()
-
-
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 OrderSetParcelCustomFieldAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<OrderSetParcelCustomFieldAction>
- Returns:
- OrderSetParcelCustomFieldAction
-
buildUnchecked
builds OrderSetParcelCustomFieldAction without checking for non-null required values- Returns:
- OrderSetParcelCustomFieldAction
-
of
factory method for an instance of OrderSetParcelCustomFieldActionBuilder- Returns:
- builder
-
of
create builder for OrderSetParcelCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-