Class CustomerSearchIndexingStatusResponseBuilder
- All Implemented Interfaces:
Builder<CustomerSearchIndexingStatusResponse>
Example to create an instance using the builder pattern
CustomerSearchIndexingStatusResponse customerSearchIndexingStatusResponse = CustomerSearchIndexingStatusResponse.builder()
.status(CustomerIndexingStatus.SCHEDULED)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CustomerSearchIndexingStatusResponse with checking for non-null required valuesbuilds CustomerSearchIndexingStatusResponse without checking for non-null required valuesTime when the status was last modified.Indicates how many times the system tried to start indexing after failed attempts.Date and time (UTC) when the last indexing started.Progress of indexing.Current status of indexing the Customer Search.lastModifiedAt
(ZonedDateTime lastModifiedAt) Time when the status was last modified.of()
factory method for an instance of CustomerSearchIndexingStatusResponseBuilderof
(CustomerSearchIndexingStatusResponse template) create builder for CustomerSearchIndexingStatusResponse instanceretryCount
(Integer retryCount) Indicates how many times the system tried to start indexing after failed attempts.startedAt
(ZonedDateTime startedAt) Date and time (UTC) when the last indexing started.states
(CustomerIndexingProgress states) Progress of indexing.Progress of indexing.status
(CustomerIndexingStatus status) Current status of indexing the Customer Search.Progress of indexing.
-
Constructor Details
-
CustomerSearchIndexingStatusResponseBuilder
public CustomerSearchIndexingStatusResponseBuilder()
-
-
Method Details
-
status
Current status of indexing the Customer Search.
- Parameters:
status
- value to be set- Returns:
- Builder
-
states
public CustomerSearchIndexingStatusResponseBuilder states(Function<CustomerIndexingProgressBuilder, CustomerIndexingProgressBuilder> builder) Progress of indexing. Only available when indexing is in progress.
- Parameters:
builder
- function to build the states value- Returns:
- Builder
-
withStates
public CustomerSearchIndexingStatusResponseBuilder withStates(Function<CustomerIndexingProgressBuilder, CustomerIndexingProgress> builder) Progress of indexing. Only available when indexing is in progress.
- Parameters:
builder
- function to build the states value- Returns:
- Builder
-
states
public CustomerSearchIndexingStatusResponseBuilder states(@Nullable CustomerIndexingProgress states) Progress of indexing. Only available when indexing is in progress.
- Parameters:
states
- value to be set- Returns:
- Builder
-
startedAt
Date and time (UTC) when the last indexing started.
- Parameters:
startedAt
- value to be set- Returns:
- Builder
-
lastModifiedAt
public CustomerSearchIndexingStatusResponseBuilder lastModifiedAt(@Nullable ZonedDateTime lastModifiedAt) Time when the status was last modified.
- Parameters:
lastModifiedAt
- value to be set- Returns:
- Builder
-
retryCount
Indicates how many times the system tried to start indexing after failed attempts. The counter is set to null after an indexing finished successfully.
- Parameters:
retryCount
- value to be set- Returns:
- Builder
-
getStatus
Current status of indexing the Customer Search.
- Returns:
- status
-
getStates
Progress of indexing. Only available when indexing is in progress.
- Returns:
- states
-
getStartedAt
Date and time (UTC) when the last indexing started.
- Returns:
- startedAt
-
getLastModifiedAt
Time when the status was last modified.
- Returns:
- lastModifiedAt
-
getRetryCount
Indicates how many times the system tried to start indexing after failed attempts. The counter is set to null after an indexing finished successfully.
- Returns:
- retryCount
-
build
builds CustomerSearchIndexingStatusResponse with checking for non-null required values- Specified by:
build
in interfaceBuilder<CustomerSearchIndexingStatusResponse>
- Returns:
- CustomerSearchIndexingStatusResponse
-
buildUnchecked
builds CustomerSearchIndexingStatusResponse without checking for non-null required values- Returns:
- CustomerSearchIndexingStatusResponse
-
of
factory method for an instance of CustomerSearchIndexingStatusResponseBuilder- Returns:
- builder
-
of
public static CustomerSearchIndexingStatusResponseBuilder of(CustomerSearchIndexingStatusResponse template) create builder for CustomerSearchIndexingStatusResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-