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