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