Class BusinessUnitSetContactEmailActionBuilder
java.lang.Object
com.commercetools.api.models.business_unit.BusinessUnitSetContactEmailActionBuilder
- All Implemented Interfaces:
Builder<BusinessUnitSetContactEmailAction>
public class BusinessUnitSetContactEmailActionBuilder
extends Object
implements Builder<BusinessUnitSetContactEmailAction>
BusinessUnitSetContactEmailActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitSetContactEmailAction businessUnitSetContactEmailAction = BusinessUnitSetContactEmailAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitSetContactEmailAction with checking for non-null required valuesbuilds BusinessUnitSetContactEmailAction without checking for non-null required valuescontactEmail
(String contactEmail) Email to set.Email to set.of()
factory method for an instance of BusinessUnitSetContactEmailActionBuilderof
(BusinessUnitSetContactEmailAction template) create builder for BusinessUnitSetContactEmailAction instance
-
Constructor Details
-
BusinessUnitSetContactEmailActionBuilder
public BusinessUnitSetContactEmailActionBuilder()
-
-
Method Details
-
contactEmail
Email to set. If
contactEmail
is absent ornull
, the existing contact email, if any, will be removed.- Parameters:
contactEmail
- value to be set- Returns:
- Builder
-
getContactEmail
Email to set. If
contactEmail
is absent ornull
, the existing contact email, if any, will be removed.- Returns:
- contactEmail
-
build
builds BusinessUnitSetContactEmailAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitSetContactEmailAction>
- Returns:
- BusinessUnitSetContactEmailAction
-
buildUnchecked
builds BusinessUnitSetContactEmailAction without checking for non-null required values- Returns:
- BusinessUnitSetContactEmailAction
-
of
factory method for an instance of BusinessUnitSetContactEmailActionBuilder- Returns:
- builder
-
of
public static BusinessUnitSetContactEmailActionBuilder of(BusinessUnitSetContactEmailAction template) create builder for BusinessUnitSetContactEmailAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-