Class CustomerSetAddressCustomFieldActionBuilder
java.lang.Object
com.commercetools.api.models.customer.CustomerSetAddressCustomFieldActionBuilder
- All Implemented Interfaces:
Builder<CustomerSetAddressCustomFieldAction>
public class CustomerSetAddressCustomFieldActionBuilder
extends Object
implements Builder<CustomerSetAddressCustomFieldAction>
CustomerSetAddressCustomFieldActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
CustomerSetAddressCustomFieldAction customerSetAddressCustomFieldAction = CustomerSetAddressCustomFieldAction.builder()
.addressId("{addressId}")
.name("{name}")
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionUser-defined unique identifier of the Address to be updated.build()builds CustomerSetAddressCustomFieldAction with checking for non-null required valuesbuilds CustomerSetAddressCustomFieldAction without checking for non-null required valuesUser-defined unique identifier of the Address to be updated.getName()Name of the Custom Field.getValue()Ifvalueis absent ornull, this field will be removed if it exists.Name of the Custom Field.of()factory method for an instance of CustomerSetAddressCustomFieldActionBuilderof(CustomerSetAddressCustomFieldAction template) create builder for CustomerSetAddressCustomFieldAction instanceIfvalueis absent ornull, this field will be removed if it exists.
-
Constructor Details
-
CustomerSetAddressCustomFieldActionBuilder
public CustomerSetAddressCustomFieldActionBuilder()
-
-
Method Details
-
addressId
User-defined unique identifier of the Address to be updated.
- Parameters:
addressId- value to be set- Returns:
- Builder
-
name
Name of the Custom Field.
- Parameters:
name- value to be set- Returns:
- Builder
-
value
If
valueis absent ornull, this field will be removed if it exists. Ifvalueis provided, it is set for the field defined byname. Trying to remove a field that does not exist will fail with an InvalidOperation error.- Parameters:
value- value to be set- Returns:
- Builder
-
getAddressId
User-defined unique identifier of the Address to be updated.
- Returns:
- addressId
-
getName
Name of the Custom Field.
- Returns:
- name
-
getValue
If
valueis absent ornull, this field will be removed if it exists. Ifvalueis provided, it is set for the field defined byname. Trying to remove a field that does not exist will fail with an InvalidOperation error.- Returns:
- value
-
build
builds CustomerSetAddressCustomFieldAction with checking for non-null required values- Specified by:
buildin interfaceBuilder<CustomerSetAddressCustomFieldAction>- Returns:
- CustomerSetAddressCustomFieldAction
-
buildUnchecked
builds CustomerSetAddressCustomFieldAction without checking for non-null required values- Returns:
- CustomerSetAddressCustomFieldAction
-
of
factory method for an instance of CustomerSetAddressCustomFieldActionBuilder- Returns:
- builder
-
of
public static CustomerSetAddressCustomFieldActionBuilder of(CustomerSetAddressCustomFieldAction template) create builder for CustomerSetAddressCustomFieldAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-