Class ImageSearchConfigRequestBuilder
java.lang.Object
com.commercetools.ml.models.image_search_config.ImageSearchConfigRequestBuilder
- All Implemented Interfaces:
Builder<ImageSearchConfigRequest>
public class ImageSearchConfigRequestBuilder
extends Object
implements Builder<ImageSearchConfigRequest>
ImageSearchConfigRequestBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ImageSearchConfigRequest imageSearchConfigRequest = ImageSearchConfigRequest.builder()
.plusActions(actionsBuilder -> actionsBuilder)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactions(ImageSearchConfigUpdateAction... actions) The list of update actions to be performed on the project.actions(List<ImageSearchConfigUpdateAction> actions) The list of update actions to be performed on the project.build()builds ImageSearchConfigRequest with checking for non-null required valuesbuilds ImageSearchConfigRequest without checking for non-null required valuesThe list of update actions to be performed on the project.of()factory method for an instance of ImageSearchConfigRequestBuilderof(ImageSearchConfigRequest template) create builder for ImageSearchConfigRequest instanceplusActions(ImageSearchConfigUpdateAction... actions) The list of update actions to be performed on the project.plusActions(Function<ImageSearchConfigUpdateActionBuilder, Builder<? extends ImageSearchConfigUpdateAction>> builder) The list of update actions to be performed on the project.withActions(Function<ImageSearchConfigUpdateActionBuilder, Builder<? extends ImageSearchConfigUpdateAction>> builder) The list of update actions to be performed on the project.
-
Constructor Details
-
ImageSearchConfigRequestBuilder
public ImageSearchConfigRequestBuilder()
-
-
Method Details
-
actions
The list of update actions to be performed on the project.
- Parameters:
actions- value to be set- Returns:
- Builder
-
actions
The list of update actions to be performed on the project.
- Parameters:
actions- value to be set- Returns:
- Builder
-
plusActions
The list of update actions to be performed on the project.
- Parameters:
actions- value to be set- Returns:
- Builder
-
plusActions
public ImageSearchConfigRequestBuilder plusActions(Function<ImageSearchConfigUpdateActionBuilder, Builder<? extends ImageSearchConfigUpdateAction>> builder) The list of update actions to be performed on the project.
- Parameters:
builder- function to build the actions value- Returns:
- Builder
-
withActions
public ImageSearchConfigRequestBuilder withActions(Function<ImageSearchConfigUpdateActionBuilder, Builder<? extends ImageSearchConfigUpdateAction>> builder) The list of update actions to be performed on the project.
- Parameters:
builder- function to build the actions value- Returns:
- Builder
-
getActions
The list of update actions to be performed on the project.
- Returns:
- actions
-
build
builds ImageSearchConfigRequest with checking for non-null required values- Specified by:
buildin interfaceBuilder<ImageSearchConfigRequest>- Returns:
- ImageSearchConfigRequest
-
buildUnchecked
builds ImageSearchConfigRequest without checking for non-null required values- Returns:
- ImageSearchConfigRequest
-
of
factory method for an instance of ImageSearchConfigRequestBuilder- Returns:
- builder
-
of
create builder for ImageSearchConfigRequest instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-