Class BusinessUnitSetCustomFieldActionBuilder
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitSetCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<BusinessUnitSetCustomFieldAction>
public class BusinessUnitSetCustomFieldActionBuilder
extends Object
implements Builder<BusinessUnitSetCustomFieldAction>
BusinessUnitSetCustomFieldActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitSetCustomFieldAction businessUnitSetCustomFieldAction = BusinessUnitSetCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitSetCustomFieldAction with checking for non-null required valuesbuilds BusinessUnitSetCustomFieldAction without checking for non-null required valuesgetName()
Name of the Custom Field to add, update, or remove.getValue()
Ifvalue
is absent ornull
, this field will be removed if it exists.Name of the Custom Field to add, update, or remove.of()
factory method for an instance of BusinessUnitSetCustomFieldActionBuilderof
(BusinessUnitSetCustomFieldAction template) create builder for BusinessUnitSetCustomFieldAction instanceIfvalue
is absent ornull
, this field will be removed if it exists.
-
Constructor Details
-
BusinessUnitSetCustomFieldActionBuilder
public BusinessUnitSetCustomFieldActionBuilder()
-
-
Method Details
-
name
Name of the Custom Field to add, update, or remove.
- Parameters:
name
- value to be set- Returns:
- Builder
-
value
If
value
is absent ornull
, this field will be removed if it exists. Trying to remove a field that does not exist will fail with an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Parameters:
value
- value to be set- Returns:
- Builder
-
getName
Name of the Custom Field to add, update, or remove.
- Returns:
- name
-
getValue
If
value
is absent ornull
, this field will be removed if it exists. Trying to remove a field that does not exist will fail with an InvalidOperation error. Ifvalue
is provided, it is set for the field defined byname
.- Returns:
- value
-
build
builds BusinessUnitSetCustomFieldAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitSetCustomFieldAction>
- Returns:
- BusinessUnitSetCustomFieldAction
-
buildUnchecked
builds BusinessUnitSetCustomFieldAction without checking for non-null required values- Returns:
- BusinessUnitSetCustomFieldAction
-
of
factory method for an instance of BusinessUnitSetCustomFieldActionBuilder- Returns:
- builder
-
of
create builder for BusinessUnitSetCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-