Class BusinessUnitSetCustomFieldActionBuilder
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitSetCustomFieldActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<BusinessUnitSetCustomFieldAction>
public class BusinessUnitSetCustomFieldActionBuilder
extends Object
implements io.vrap.rmf.base.client.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
Constructors -
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.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 BusinessUnitSetCustomFieldActionBuilderof
(BusinessUnitSetCustomFieldAction template) create builder for BusinessUnitSetCustomFieldAction instanceIfvalue
is absent ornull
, this field will be removed if it exists.
-
Constructor Details
-
BusinessUnitSetCustomFieldActionBuilder
-
-
Method Details
-
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. 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.
- 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 interfaceio.vrap.rmf.base.client.Builder<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
-