Class ImageSearchConfigResponseBuilder
java.lang.Object
com.commercetools.ml.models.image_search_config.ImageSearchConfigResponseBuilder
- All Implemented Interfaces:
Builder<ImageSearchConfigResponse>
public class ImageSearchConfigResponseBuilder
extends Object
implements Builder<ImageSearchConfigResponse>
ImageSearchConfigResponseBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ImageSearchConfigResponse imageSearchConfigResponse = ImageSearchConfigResponse.builder()
.status(ImageSearchConfigStatus.ON)
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds ImageSearchConfigResponse with checking for non-null required valuesbuilds ImageSearchConfigResponse without checking for non-null required valuesvalue of lastModifiedAt}The image search activation status.lastModifiedAt
(ZonedDateTime lastModifiedAt) set the value to the lastModifiedAtof()
factory method for an instance of ImageSearchConfigResponseBuilderof
(ImageSearchConfigResponse template) create builder for ImageSearchConfigResponse instancestatus
(ImageSearchConfigStatus status) The image search activation status.
-
Constructor Details
-
ImageSearchConfigResponseBuilder
public ImageSearchConfigResponseBuilder()
-
-
Method Details
-
status
The image search activation status.
- Parameters:
status
- value to be set- Returns:
- Builder
-
lastModifiedAt
set the value to the lastModifiedAt- Parameters:
lastModifiedAt
- value to be set- Returns:
- Builder
-
getStatus
The image search activation status.
- Returns:
- status
-
getLastModifiedAt
value of lastModifiedAt}- Returns:
- lastModifiedAt
-
build
builds ImageSearchConfigResponse with checking for non-null required values- Specified by:
build
in interfaceBuilder<ImageSearchConfigResponse>
- Returns:
- ImageSearchConfigResponse
-
buildUnchecked
builds ImageSearchConfigResponse without checking for non-null required values- Returns:
- ImageSearchConfigResponse
-
of
factory method for an instance of ImageSearchConfigResponseBuilder- Returns:
- builder
-
of
create builder for ImageSearchConfigResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-