Class StoreSetCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<StoreSetCustomTypeAction>
Example to create an instance using the builder pattern
StoreSetCustomTypeAction storeSetCustomTypeAction = StoreSetCustomTypeAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds StoreSetCustomTypeAction with checking for non-null required valuesbuilds StoreSetCustomTypeAction without checking for non-null required valuesfields(FieldContainer fields) Object containing the Custom Fields fields for the Store.Object containing the Custom Fields fields for the Store.Object containing 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.Object containing 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) Object containing the Custom Fields fields for the Store.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
withFields
public StoreSetCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Object containing the Custom Fields fields for the Store.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Parameters:
builder- function to build the fields value- Returns:
- Builder
-
fields
Object containing the Custom Fields fields for the Store.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- 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
Object containing the Custom Fields fields for the Store.
Required if at least one Custom Field is defined as required in the
fieldDefinitionsof the referenced Type.- Returns:
- fields
-
build
builds StoreSetCustomTypeAction with checking for non-null required values- Specified by:
buildin 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
-