Class StoreSetCustomTypeActionBuilder
java.lang.Object
com.commercetools.api.models.store.StoreSetCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<StoreSetCustomTypeAction>
public class StoreSetCustomTypeActionBuilder
extends Object
implements Builder<StoreSetCustomTypeAction>
StoreSetCustomTypeActionBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
StoreSetCustomTypeAction storeSetCustomTypeAction = StoreSetCustomTypeAction.builder()
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds StoreSetCustomTypeAction with checking for non-null required valuesbuilds StoreSetCustomTypeAction without checking for non-null required valuesfields
(FieldContainer fields) Sets the Custom Fields fields for the Store.Sets the Custom Fields fields for the Store.Sets the Custom Fields fields for the Store.getType()
Defines the Type that extends the Store with Custom Fields.of()
factory method for an instance of StoreSetCustomTypeActionBuilderof
(StoreSetCustomTypeAction template) create builder for StoreSetCustomTypeAction instancetype
(TypeResourceIdentifier type) Defines the Type that extends the Store with Custom Fields.Defines the Type that extends the Store with Custom Fields.Sets the Custom Fields fields for the Store.Defines the Type that extends the Store with Custom Fields.
-
Constructor Details
-
StoreSetCustomTypeActionBuilder
public StoreSetCustomTypeActionBuilder()
-
-
Method Details
-
type
public StoreSetCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the Store with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Store.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public StoreSetCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the Store with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Store.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the Store with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Store.
- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public StoreSetCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the Store.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public StoreSetCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the Store.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the Store.
- Parameters:
fields
- value to be set- Returns:
- Builder
-
getType
Defines the Type that extends the Store with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Store.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Store.
- Returns:
- fields
-
build
builds StoreSetCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<StoreSetCustomTypeAction>
- Returns:
- StoreSetCustomTypeAction
-
buildUnchecked
builds StoreSetCustomTypeAction without checking for non-null required values- Returns:
- StoreSetCustomTypeAction
-
of
factory method for an instance of StoreSetCustomTypeActionBuilder- Returns:
- builder
-
of
create builder for StoreSetCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-