Class BusinessUnitStoreRemovedMessagePayloadBuilder
java.lang.Object
com.commercetools.api.models.message.BusinessUnitStoreRemovedMessagePayloadBuilder
- All Implemented Interfaces:
Builder<BusinessUnitStoreRemovedMessagePayload>
public class BusinessUnitStoreRemovedMessagePayloadBuilder
extends Object
implements Builder<BusinessUnitStoreRemovedMessagePayload>
BusinessUnitStoreRemovedMessagePayloadBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
BusinessUnitStoreRemovedMessagePayload businessUnitStoreRemovedMessagePayload = BusinessUnitStoreRemovedMessagePayload.builder()
.store(storeBuilder -> storeBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitStoreRemovedMessagePayload with checking for non-null required valuesbuilds BusinessUnitStoreRemovedMessagePayload without checking for non-null required valuesgetStore()
The Store that was removed from the Business Unit.of()
factory method for an instance of BusinessUnitStoreRemovedMessagePayloadBuilderof
(BusinessUnitStoreRemovedMessagePayload template) create builder for BusinessUnitStoreRemovedMessagePayload instancestore
(StoreKeyReference store) The Store that was removed from the Business Unit.The Store that was removed from the Business Unit.The Store that was removed from the Business Unit.
-
Constructor Details
-
BusinessUnitStoreRemovedMessagePayloadBuilder
public BusinessUnitStoreRemovedMessagePayloadBuilder()
-
-
Method Details
-
store
public BusinessUnitStoreRemovedMessagePayloadBuilder store(Function<StoreKeyReferenceBuilder, StoreKeyReferenceBuilder> builder) The Store that was removed from the Business Unit.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
withStore
public BusinessUnitStoreRemovedMessagePayloadBuilder withStore(Function<StoreKeyReferenceBuilder, StoreKeyReference> builder) The Store that was removed from the Business Unit.
- Parameters:
builder
- function to build the store value- Returns:
- Builder
-
store
The Store that was removed from the Business Unit.
- Parameters:
store
- value to be set- Returns:
- Builder
-
getStore
The Store that was removed from the Business Unit.
- Returns:
- store
-
build
builds BusinessUnitStoreRemovedMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitStoreRemovedMessagePayload>
- Returns:
- BusinessUnitStoreRemovedMessagePayload
-
buildUnchecked
builds BusinessUnitStoreRemovedMessagePayload without checking for non-null required values- Returns:
- BusinessUnitStoreRemovedMessagePayload
-
of
factory method for an instance of BusinessUnitStoreRemovedMessagePayloadBuilder- Returns:
- builder
-
of
public static BusinessUnitStoreRemovedMessagePayloadBuilder of(BusinessUnitStoreRemovedMessagePayload template) create builder for BusinessUnitStoreRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-