Class BusinessUnitSearchIndexingStatusResponseBuilder
- All Implemented Interfaces:
Builder<BusinessUnitSearchIndexingStatusResponse>
Example to create an instance using the builder pattern
BusinessUnitSearchIndexingStatusResponse businessUnitSearchIndexingStatusResponse = BusinessUnitSearchIndexingStatusResponse.builder()
.status(BusinessUnitIndexingStatus.SCHEDULED)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds BusinessUnitSearchIndexingStatusResponse with checking for non-null required valuesbuilds BusinessUnitSearchIndexingStatusResponse 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 Business Unit Search.lastModifiedAt
(ZonedDateTime lastModifiedAt) Time when the status was last modified.of()
factory method for an instance of BusinessUnitSearchIndexingStatusResponseBuilderof
(BusinessUnitSearchIndexingStatusResponse template) create builder for BusinessUnitSearchIndexingStatusResponse 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
(BusinessUnitIndexingProgress states) Progress of indexing.Progress of indexing.status
(BusinessUnitIndexingStatus status) Current status of indexing the Business Unit Search.Progress of indexing.
-
Constructor Details
-
BusinessUnitSearchIndexingStatusResponseBuilder
public BusinessUnitSearchIndexingStatusResponseBuilder()
-
-
Method Details
-
status
Current status of indexing the Business Unit Search.
- Parameters:
status
- value to be set- Returns:
- Builder
-
states
public BusinessUnitSearchIndexingStatusResponseBuilder states(Function<BusinessUnitIndexingProgressBuilder, BusinessUnitIndexingProgressBuilder> builder) Progress of indexing. Only available when indexing is in progress.
- Parameters:
builder
- function to build the states value- Returns:
- Builder
-
withStates
public BusinessUnitSearchIndexingStatusResponseBuilder withStates(Function<BusinessUnitIndexingProgressBuilder, BusinessUnitIndexingProgress> builder) Progress of indexing. Only available when indexing is in progress.
- Parameters:
builder
- function to build the states value- Returns:
- Builder
-
states
public BusinessUnitSearchIndexingStatusResponseBuilder states(@Nullable BusinessUnitIndexingProgress 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 BusinessUnitSearchIndexingStatusResponseBuilder 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 Business Unit 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 BusinessUnitSearchIndexingStatusResponse with checking for non-null required values- Specified by:
build
in interfaceBuilder<BusinessUnitSearchIndexingStatusResponse>
- Returns:
- BusinessUnitSearchIndexingStatusResponse
-
buildUnchecked
builds BusinessUnitSearchIndexingStatusResponse without checking for non-null required values- Returns:
- BusinessUnitSearchIndexingStatusResponse
-
of
factory method for an instance of BusinessUnitSearchIndexingStatusResponseBuilder- Returns:
- builder
-
of
public static BusinessUnitSearchIndexingStatusResponseBuilder of(BusinessUnitSearchIndexingStatusResponse template) create builder for BusinessUnitSearchIndexingStatusResponse instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-