Package com.commercetools.api.models.me
Class MyBusinessUnitSetCustomFieldActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyBusinessUnitSetCustomFieldActionBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<MyBusinessUnitSetCustomFieldAction>
public class MyBusinessUnitSetCustomFieldActionBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<MyBusinessUnitSetCustomFieldAction>
MyBusinessUnitSetCustomFieldActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyBusinessUnitSetCustomFieldAction myBusinessUnitSetCustomFieldAction = MyBusinessUnitSetCustomFieldAction.builder()
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds MyBusinessUnitSetCustomFieldAction with checking for non-null required valuesbuilds MyBusinessUnitSetCustomFieldAction 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 MyBusinessUnitSetCustomFieldActionBuilderof
(MyBusinessUnitSetCustomFieldAction template) create builder for MyBusinessUnitSetCustomFieldAction instanceIfvalue
is absent ornull
, this field will be removed if it exists.
-
Constructor Details
-
MyBusinessUnitSetCustomFieldActionBuilder
public MyBusinessUnitSetCustomFieldActionBuilder()
-
-
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 MyBusinessUnitSetCustomFieldAction with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<MyBusinessUnitSetCustomFieldAction>
- Returns:
- MyBusinessUnitSetCustomFieldAction
-
buildUnchecked
builds MyBusinessUnitSetCustomFieldAction without checking for non-null required values- Returns:
- MyBusinessUnitSetCustomFieldAction
-
of
factory method for an instance of MyBusinessUnitSetCustomFieldActionBuilder- Returns:
- builder
-
of
public static MyBusinessUnitSetCustomFieldActionBuilder of(MyBusinessUnitSetCustomFieldAction template) create builder for MyBusinessUnitSetCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-