Class GetInfluencersRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.GetInfluencersRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<GetInfluencersRequest>
- Enclosing class:
- GetInfluencersRequest
public static class GetInfluencersRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<GetInfluencersRequest>
Builder for
GetInfluencersRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GetInfluencersRequest
build()
Builds aGetInfluencersRequest
.GetInfluencersRequest.Builder
desc(java.lang.Boolean value)
If true, the results are sorted in descending order.GetInfluencersRequest.Builder
end(java.lang.String value)
Returns influencers with timestamps earlier than this time.GetInfluencersRequest.Builder
excludeInterim(java.lang.Boolean value)
If true, the output excludes interim results.GetInfluencersRequest.Builder
from(java.lang.Integer value)
Skips the specified number of influencers.GetInfluencersRequest.Builder
influencerScore(java.lang.Double value)
Returns influencers with anomaly scores greater than or equal to this value.GetInfluencersRequest.Builder
jobId(java.lang.String value)
Required - Identifier for the anomaly detection job.GetInfluencersRequest.Builder
page(Page value)
API name:page
GetInfluencersRequest.Builder
page(java.util.function.Function<Page.Builder,ObjectBuilder<Page>> fn)
API name:page
GetInfluencersRequest.Builder
size(java.lang.Integer value)
Specifies the maximum number of influencers to obtain.GetInfluencersRequest.Builder
sort(java.lang.String value)
Specifies the sort field for the requested influencers.GetInfluencersRequest.Builder
start(java.lang.String value)
Returns influencers with timestamps after this time.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
desc
If true, the results are sorted in descending order.API name:
desc
-
end
Returns influencers with timestamps earlier than this time. The default value means it is unset and results are not limited to specific timestamps.API name:
end
-
excludeInterim
If true, the output excludes interim results. By default, interim results are included.API name:
exclude_interim
-
from
Skips the specified number of influencers.API name:
from
-
influencerScore
Returns influencers with anomaly scores greater than or equal to this value.API name:
influencer_score
-
jobId
Required - Identifier for the anomaly detection job.API name:
job_id
-
page
API name:page
-
page
public final GetInfluencersRequest.Builder page(java.util.function.Function<Page.Builder,ObjectBuilder<Page>> fn)API name:page
-
size
Specifies the maximum number of influencers to obtain.API name:
size
-
sort
Specifies the sort field for the requested influencers. By default, the influencers are sorted by theinfluencer_score
value.API name:
sort
-
start
Returns influencers with timestamps after this time. The default value means it is unset and results are not limited to specific timestamps.API name:
start
-
build
Builds aGetInfluencersRequest
.- Specified by:
build
in interfaceObjectBuilder<GetInfluencersRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-