Package com.commercetools.api.models.me
Class MyBusinessUnitSetAddressCustomFieldActionBuilder
java.lang.Object
com.commercetools.api.models.me.MyBusinessUnitSetAddressCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<MyBusinessUnitSetAddressCustomFieldAction>
public class MyBusinessUnitSetAddressCustomFieldActionBuilder
extends Object
implements Builder<MyBusinessUnitSetAddressCustomFieldAction>
MyBusinessUnitSetAddressCustomFieldActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyBusinessUnitSetAddressCustomFieldAction myBusinessUnitSetAddressCustomFieldAction = MyBusinessUnitSetAddressCustomFieldAction.builder()
.addressId("{addressId}")
.name("{name}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionID of theaddress
to be extended.build()
builds MyBusinessUnitSetAddressCustomFieldAction with checking for non-null required valuesbuilds MyBusinessUnitSetAddressCustomFieldAction without checking for non-null required valuesID of theaddress
to be extended.getName()
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 MyBusinessUnitSetAddressCustomFieldActionBuilderof
(MyBusinessUnitSetAddressCustomFieldAction template) create builder for MyBusinessUnitSetAddressCustomFieldAction instanceIfvalue
is absent ornull
, this field will be removed if it exists.
-
Constructor Details
-
MyBusinessUnitSetAddressCustomFieldActionBuilder
public MyBusinessUnitSetAddressCustomFieldActionBuilder()
-
-
Method Details
-
addressId
ID of the
address
to be extended.- Parameters:
addressId
- 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. 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
-
getAddressId
ID of the
address
to be extended.- Returns:
- addressId
-
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 MyBusinessUnitSetAddressCustomFieldAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<MyBusinessUnitSetAddressCustomFieldAction>
- Returns:
- MyBusinessUnitSetAddressCustomFieldAction
-
buildUnchecked
builds MyBusinessUnitSetAddressCustomFieldAction without checking for non-null required values- Returns:
- MyBusinessUnitSetAddressCustomFieldAction
-
of
factory method for an instance of MyBusinessUnitSetAddressCustomFieldActionBuilder- Returns:
- builder
-
of
public static MyBusinessUnitSetAddressCustomFieldActionBuilder of(MyBusinessUnitSetAddressCustomFieldAction template) create builder for MyBusinessUnitSetAddressCustomFieldAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-